Version: 6.3.1
Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes

DDS_KeyWords Class Reference

This class defines the pairs of internal keys and XML tags or attributes names. More...

#include <DDS_KeyWords.h>

Inheritance diagram for DDS_KeyWords:
Inheritance graph

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

Detailed Description

This class allows user to define a set of XML keywords used in the datums definition (XML) file.

Default keywords table:

There is the only instance of the class DDS_KeyWords in the application which can be retrieved by method Get().


Member Typedef Documentation


Constructor & Destructor Documentation

DDS_KeyWords::DDS_KeyWords ( ) [private]

Member Function Documentation

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.

Parameters:
keyinternal key
Returns:
XML keyword

References myKeyWord, and TCollection_AsciiString.

void DDS_KeyWords::SetKeyWord ( const TCollection_AsciiString key,
const TCollection_AsciiString keyWord 
)
Parameters:
keyinternal key
keyWordXML keyword

References myKeyWord.


Field Documentation

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS