GDCM 2.0.17
|
00001 /*========================================================================= 00002 00003 Program: GDCM (Grassroots DICOM). A DICOM library 00004 Module: $URL$ 00005 00006 Copyright (c) 2006-2010 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 GDCMIODENTRY_H 00016 #define GDCMIODENTRY_H 00017 00018 #include "gdcmUsage.h" 00019 #include "gdcmType.h" 00020 00021 #include <string> 00022 00023 namespace gdcm 00024 { 00052 class GDCM_EXPORT IODEntry 00053 { 00054 public: 00055 IODEntry(const char *name = "", const char *ref = "", const char *usag = ""):Name(name),Ref(ref),usage(usag) { 00056 } 00057 friend std::ostream& operator<<(std::ostream& _os, const IODEntry &_val); 00058 00059 void SetIE(const char *ie) { IE = ie; } 00060 const char *GetIE() const { return IE.c_str(); } 00061 00062 void SetName(const char *name) { Name = name; } 00063 const char *GetName() const { return Name.c_str(); } 00064 00065 void SetRef(const char *ref) { Ref = ref; } 00066 const char *GetRef() const { return Ref.c_str(); } 00067 00068 void SetUsage(const char *usag) { usage = usag; } 00069 const char *GetUsage() const { return usage.c_str(); } 00070 Usage::UsageType GetUsageType() const; 00071 00072 private: 00073 std::string IE; 00074 00075 std::string Name; 00076 00077 std::string Ref; 00078 00079 std::string usage; 00080 }; 00081 //----------------------------------------------------------------------------- 00082 inline std::ostream& operator<<(std::ostream& _os, const IODEntry &_val) 00083 { 00084 _os << _val.IE << "\t" << _val.Name << "\t" << _val.Ref << "\t" << _val.usage; 00085 return _os; 00086 } 00087 00088 } // end namespace gdcm 00089 00090 #endif //GDCMIODENTRY_H