This class handles the conversion between a byte stream and an English readable view of the data in an OMT Tree.
More...
Public Member Functions |
| | DtDatatypeManager () |
| | constructor
|
| virtual | ~DtDatatypeManager () |
| | destructor
|
| virtual void | initOMTData (DtOMTTree *omtTree) |
| | Fills the datatype type tree with OMT information This function is required at initialization.
|
| virtual DtOMTTree * | omtTree () |
| virtual void | fillDefaultDatatypeRepList () |
| | fills the simple database with the usual suspects.
|
| virtual void | addDatatypeRep (DtDatatypeRep *) |
| virtual void | addDefinedDatatypeRep (DtDatatypeRep *) |
| virtual DtDatatypeRep * | getSimpleDatatypeRep (const DtString &datatypeName) |
virtual std::map< DtString,
DtDatatypeRep * >::iterator | getNameRepMapList () |
| | get a list of all representations.
|
virtual std::map< DtString,
DtDatatypeRep * >::iterator | getNameRepMapListEnd () |
| virtual void | addDelimiterMap (const DtString &datatype, const DtString &delimiter) |
| | A delimiter is the divider between elements in a complex or fixed datatype.
|
| virtual void | removeDelimiterMap (const DtString &datatype) |
| virtual void | setDefaultDelimiter (const DtString &str) |
| | if no delimiter is specified, this function uses this
|
| virtual DtString | getDelimiterMap (const DtString &datatypeName, bool *isAvailable=0) |
| | get the delimiter for this datatype or the default if its undefined
|
virtual std::map< DtString,
DtString >::iterator | getDelimiterList () |
virtual std::map< DtString,
DtString >::iterator | getDelimiterListEnd () |
| virtual void | addArrayBracketMap (const DtString &datatype, bool valueIsBracketed) |
| | Specifies if values of the given datatype when found in an array are bracketed or not.
|
| virtual void | removeArrayBracketMap (const DtString &datatype) |
| virtual void | setDefaultArrayBracket (bool valueIsBracketed) |
| | if no bracket is specified, array values are bracket as specified here.
|
| virtual bool | getArrayBracketMap (const DtString &datatypeName, bool *isAvailable=0) |
| | get the array bracket setting for this datatype or the default if its undefined
|
virtual std::map< DtString,
bool >::iterator | getArrayBracketList () |
virtual std::map< DtString,
bool >::iterator | getArrayBracketListEnd () |
| virtual void | readFile (DtString str) |
| | Read the datatype mapping file.
|
| virtual void | writeFile (DtString str) |
| | Write out to the datatype mapping file.
|
| virtual void | addRepMapping (const DtString &datatype, const DtString &rep) |
| virtual void | removeRepMapping (const DtString &datatype) |
| virtual bool | modifyRepMapping (const DtString &datatype, const DtString &rep) |
| | Modify a mapping.
|
virtual std::map< DtString,
DtString >::iterator | getRepMapList () |
| | Get a list of all the Representation mappings.
|
virtual std::map< DtString,
DtString >::iterator | getRepMapListEnd () |
| virtual DtString | getFedNodeStringRep (const DtDatatypeFedNode *currFedNode, const void *value, int size, int &returnSize) |
| | Get the string representation from the datatype and the value The size input is the size that the network says the datatype is, but that gets modified to the actual size read.
|
| virtual DtString | getStringRep (const DtString &datatypeName, const void *value, int size, int &returnSize) |
| virtual DtStringTree * | createStringTreeRep (const DtDatatypeFedNode *currFedNode, const void *value, int size, int &returnSize, unsigned int currentOffset=0, DtObjectHistory *=0) |
| | Creates a string tree from a datatype.
|
| virtual DtStringTree * | createStringTreeRep (const DtString &datatypeName, const void *value, int size, int &returnSize, const DtOMTNode *omtNode=0, unsigned int currentOffset=0, DtStringTree *strParentTree=0, DtObjectHistory *=0) |
| virtual DtString | convertStringTreeToString (DtStringTree *, const DtString &delimiter) |
| | Flatten a string tree.
|
| virtual DtDatatypeEnum | getDatatypeEnum (const DtString &datatypeName) |
Protected Member Functions |
| | DtDatatypeManager (const DtDatatypeManager &orig) |
| | Copy Constructor.
|
| DtDatatypeManager & | operator= (const DtDatatypeManager &rhs) |
| | Assignment Operator.
|
| virtual void | checkOrphanMappings () |
| virtual void | checkObjOrphans (DtObjectClassFedNode *objClass) |
| virtual void | checkIntOrphans (DtInteractionClassFedNode *intClass) |
| virtual void | getDefaultRep (const void *value, int size, int &returnSize, DtString &returnString) |
| | Helper functions for getStringRep and createStringTreeRep.
|
| virtual void | getDatatypeRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtString &returnString) |
| virtual void | getEnumRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtString &returnString) |
| virtual void | getVariantRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtString &returnString) |
| virtual void | getArrayRepBySize (const DtString &datatypeName, const void *value, int size, int &returnSize, DtString &returnString) |
| virtual void | getArrayRepByCount (DtArrayDatatypeNode *arrayNode, const void *value, int size, int &returnSize, DtString &returnString) |
| virtual void | getArrayRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtString &returnString) |
| virtual void | createComplexTreeRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtStringTree *strTree, DtStringTree *strParentTree=0, unsigned int currentOffset=0, DtObjectHistory *=0) |
| | Helper functions for createStringTreeRep.
|
| virtual void | createArrayTreeRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtStringTree *strTree, DtStringTree *strParentTree=0, unsigned int currentOffset=0, DtObjectHistory *=0) |
| virtual void | createDefinedTreeRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtStringTree *strTree, DtStringTree *strParentTree=0, unsigned int currentOffset=0, DtObjectHistory *=0) |
| virtual void | createVariantTreeRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtStringTree *strTree, DtStringTree *strParentTree=0, unsigned int currentOffset=0, DtObjectHistory *=0) |
| virtual void | createFixedTreeRep (const DtString &datatypeName, const void *value, int size, int &returnSize, DtStringTree *strTree, DtStringTree *strParentTree=0, unsigned int currentOffset=0, DtObjectHistory *=0) |
| virtual void | processMappings (DtlObjPtr &ptr) |
| | Helper function for the datatype Mapping file.
|
| virtual int | getComplexDatatypeCount (DtComplexComponentNode *compNode, DtComplexDatatypeNode *parentNode, const void *value, int valueSize, int alreadyRead, const DtStringTree *strTree=0, const DtStringTree *parentTree=0) |
| | Complex and array datatypes have an undetermined amount of elements This function returns the correct element count.
|
| virtual int | getArrayDatatypeCount (DtArrayDatatypeNode *arrayNode, const void *value, int valueSize, const DtStringTree *strTree=0, const DtStringTree *parentTree=0) |
This class handles the conversion between a byte stream and an English readable view of the data in an OMT Tree.