src/DDS/DDS_KeyWords.h

Go to the documentation of this file.
00001 // Copyright (C) 2005  CEA/DEN, EDF R&D, OPEN CASCADE, PRINCIPIA R&D
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 #ifndef DDS_KEYWORDS_H
00020 #define DDS_KEYWORDS_H
00021 
00022 #include "DDS.h"
00023 
00024 #include <MMgt_TShared.hxx>
00025 
00026 #include <NCollection_DataMap.hxx>
00027 
00028 DEFINE_STANDARD_HANDLE(DDS_KeyWords, MMgt_TShared)
00029 
00030 class TCollection_AsciiString;
00031 
00032 class DDS_KeyWords: public MMgt_TShared
00033 {
00034 public:
00035   Standard_EXPORT static Handle(DDS_KeyWords) Get();
00036 
00037   Standard_EXPORT TCollection_AsciiString     GetKeyWord( const TCollection_AsciiString& ) const;
00038   Standard_EXPORT void                        SetKeyWord( const TCollection_AsciiString&,
00039                                                           const TCollection_AsciiString& );
00040 
00041 private:
00042   DDS_KeyWords();
00043 
00044 private:
00045   typedef NCollection_DataMap<TCollection_AsciiString,
00046                               TCollection_AsciiString> KeyWordMap;
00047 
00048 private:
00049   KeyWordMap                                  myKeyWord;
00050 
00051 public:
00052   DEFINE_STANDARD_RTTI(DDS_KeyWords)
00053 };
00054 
00055 #endif