Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkMetaDataDictionary.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003 Program:   Insight Segmentation & Registration Toolkit
00004 Module:    $RCSfile: itkMetaDataDictionary.h,v $
00005 Language:  C++
00006 Date:      $Date: 2004/01/02 18:41:18 $
00007 Version:   $Revision: 1.13 $
00008 
00009 Copyright (c) Insight Software Consortium. All rights reserved.
00010 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012 Portions of this code are covered under the VTK copyright.
00013 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015 This software is distributed WITHOUT ANY WARRANTY; without even
00016 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00017 PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef MetaDataDictionary_h_h
00021 #define MetaDataDictionary_h_h
00022 
00023 #if defined(_MSC_VER)
00024 #pragma warning ( disable : 4786 )
00025 #endif
00026 
00027 #include <vector>
00028 #include <string>
00029 #include "itkMetaDataObjectBase.h"
00030 
00031 namespace itk
00032 {
00033   // Forward declare the datastructure that will be used to hold the
00034   // dictionary. This is a private implementation.
00035   class MetaDataDictionaryMapType;
00036 
00044   class ITKCommon_EXPORT MetaDataDictionary
00045     {
00046       public:
00047         typedef MetaDataDictionary Self;
00052         virtual void Print(std::ostream& os) const;
00053 
00054         // Constructor
00055         MetaDataDictionary();
00056         // Copy Constructor
00057         MetaDataDictionary(const MetaDataDictionary&);
00058         // operator =
00059         void operator=(const MetaDataDictionary&);
00060 
00061         // Destructor
00062         virtual ~MetaDataDictionary();
00063 
00067       std::vector<std::string> GetKeys() const;
00068       
00069         // Implement map's api. On some Micorsoft compilers, stl containers
00070         // cannot be exported. This causes problems when building DLL's.
00071         // Here we inherit privately from std::map and provide a simple
00072         // API. The implementation will be in the DLL.
00073         MetaDataObjectBase::Pointer &operator [](const std::string &);
00074         bool HasKey (const std::string &);
00075     private:
00076         MetaDataDictionaryMapType *m_Dictionary;
00077     };
00078 }
00079 #endif// MetaDataDictionary_h_h
00080 

Generated at Sun Jan 25 13:19:40 2004 for ITK by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-2000