Class: Xlsxrb::Ooxml::Cfb::DirEntry
- Inherits:
-
Object
- Object
- Xlsxrb::Ooxml::Cfb::DirEntry
- Defined in:
- lib/xlsxrb/ooxml/cfb.rb,
sig/generated/xlsxrb/ooxml/cfb.rbs
Overview
Represents a directory entry in a Compound File.
Instance Attribute Summary collapse
-
#child_id ⇒ Object
Returns the value of attribute child_id.
-
#clsid ⇒ Object
Returns the value of attribute clsid.
-
#color ⇒ Object
Returns the value of attribute color.
-
#created_time ⇒ Object
Returns the value of attribute created_time.
-
#entry_id ⇒ Object
Returns the value of attribute entry_id.
-
#left_sibling_id ⇒ Object
Returns the value of attribute left_sibling_id.
-
#modified_time ⇒ Object
Returns the value of attribute modified_time.
-
#name ⇒ Object
Returns the value of attribute name.
-
#right_sibling_id ⇒ Object
Returns the value of attribute right_sibling_id.
-
#size ⇒ Object
Returns the value of attribute size.
-
#start_sector ⇒ Object
Returns the value of attribute start_sector.
-
#state_flags ⇒ Object
Returns the value of attribute state_flags.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name: "", type: OBJ_UNKNOWN, start_sector: ENDOFCHAIN, size: 0) ⇒ DirEntry
constructor
A new instance of DirEntry.
- #root? ⇒ Boolean
- #storage? ⇒ Boolean
- #stream? ⇒ Boolean
Constructor Details
#initialize(name: "", type: OBJ_UNKNOWN, start_sector: ENDOFCHAIN, size: 0) ⇒ DirEntry
Returns a new instance of DirEntry.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 30 def initialize(name: "", type: OBJ_UNKNOWN, start_sector: ENDOFCHAIN, size: 0) @name = name @type = type @color = 0 # Red / Black (0 is acceptable across OLE implementations) @left_sibling_id = NOSTREAM @right_sibling_id = NOSTREAM @child_id = NOSTREAM @clsid = "\x00".b * 16 @state_flags = 0 @created_time = 0 @modified_time = 0 @start_sector = start_sector @size = size @entry_id = 0 end |
Instance Attribute Details
#child_id ⇒ Object
Returns the value of attribute child_id.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def child_id @child_id end |
#clsid ⇒ Object
Returns the value of attribute clsid.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def clsid @clsid end |
#color ⇒ Object
Returns the value of attribute color.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def color @color end |
#created_time ⇒ Object
Returns the value of attribute created_time.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def created_time @created_time end |
#entry_id ⇒ Object
Returns the value of attribute entry_id.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def entry_id @entry_id end |
#left_sibling_id ⇒ Object
Returns the value of attribute left_sibling_id.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def left_sibling_id @left_sibling_id end |
#modified_time ⇒ Object
Returns the value of attribute modified_time.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def modified_time @modified_time end |
#name ⇒ Object
Returns the value of attribute name.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def name @name end |
#right_sibling_id ⇒ Object
Returns the value of attribute right_sibling_id.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def right_sibling_id @right_sibling_id end |
#size ⇒ Object
Returns the value of attribute size.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def size @size end |
#start_sector ⇒ Object
Returns the value of attribute start_sector.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def start_sector @start_sector end |
#state_flags ⇒ Object
Returns the value of attribute state_flags.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def state_flags @state_flags end |
#type ⇒ Object
Returns the value of attribute type.
28 29 30 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 28 def type @type end |
Instance Method Details
#storage? ⇒ Boolean
54 55 56 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 54 def storage? @type == OBJ_STORAGE end |
#stream? ⇒ Boolean
46 47 48 |
# File 'lib/xlsxrb/ooxml/cfb.rb', line 46 def stream? @type == OBJ_STREAM end |