This class defines the pairs of internal keys and XML tags or attributes names. More...
#include <DDS_KeyWords.h>

Public Member Functions | |
| Standard_EXPORT TCollection_AsciiString | GetKeyWord (const TCollection_AsciiString &) const |
| Get the XML keyword by specified internal key key. | |
| Standard_EXPORT void | SetKeyWord (const TCollection_AsciiString &, const TCollection_AsciiString &) |
| Register the pair of the internal key key and XML keyword keyWord. | |
Static Public Member Functions | |
| static Standard_EXPORT | Handle (DDS_KeyWords) Get() |
Private Types | |
| typedef NCollection_DataMap < TCollection_AsciiString, TCollection_AsciiString > | KeyWordMap |
Private Member Functions | |
| DDS_KeyWords () | |
| Constructor. Create an instance of the object. Can not be used directly. Use Get() method instead. | |
Private Attributes | |
| KeyWordMap | myKeyWord |
This class allows user to define a set of XML keywords used in the datums definition (XML) file.
Default keywords table:
D_URI - dictionaryCOMPONENT - componentCOMPONENT_NAME - nameUNIT_SYSTEMS - unitSystemsUNIT_SYSTEM - systemUNIT_SYSTEM_NAME - nameUNIT_SYSTEM_LABEL - labelDATUM - datumDATUM_ID - idDATUM_LABEL - labelDATUM_UNITS - unitsDATUM_FORMAT - formatDATUM_FILTER - filterDATUM_REQUIRED - requiredVALUE_LIST - valueListVALUE_LIST_ID - listidVALUE_LIST_NAME - nameVALUE_LIST_TYPE - typeVALUE_LIST_VALUE - valueVALUE_LIST_VALUEID - idVALUE_LIST_VALUEICON - iconDY_DOMAIN - domainWARNING_LEVEL - warningLevelWRONG_VALUE - wrongValueVALUE_DESCR - valueDescrVALUE_LIST_REF - listRefDESCR - descriptionLONG_D - longDescrSHORT_D - shortDescrVD_TYPE - typeVD_DEFV - defaultVD_MAXV - maxVD_MINV - minVD_SPEC - specValVLR_LIST - listPRS - presentationLATERAL_ZOOM - lateralZoomLZ_MINV - minLZ_MAXV - maxLZ_ORDER - orderOPTIONS - optionsOPTION - optionOPTION_NAME - nameThere is the only instance of the class DDS_KeyWords in the application which can be retrieved by method Get().
typedef NCollection_DataMap<TCollection_AsciiString, TCollection_AsciiString> DDS_KeyWords.KeyWordMap [private] |
| DDS_KeyWords::DDS_KeyWords | ( | ) | [private] |
| static Standard_EXPORT DDS_KeyWords.Handle | ( | DDS_KeyWords | ) | [static] |
| TCollection_AsciiString DDS_KeyWords::GetKeyWord | ( | const TCollection_AsciiString & | key | ) | const |
If the internal key is not registered, empty string is returned.
| key | internal key |
References myKeyWord, and TCollection_AsciiString.
| void DDS_KeyWords::SetKeyWord | ( | const TCollection_AsciiString & | key, |
| const TCollection_AsciiString & | keyWord | ||
| ) |
| key | internal key |
| keyWord | XML keyword |
References myKeyWord.
KeyWordMap DDS_KeyWords.myKeyWord [private] |