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: 2003/09/10 14:29:16 $
00007 Version:   $Revision: 1.11 $
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 <string>
00028 #include "itkMetaDataObjectBase.h"
00029 
00030 namespace itk
00031 {
00032   // Forward declare the datastructure that will be used to hold the
00033   // dictionary. This is a private implementation.
00034   class MetaDataDictionaryMapType;
00035 
00043   class ITKCommon_EXPORT MetaDataDictionary
00044     {
00045       public:
00046         typedef MetaDataDictionary Self;
00051         virtual void Print(std::ostream& os) const;
00052 
00053         // Constructor
00054         MetaDataDictionary();
00055         // Copy Constructor
00056         MetaDataDictionary(const MetaDataDictionary&);
00057         // operator =
00058         void operator=(const MetaDataDictionary&);
00059 
00060         // Destructor
00061         virtual ~MetaDataDictionary();
00062 
00063         // Implement map's api. On some Micorsoft compilers, stl containers
00064         // cannot be exported. This causes problems when building DLL's.
00065         // Here we inherit privately from std::map and provide a simple
00066         // API. The implementation will be in the DLL.
00067         MetaDataObjectBase::Pointer &operator [](const std::string &);
00068         bool HasKey (const std::string &);
00069     private:
00070         MetaDataDictionaryMapType *m_Dictionary;
00071     };
00072 }
00073 #endif// MetaDataDictionary_h_h
00074 

Generated at Tue Sep 16 11:32:04 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000