Public Member Functions | |
def | __init__ |
def | __str__ |
def | from_xml |
def | gen_code |
Public Attributes | |
default | |
vbits | |
vcond | |
vdefault | |
vname | |
vtype | |
Static Private Attributes | |
string | _XMLTAG = 'var' |
Represents the C++ data member/variable in the object form. Class attributes: _XMLTAG -- constant string with the xml tag description
Definition at line 38 of file cppgen/variable.py.
def snippets.generators.cppgen.variable.Variable.__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 Instance attributes: vname -- name of the variable vtype -- type name of the variable vdefault -- the default value of the variable vcond -- if the variable has a conditional attached vbits -- if the variable has a bit field value
Definition at line 47 of file cppgen/variable.py.
Overriden string specifier returns the C++ code snippet without indentation.
Definition at line 102 of file cppgen/variable.py.
def snippets.generators.cppgen.variable.Variable.from_xml | ( | self, | |
xmlnode | |||
) |
Extracts the variable attributes from the XML node. xmlnode -- the XML node with the member definition
Definition at line 69 of file cppgen/variable.py.
def snippets.generators.cppgen.variable.Variable.gen_code | ( | self, | |
bindent = '' , |
|||
indent = ' ' |
|||
) |
Generates the full member definition C++ code and returns it as a string bindent -- the current indent in the document indent -- the usual minimum indentation
Definition at line 88 of file cppgen/variable.py.
string snippets::generators::cppgen::variable.Variable::_XMLTAG = 'var' [static, private] |
Definition at line 45 of file cppgen/variable.py.
Definition at line 73 of file cppgen/variable.py.
Definition at line 59 of file cppgen/variable.py.
Definition at line 59 of file cppgen/variable.py.
Definition at line 59 of file cppgen/variable.py.
Definition at line 59 of file cppgen/variable.py.
Definition at line 59 of file cppgen/variable.py.