gdcmDefs.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004   Module:  $URL$
00005 
00006   Copyright (c) 2006-2009 Mathieu Malaterre
00007   All rights reserved.
00008   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 #ifndef __gdcmDefs_h
00016 #define __gdcmDefs_h
00017 
00018 #include "gdcmModules.h"
00019 //#include "gdcmMacros.h"
00020 #include "gdcmIODs.h"
00021 
00022 #include <string>
00023 
00024 namespace gdcm
00025 {
00026 class DataSet;
00027 class File;
00028 class MediaStorage;
00033 class GDCM_EXPORT Defs
00034 {
00035 public:
00036   Defs();
00037   ~Defs();
00038 
00039   const Modules &GetModules() const { return Part3Modules; }
00040   Modules &GetModules() { return Part3Modules; }
00041 
00042   const Macros &GetMacros() const { return Part3Macros; }
00043   Macros &GetMacros() { return Part3Macros; }
00044 
00045   const IODs & GetIODs() const { return Part3IODs; }
00046   IODs & GetIODs() { return Part3IODs; }
00047 
00048   bool IsEmpty() const { return GetModules().IsEmpty(); }
00049 
00050   bool Verify(const File& file) const;
00051   
00052   // \deprecated DO NOT USE
00053   bool Verify(const DataSet& ds) const;
00054 
00055   Type GetTypeFromTag(const File& file, const Tag& tag) const;
00056 
00057   static const char *GetIODNameFromMediaStorage(MediaStorage const &ms);
00058 
00059 protected:
00060   friend class Global;
00061   void LoadDefaults();
00062   void LoadFromFile(const char *filename);
00063 
00064 private:
00065   // Part 3 stuff:
00066   Macros Part3Macros;
00067   Modules Part3Modules;
00068   IODs Part3IODs;
00069 
00070   Defs &operator=(const Defs &val); // purposely not implemented
00071   Defs(const Defs &val); // purposely not implemented
00072 };
00073 
00074 
00075 } // end namespace gdcm
00076 
00077 #endif //__gdcmDefs_h
00078 

Generated on Thu Jul 1 06:40:23 2010 for GDCM by doxygen 1.6.3
SourceForge.net Logo