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 | setImplicitPadding (bool enableImplicitPadding) |
| | Set whether to use implicit padding when construction datatypes.
|
| virtual bool | isImplicitPaddingEnabled () const |
| 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 void | setArrayWrapper (const DtString &start, const DtString &end) |
| | If set, this will wrap complex values with the wrapper.
|
| 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 void | addAttributeMapping (const DtString &datatype, const DtString &rep) |
| virtual void | removeAttributeMapping (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 DtString | getStringRep (const DtOMTDatatypeNode &datatypeNode, 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 DtStringTree * | createStringTreeRep (const DtOMTDatatypeNode &datatypeNode, const void *value, int size, int &returnSize, unsigned int currentOffset=0, DtStringTree *strParentTree=0, DtObjectHistory *=0) |
| virtual void | getValueFromStringRep (const DtString &datatypeName, const DtString &stringRep, std::vector< char > &result) |
| | The exact reverse of getStringRep.
|
| virtual DtString | convertStringTreeToString (DtStringTree *, const DtString &delimiter) |
| | Flatten a string tree.
|
| virtual DtDatatypeEnum | getDatatypeEnum (const DtString &datatypeName) |
| virtual bool | isDirty () |
| | Indicates if manual changes outside of automatic processing defaults.
|
| virtual void | setIsDirty (bool makeDirty) |
| | Set dirty flag to ignore or trigger status of manual changes.
|
Protected Member Functions |
| | DtDatatypeManager (const DtDatatypeManager &orig) |
| | Copy Constructor - Not Implemented!
|
| DtDatatypeManager & | operator= (const DtDatatypeManager &rhs) |
| | Assignment Operator - Not Implemented!
|
| 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 | getAttributeRep (const DtString &attributeName, 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 | getValueFromDatatypeRep (const DtString &datatypeName, const DtString &stringRep, std::vector< char > &result) |
| | Helper functions for getValueFromStringRep.
|
| virtual void | getValueFromArrayRep (const DtString &datatypeName, const DtString &stringRep, std::vector< char > &result) |
| virtual void | getValueFromComplexRep (const DtString &datatypeName, const DtString &stringRep, std::vector< char > &result) |
| virtual void | getValueFromFixedRep (const DtString &datatypeName, const DtString &stringRep, std::vector< char > &result) |
| virtual void | getValueFromEnumRep (const DtString &datatypeName, const DtString &stringRep, std::vector< char > &result) |
| 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) |
| virtual int | byteAlignment (const DtString &datatype) |
| | Compute proper alignment for HLA evolved implicit padding.
|
| virtual int | byteAlignmentFromRep (const DtString &datatype) |
| virtual int | byteAlignmentFixed (const DtString &datatype) |
| virtual int | byteAlignmentArray (const DtString &datatype) |
| virtual int | byteAlignmentVariant (const DtString &datatype) |
| virtual int | byteAlignmentComplex (const DtString &datatype) |
| virtual int | implicitPadding (unsigned int currentOffset, const DtString &datatypeName) |
This class handles the conversion between a byte stream and an English readable view of the data in an OMT Tree.