Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CodeBuilder Class Reference

Classes

struct  method_descr
 

Public Member Functions

 CodeBuilder ()
 
 ~CodeBuilder ()
 
void checkConsistency (DOMElement *el, DOMElement *elref)
 
void writeHeader (DOMElement *el)
 
void constructGroup (DOMElement *el)
 
void constructConstructors ()
 
void constructUnpackers ()
 
void constructReadFunc (DOMElement *topEl)
 
void constructSkipFunc ()
 
void constructPackers ()
 
void constructFlushFunc (DOMElement *el)
 
void writeMatcher ()
 
void constructOpenFunc (DOMElement *el)
 
void constructInitFunc (DOMElement *el)
 
void constructCloseFunc (DOMElement *el)
 
void constructDocument (DOMElement *el)
 
 CodeBuilder ()
 
 ~CodeBuilder ()
 
void checkConsistency (DOMElement *el, DOMElement *elref)
 
void writeClassdef (DOMElement *el)
 
void writeClassimp (DOMElement *el)
 
void constructDocument (DOMElement *el)
 
void constructGroup (DOMElement *el)
 
void constructIOstreams (DOMElement *el)
 
void constructMethods (DOMElement *el)
 
void constructStreamers (DOMElement *el)
 
void writeStreamers (DOMElement *el)
 
 CodeBuilder ()
 
 ~CodeBuilder ()
 
void checkConsistency (DOMElement *el, DOMElement *elref)
 
void writeClassdef (DOMElement *el)
 
void writeClassimp (DOMElement *el)
 
void constructDocument (DOMElement *el)
 
void constructGroup (DOMElement *el)
 
void constructIOstreams (DOMElement *el)
 
void constructMethods (DOMElement *el)
 
void constructStreamers (DOMElement *el)
 
void writeStreamers (DOMElement *el)
 

Public Attributes

std::ofstream hFile
 
std::ofstream cFile
 
std::ofstream pyFile
 
std::map< XtString, XtStringtypesList
 

Private Types

typedef std::vector< DOMNode * > parentList_t
 
typedef std::map< const
XtString, parentList_t
parentTable_t
 
typedef std::vector< DOMNode * > parentList_t
 
typedef std::map< const
XtString, parentList_t
parentTable_t
 

Private Member Functions

int element_in_list (XtString &name, parentList_t list)
 
int element_in_list (XtString &name, parentList_t list)
 

Private Attributes

std::vector< DOMElement * > tagList
 
parentList_t parentList
 
parentTable_t parents
 
parentTable_t children
 

Detailed Description

Definition at line 119 of file hddm-c.cpp.

Member Typedef Documentation

typedef std::vector<DOMNode*> CodeBuilder::parentList_t
private

Definition at line 98 of file hddm-py.cpp.

typedef std::vector<DOMNode*> CodeBuilder::parentList_t
private

Definition at line 148 of file hddm-cpp.cpp.

typedef std::map<const XtString,parentList_t> CodeBuilder::parentTable_t
private

Definition at line 99 of file hddm-py.cpp.

typedef std::map<const XtString,parentList_t> CodeBuilder::parentTable_t
private

Definition at line 149 of file hddm-cpp.cpp.

Constructor & Destructor Documentation

CodeBuilder::CodeBuilder ( )
inline

Definition at line 128 of file hddm-c.cpp.

CodeBuilder::~CodeBuilder ( )
inline

Definition at line 129 of file hddm-c.cpp.

CodeBuilder::CodeBuilder ( )
inline

Definition at line 133 of file hddm-cpp.cpp.

CodeBuilder::~CodeBuilder ( )
inline

Definition at line 134 of file hddm-cpp.cpp.

CodeBuilder::CodeBuilder ( )
inline

Definition at line 75 of file hddm-py.cpp.

CodeBuilder::~CodeBuilder ( )
inline

Definition at line 76 of file hddm-py.cpp.

Member Function Documentation

void CodeBuilder::checkConsistency ( DOMElement *  el,
DOMElement *  elref 
)
void CodeBuilder::checkConsistency ( DOMElement *  el,
DOMElement *  elref 
)

Definition at line 598 of file hddm-c.cpp.

References S, and X.

void CodeBuilder::checkConsistency ( DOMElement *  el,
DOMElement *  elref 
)
void CodeBuilder::constructCloseFunc ( DOMElement *  el)

Definition at line 1995 of file hddm-c.cpp.

References classPrefix, and XtString::simpleType().

Referenced by main().

void CodeBuilder::constructConstructors ( )

Definition at line 838 of file hddm-c.cpp.

References c, classPrefix, XtString::listType(), XtString::plural(), S, XtString::simpleType(), and X.

Referenced by main().

void CodeBuilder::constructDocument ( DOMElement *  el)
void CodeBuilder::constructDocument ( DOMElement *  el)
void CodeBuilder::constructDocument ( DOMElement *  el)

Definition at line 2033 of file hddm-c.cpp.

References c.

Referenced by main().

void CodeBuilder::constructFlushFunc ( DOMElement *  el)

Definition at line 1597 of file hddm-c.cpp.

References classPrefix, and XtString::simpleType().

Referenced by main().

void CodeBuilder::constructGroup ( DOMElement *  el)
void CodeBuilder::constructGroup ( DOMElement *  el)

Definition at line 804 of file hddm-c.cpp.

References c.

Referenced by main().

void CodeBuilder::constructGroup ( DOMElement *  el)
void CodeBuilder::constructInitFunc ( DOMElement *  el)

Definition at line 1935 of file hddm-c.cpp.

References classPrefix, and XtString::simpleType().

Referenced by main().

void CodeBuilder::constructIOstreams ( DOMElement *  el)
void CodeBuilder::constructIOstreams ( DOMElement *  el)

Definition at line 3241 of file hddm-cpp.cpp.

References classPrefix.

Referenced by main().

void CodeBuilder::constructMethods ( DOMElement *  el)
void CodeBuilder::constructMethods ( DOMElement *  el)

Definition at line 3144 of file hddm-cpp.cpp.

Referenced by main().

void CodeBuilder::constructOpenFunc ( DOMElement *  el)

Definition at line 1839 of file hddm-c.cpp.

References classPrefix, and XtString::simpleType().

Referenced by main().

void CodeBuilder::constructPackers ( )

Definition at line 1340 of file hddm-c.cpp.

References c, classPrefix, XtString::listType(), S, XtString::simpleType(), and X.

void CodeBuilder::constructReadFunc ( DOMElement *  topEl)

Definition at line 1215 of file hddm-c.cpp.

References classPrefix, and XtString::simpleType().

Referenced by main().

void CodeBuilder::constructSkipFunc ( )

Definition at line 1280 of file hddm-c.cpp.

References classPrefix.

Referenced by main().

void CodeBuilder::constructStreamers ( DOMElement *  el)
void CodeBuilder::constructStreamers ( DOMElement *  el)

Definition at line 3230 of file hddm-cpp.cpp.

Referenced by main().

void CodeBuilder::constructUnpackers ( )

Definition at line 1009 of file hddm-c.cpp.

References c, classPrefix, XtString::listType(), S, XtString::simpleType(), and X.

Referenced by main().

int CodeBuilder::element_in_list ( XtString name,
parentList_t  list 
)
private
int CodeBuilder::element_in_list ( XtString name,
parentList_t  list 
)
private

Definition at line 1891 of file hddm-cpp.cpp.

void CodeBuilder::writeClassdef ( DOMElement *  el)
void CodeBuilder::writeClassdef ( DOMElement *  el)
void CodeBuilder::writeClassimp ( DOMElement *  el)
void CodeBuilder::writeClassimp ( DOMElement *  el)
void CodeBuilder::writeHeader ( DOMElement *  el)

Definition at line 705 of file hddm-c.cpp.

References c, XtString::listType(), XtString::plural(), S, XtString::simpleType(), and X.

void CodeBuilder::writeMatcher ( )

Definition at line 1681 of file hddm-c.cpp.

References classPrefix, XtString::listType(), MAX_POPLIST_LENGTH, S, XtString::simpleType(), and X.

void CodeBuilder::writeStreamers ( DOMElement *  el)
void CodeBuilder::writeStreamers ( DOMElement *  el)

Definition at line 3155 of file hddm-cpp.cpp.

References c, S, and X.

Member Data Documentation

std::ofstream CodeBuilder::cFile

Definition at line 126 of file hddm-c.cpp.

Referenced by main().

parentTable_t CodeBuilder::children
private

Definition at line 152 of file hddm-cpp.cpp.

std::ofstream CodeBuilder::hFile

Definition at line 125 of file hddm-c.cpp.

Referenced by main().

parentList_t CodeBuilder::parentList
private

Definition at line 150 of file hddm-cpp.cpp.

parentTable_t CodeBuilder::parents
private

Definition at line 151 of file hddm-cpp.cpp.

std::ofstream CodeBuilder::pyFile

Definition at line 73 of file hddm-py.cpp.

Referenced by main().

std::vector< DOMElement * > CodeBuilder::tagList
private

Definition at line 147 of file hddm-c.cpp.

std::map<XtString,XtString> CodeBuilder::typesList

Definition at line 94 of file hddm-py.cpp.

Referenced by main().


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