GDCM  2.2.0
gdcmIODEntry.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program: GDCM (Grassroots DICOM). A DICOM library
00004 
00005   Copyright (c) 2006-2011 Mathieu Malaterre
00006   All rights reserved.
00007   See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
00008 
00009      This software is distributed WITHOUT ANY WARRANTY; without even
00010      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00011      PURPOSE.  See the above copyright notice for more information.
00012 
00013 =========================================================================*/
00014 #ifndef GDCMIODENTRY_H
00015 #define GDCMIODENTRY_H
00016 
00017 #include "gdcmUsage.h"
00018 #include "gdcmType.h"
00019 
00020 #include <string>
00021 
00022 namespace gdcm
00023 {
00051 class GDCM_EXPORT IODEntry
00052 {
00053 public:
00054   IODEntry(const char *name = "", const char *ref = "", const char *usag = ""):Name(name),Ref(ref),usage(usag) {
00055   }
00056   friend std::ostream& operator<<(std::ostream& _os, const IODEntry &_val);
00057 
00058   void SetIE(const char *ie) { IE = ie; }
00059   const char *GetIE() const { return IE.c_str(); }
00060 
00061   void SetName(const char *name) { Name = name; }
00062   const char *GetName() const { return Name.c_str(); }
00063 
00064   void SetRef(const char *ref) { Ref = ref; }
00065   const char *GetRef() const { return Ref.c_str(); }
00066 
00067   void SetUsage(const char *usag) { usage = usag; }
00068   const char *GetUsage() const { return usage.c_str(); }
00069   Usage::UsageType GetUsageType() const;
00070 
00071 private:
00072   std::string IE;
00073 
00074   std::string Name;
00075 
00076   std::string Ref;
00077 
00078   std::string usage;
00079 };
00080 //-----------------------------------------------------------------------------
00081 inline std::ostream& operator<<(std::ostream& _os, const IODEntry &_val)
00082 {
00083   _os << _val.IE << "\t" << _val.Name << "\t" << _val.Ref << "\t" << _val.usage;
00084   return _os;
00085 }
00086 
00087 } // end namespace gdcm
00088 
00089 #endif //GDCMIODENTRY_H

Generated on Fri Mar 30 2012 12:44:03 for GDCM by doxygen 1.8.0
SourceForge.net Logo