Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #if 0
00016 #ifndef GDCMMACROENTRY_H
00017 #define GDCMMACROENTRY_H
00018
00019 #include "gdcmTypes.h"
00020 #include "gdcmType.h"
00021
00022 #include <string>
00023
00024 namespace gdcm
00025 {
00031 class GDCM_EXPORT MacroEntry
00032 {
00033 public:
00034 MacroEntry(const char *name = "", const char *type = "3", const char *description = ""):Name(name),DescriptionField(description) {
00035 DataElementType = Type::GetTypeType(type);
00036 }
00037 virtual ~MacroEntry() {}
00038 friend std::ostream& operator<<(std::ostream& _os, const MacroEntry &_val);
00039
00040 void SetName(const char *name) { Name = name; }
00041 const char *GetName() const { return Name.c_str(); }
00042
00043 void SetType(const Type &type) { DataElementType = type; }
00044 const Type &GetType() const { return DataElementType; }
00045
00046
00047
00048
00049
00050
00051 typedef std::string Description;
00052 void SetDescription(const char *d) { DescriptionField = d; }
00053 const Description & GetDescription() const { return DescriptionField; }
00054
00055 protected:
00056
00057
00058 std::string Name;
00059
00060
00061
00062 Type DataElementType;
00063
00064
00065 Description DescriptionField;
00066 };
00067
00068 inline std::ostream& operator<<(std::ostream& _os, const MacroEntry &_val)
00069 {
00070 _os << _val.Name << "\t" << _val.DataElementType << "\t" << _val.DescriptionField;
00071 return _os;
00072 }
00073
00074
00075 }
00076
00077 #endif //GDCMMODULEENTRY_H
00078 #endif
00079
00080 #ifndef GDCMMACROENTRY_H
00081 #define GDCMMACROENTRY_H
00082 #include "gdcmModuleEntry.h"
00083 #endif
00084