Public Member Functions | Public Attributes | Static Private Attributes
snippets.generators.elements.structure.Structure Class Reference

List of all members.

Public Member Functions

def __init__
def from_xml

Public Attributes

 assert_size
 bitfield
 enums
 inherit
 methods
 name
 serialization
 typedefs
 variables

Static Private Attributes

string _XMLTAG = 'struct'

Detailed Description

Represents the C++ data structure in the object form.

Class attributes:
_XMLTAG -- constant string with the xml tag description

Definition at line 41 of file elements/structure.py.


Constructor & Destructor Documentation

def snippets.generators.elements.structure.Structure.__init__ (   self,
  xmlnode = None 
)
Populates the structure from a XML node info.
When the XML node is not defined, does nothing.

xmlnode -- the XML node with the member definition 

Required attributes:
name    -- name of the structure
Optional attributes:
inherit -- the class that is inherited
assert_size -- add size assertion in bytes (useful for bitfields)
serialization -- the type of serialization (defaults to object serializable)
bitfield -- marks the structure as a bit-field

Definition at line 50 of file elements/structure.py.


Member Function Documentation

Extracts the structure attributes from the XML node.
Memeber variables and functions are extracted from the 
child nodes as well.

xmlnode -- the XML node with the member definition

Definition at line 78 of file elements/structure.py.


Member Data Documentation

Definition at line 48 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.

Definition at line 63 of file elements/structure.py.


The documentation for this class was generated from the following file:


snippets
Author(s): Gyula Nagy
autogenerated on Fri Aug 28 2015 11:22:33