dissect.cim.classes
¶
Module Contents¶
Classes¶
A dictionary subclass that allows for attribute-style access and assignment. |
|
- class dissect.cim.classes.QualifierReference(fh: BinaryIO)¶
- fh¶
- qualifier_reference¶
- key_reference¶
- type¶
- data¶
- value: dissect.cim.c_cim.CimType | dissect.cim.c_cim.BOOLEAN_STATES¶
- __repr__() str ¶
- classmethod read_list(fh: BinaryIO) list[QualifierReference] ¶
- property is_builtin_key: bool¶
- property key: bool¶
- class dissect.cim.classes.PropertyReference(fh: BinaryIO)¶
- fh¶
- property_reference¶
- name_offset¶
- property_offset¶
- __repr__() str ¶
- classmethod read_list(fh: BinaryIO) list[PropertyReference] ¶
- property is_builtin_property: bool¶
- property builtin_property_name: str¶
- class dissect.cim.classes.PropertyStates(fh: BinaryIO, state_cls: dissect.cim.c_cim.ClassDefinitionPropertyState | dissect.cim.c_cim.ClassInstancePropertyState, num_properties: int)¶
- fh¶
- state_cls¶
- num_properties¶
- entries¶
- __getitem__(idx: int) dissect.cim.c_cim.ClassDefinitionPropertyState | dissect.cim.c_cim.ClassInstancePropertyState ¶
- class dissect.cim.classes.PropertyDefaultValues(fh: BinaryIO, properties: list[dissect.cim.cim.Property])¶
- fh¶
- properties¶
- state¶
- default_values = []¶
- class dissect.cim.classes.ClassDefinitionProperty(data: DataRegion, propref: PropertyReference)¶
- property¶
- qualifier_references = []¶
- type¶
- index¶
- offset¶
- level¶
- class dissect.cim.classes.ClassInstanceProperty(class_instance: ClassInstance, prop: dissect.cim.cim.Property, value: dissect.cim.c_cim.CimType | list[dissect.cim.c_cim.CimType], state: dissect.cim.c_cim.ClassDefinitionPropertyState | dissect.cim.c_cim.ClassInstancePropertyState)¶
- class_instance¶
- state¶
- property type: dissect.cim.c_cim.c_cim.cim_type¶
- property name: str¶
- property index: int¶
- property offset: int¶
- property level: int¶
- property is_inherited: bool¶
- property has_default_value: bool¶
- property default_value: dissect.cim.c_cim.CimType | list[dissect.cim.c_cim.CimType]¶
- property is_initialized: bool¶
- property is_default_value: bool¶
- property value: dissect.cim.c_cim.CimType | list[dissect.cim.c_cim.CimType]¶
- class dissect.cim.classes.ClassDefinition(cim: dissect.cim.cim.CIM, fh: BinaryIO)¶
- cim¶
- fh¶
- header¶
- qualifier_references = []¶
- property_references¶
- default_values_data¶
- property_data¶
- method_data¶
- property properties: dict[str, ClassDefinitionProperty]¶
- property keys: list[str]¶
- property class_name: str¶
- property super_class_name: str¶
- property timestamp: datetime.datetime¶
- class dissect.cim.classes.ClassInstance(cim: dissect.cim.cim.CIM, class_: dissect.cim.cim.Class, fh: BinaryIO)¶
- cim¶
- class_¶
- fh¶
- header¶
- name_hash¶
- ts1¶
- ts2¶
- property_states¶
- toc = []¶
- qualifier_references = []¶
- dynprops¶
- data¶
- property class_name: str¶
- property properties: dict[str, ClassInstanceProperty]¶
- property key: InstanceKey¶
- class dissect.cim.classes.InstanceKey¶
Bases:
dict
A dictionary subclass that allows for attribute-style access and assignment.
Is represented as a string in the format “key1=value1;key2=value2” or “default” if empty.
Example
>>> d = InstanceKey() >>> d.foo = "bar" >>> d.foo "bar"
- __getattr__(key: str) Any ¶
- __setattr__(key: str, value: Any)¶
Implement setattr(self, name, value).
- __str__() str ¶
Return str(self).
- class dissect.cim.classes.Qualifier(data: DataRegion, qualref: QualifierReference)¶
- value¶
- class dissect.cim.classes.Dynprops(fh: BinaryIO)¶
- fh¶
- dynprops_state¶
- dynprops = None¶
- property has_dynprops: bool¶
- class dissect.cim.classes.DataRegion(fh: BinaryIO)¶
- fh¶
- size¶
- data¶
- open() io.BytesIO ¶
- get_string(offset: int) str ¶
- get_array(offset: int, item_type: dissect.cim.c_cim.c_cim.cim_type) list[dissect.cim.c_cim.CimType] ¶
- get_value(value: dissect.cim.c_cim.CimType | dissect.cim.c_cim.BOOLEAN_STATES, value_type: dissect.cim.c_cim.c_cim.cim_type) dissect.cim.c_cim.CimType | list[dissect.cim.c_cim.CimType] ¶