1 // Copyright (C) 2005 CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/
19 #ifndef DDS_DICGROUP_H
20 #define DDS_DICGROUP_H
24 #include "DDS_DicItem.h"
26 #include <MMgt_TShared.hxx>
28 #include <TCollection_AsciiString.hxx>
30 #include <NCollection_List.hxx>
33 class TColStd_SequenceOfAsciiString;
35 DEFINE_STANDARD_HANDLE(DDS_DicGroup, MMgt_TShared)
37 class DDS_DicGroup : public MMgt_TShared
40 DDS_DicGroup( const TCollection_AsciiString& );
42 TCollection_AsciiString GetName() const;
44 Standard_EXPORT Handle(DDS_DicItem) GetDicItem( const TCollection_AsciiString& ) const;
46 Standard_EXPORT void GetUnitSystems( TColStd_SequenceOfAsciiString& ) const;
47 Standard_EXPORT TCollection_ExtendedString GetUnitSystemLabel( const TCollection_AsciiString& ) const;
49 Standard_EXPORT TCollection_AsciiString GetActiveUnitSystem() const;
50 Standard_EXPORT void SetActiveUnitSystem( const TCollection_AsciiString& );
53 DDS_DicGroup( const DDS_DicGroup& );
55 void operator=( const DDS_DicGroup& );
57 void FillDataMap( const LDOM_Element&, const LDOM_Element& );
60 typedef NCollection_DataMap<TCollection_AsciiString,
61 TCollection_ExtendedString> UnitSystemMap;
64 TCollection_AsciiString myName;
65 DDS_IndexedDataMapOfDicItems myDataMap;
66 UnitSystemMap myUnitSystem;
67 TCollection_AsciiString myActiveSystem;
69 friend class DDS_Dictionary;
72 DEFINE_STANDARD_RTTI(DDS_DicGroup)
75 DEFINE_BASECOLLECTION(DDS_BaseCollectionOfDicGroups, Handle(DDS_DicGroup))
76 DEFINE_INDEXEDDATAMAP(DDS_IndexedDataMapOfDicGroups, DDS_BaseCollectionOfDicGroups,
77 TCollection_AsciiString, Handle(DDS_DicGroup))