Public Member Functions | Public Attributes | Static Private Attributes
snippets.generators.elements.enum.Enum Class Reference

List of all members.

Public Member Functions

def __init__
def from_xml

Public Attributes

 name
 value

Static Private Attributes

string _XMLTAG = 'enum'

Detailed Description

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

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

Definition at line 38 of file elements/enum.py.


Constructor & Destructor Documentation

def snippets.generators.elements.enum.Enum.__init__ (   self,
  xmlnode = None 
)
Populates the variable 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 enumerator
value -- value of the enumerator

Definition at line 47 of file elements/enum.py.


Member Function Documentation

def snippets.generators.elements.enum.Enum.from_xml (   self,
  xmlnode 
)
Extracts the enum attributes from the XML node.

xmlnode -- the XML node with the member definition

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


Member Data Documentation

string snippets::generators::elements::enum.Enum::_XMLTAG = 'enum' [static, private]

Definition at line 45 of file elements/enum.py.

Definition at line 56 of file elements/enum.py.

Definition at line 56 of file elements/enum.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