#include "DDS.h"#include "DDS_DicItem.h"#include <MMgt_TShared.hxx>#include <TColStd_SequenceOfAsciiString.hxx>#include <NCollection_List.hxx>Go to the source code of this file.
Typedefs | |
| typedef NCollection_DataMap < TCollection_AsciiString, TCollection_ExtendedString > | UnitSystemMap |
| typedef NCollection_IndexedDataMap < TCollection_AsciiString, Handle(DDS_DicGroup)> | DDS_IndexedDataMapOfDicGroups |
Functions | |
| DEFINE_STANDARD_HANDLE(DDS_DicGroup, MMgt_TShared) class DDS_DicGroup Standard_EXPORT TCollection_AsciiString | GetName () const |
| Standard_EXPORT void | GetKeys (TColStd_SequenceOfAsciiString &) const |
| Return all keys of the group. More... | |
| Standard_EXPORT | Handle (DDS_DicItem) GetDicItem(const TCollection_AsciiString &) const |
| Standard_EXPORT void | GetUnitSystems (TColStd_SequenceOfAsciiString &) const |
| Get the names of all defined units systems. More... | |
| Standard_EXPORT TCollection_ExtendedString | GetUnitSystemLabel (const TCollection_AsciiString &) const |
| Get the label of units system name. More... | |
| Standard_EXPORT TCollection_AsciiString | GetActiveUnitSystem () const |
| Standard_EXPORT void | SetActiveUnitSystem (const TCollection_AsciiString &) |
| Set the active unit system. More... | |
| Standard_EXPORT | DDS_DicGroup (const DDS_DicGroup &) |
| Standard_EXPORT void | operator= (const DDS_DicGroup &) |
| virtual Standard_EXPORT void | FillDataMap (const LDOM_Element &, const LDOM_Element &) |
| Standard_EXPORT Standard_Boolean | AddDicItem (const TCollection_AsciiString &, const Handle(DDS_DicItem)&) |
| Standard_EXPORT Standard_Boolean | HasDicItem (const TCollection_AsciiString &) const |
| Check if there is item bounded by id. More... | |
| Standard_EXPORT void | RemoveAllDicItems () |
| Clear dictionary items map. More... | |
| Standard_EXPORT const DDS_IndexedDataMapOfDicItems & | GetItemMap () const |
| Returns a reference to a map. Can be used to iterate through dictionary items. More... | |
| Standard_EXPORT Standard_Boolean | AddUnitSystem (const TCollection_AsciiString &, const TCollection_ExtendedString &) |
| Add new unit system and bind its label name. More... | |
| OCCT_DEFINE_STANDARD_RTTIEXT (DDS_DicGroup, MMgt_TShared)} | |
Variables | |
| TCollection_AsciiString | myName |
| DDS_IndexedDataMapOfDicItems | myDataMap |
| UnitSystemMap | myUnitSystem |
| TCollection_AsciiString | myActiveSystem |
| TColStd_SequenceOfAsciiString | myKeys |
| typedef NCollection_IndexedDataMap<TCollection_AsciiString, Handle(DDS_DicGroup)> DDS_IndexedDataMapOfDicGroups |
| typedef NCollection_DataMap<TCollection_AsciiString, TCollection_ExtendedString> UnitSystemMap |
|
protected |
|
protected |
References myUnitSystem.
|
protected |
|
protectedvirtual |
| Standard_EXPORT TCollection_AsciiString GetActiveUnitSystem | ( | ) | const |
|
protected |
References myDataMap.
| void DDS_DicGroup::GetKeys | ( | TColStd_SequenceOfAsciiString & | seq | ) | const |
| seq | - string container to be filled with keys |
References myKeys.
| DEFINE_STANDARD_HANDLE (DDS_DicGroup, MMgt_TShared) class DDS_DicGroup Standard_EXPORT TCollection_AsciiString GetName | ( | ) | const |
| TCollection_ExtendedString DDS_Dictionary::GetUnitSystemLabel | ( | const TCollection_AsciiString & | theSystem | ) | const |
Get the label of the units system theSystem.
If units system is not found, empty string is returned.
| make | units system name |
Searches the given units system in all components. If units system is not found in any component, empty string is returned.
| theSystem | units system |
References myUnitSystem.
| void DDS_Dictionary::GetUnitSystems | ( | TColStd_SequenceOfAsciiString & | theSystems | ) | const |
Get the names of defined units systems from all components.
| theSystemsSeq | returning sequence of names |
| theSystems | returning sequence of units systems names. |
References myUnitSystem, and UNIT_SYSTEM_SI.
| Standard_EXPORT Handle | ( | DDS_DicItem | ) | const |
|
protected |
References myDataMap.
| OCCT_DEFINE_STANDARD_RTTIEXT | ( | DDS_DicGroup | , |
| MMgt_TShared | |||
| ) |
|
protected |
| void DDS_Dictionary::SetActiveUnitSystem | ( | const TCollection_AsciiString & | theSystem | ) |
Set the active units system.
| theSystem | name of the units system to be made active |
This units system will be activated in each existing component, if it component has this units system.
| theSystem | units system to be made active |
References myActiveSystem, and myUnitSystem.
| TCollection_AsciiString myActiveSystem |
| DDS_IndexedDataMapOfDicItems myDataMap |
| TColStd_SequenceOfAsciiString myKeys |
| TCollection_AsciiString myName |
| UnitSystemMap myUnitSystem |