-// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
#include <LDOMString.hxx>
-#include <MMgt_TShared.hxx>
+#include <Standard_Transient.hxx>
class LDOM_Element;
class TCollection_AsciiString;
-DEFINE_STANDARD_HANDLE(DDS_Dictionary, MMgt_TShared)
+DEFINE_STANDARD_HANDLE(DDS_Dictionary, Standard_Transient)
-class DDS_Dictionary : public MMgt_TShared
+class DDS_Dictionary : public Standard_Transient
{
public:
Standard_EXPORT static Handle(DDS_Dictionary) Get();
static Standard_EXPORT LDOMString KeyWord( const TCollection_AsciiString& );
-private:
- DDS_Dictionary();
- DDS_Dictionary( const DDS_Dictionary& );
+protected:
- void operator=( const DDS_Dictionary& );
+ Standard_EXPORT virtual Handle(DDS_DicGroup) CreateGroup( const TCollection_AsciiString& ) const;
- void FillDataMap( const LDOM_Element&, const LDOM_Element& );
+protected:
+
+ Standard_EXPORT DDS_Dictionary();
+
+ Standard_EXPORT DDS_Dictionary( const DDS_Dictionary& );
+
+ Standard_EXPORT void operator=( const DDS_Dictionary& );
+
+ Standard_EXPORT virtual void FillDataMap( const LDOM_Element& );
+
+ Standard_EXPORT static void SetDictionary(const Handle(DDS_Dictionary)& theDict);
+
+protected:
-private:
DDS_IndexedDataMapOfDicGroups myGroupMap;
+private:
+
+ static Handle(DDS_Dictionary) myDictionary;
+
public:
- DEFINE_STANDARD_RTTI(DDS_Dictionary)
+ DEFINE_STANDARD_RTTIEXT(DDS_Dictionary, Standard_Transient)
};
#endif