GDCM 3.0.24
gdcmIODEntry.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: GDCM (Grassroots DICOM). A DICOM library
4
5 Copyright (c) 2006-2011 Mathieu Malaterre
6 All rights reserved.
7 See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notice for more information.
12
13=========================================================================*/
14#ifndef GDCMIODENTRY_H
15#define GDCMIODENTRY_H
16
17#include "gdcmUsage.h"
18#include "gdcmType.h"
19
20#include <string>
21
22namespace gdcm
23{
52{
53public:
54 IODEntry(const char *name = "", const char *ref = "", const char *inUsage = ""):Name(name),Ref(ref),usage(inUsage) {
55 }
56 friend std::ostream& operator<<(std::ostream& _os, const IODEntry &_val);
57
58 void SetIE(const char *ie) { IE = ie; }
59 const char *GetIE() const { return IE.c_str(); }
60
61 void SetName(const char *name) { Name = name; }
62 const char *GetName() const { return Name.c_str(); }
63
64 void SetRef(const char *ref) { Ref = ref; }
65 const char *GetRef() const { return Ref.c_str(); }
66
67 void SetUsage(const char *inUsage) { usage = inUsage; }
68 const char *GetUsage() const { return usage.c_str(); }
70
71private:
72 std::string IE;
73
74 std::string Name;
75
76 std::string Ref;
77
78 std::string usage;
79};
80//-----------------------------------------------------------------------------
81inline std::ostream& operator<<(std::ostream& _os, const IODEntry &_val)
82{
83 _os << _val.IE << "\t" << _val.Name << "\t" << _val.Ref << "\t" << _val.usage;
84 return _os;
85}
86
87} // end namespace gdcm
88
89#endif //GDCMIODENTRY_H
Class for representing a IODEntry.
Definition gdcmIODEntry.h:52
void SetIE(const char *ie)
Definition gdcmIODEntry.h:58
const char * GetIE() const
Definition gdcmIODEntry.h:59
void SetUsage(const char *inUsage)
Definition gdcmIODEntry.h:67
const char * GetName() const
Definition gdcmIODEntry.h:62
const char * GetRef() const
Definition gdcmIODEntry.h:65
void SetName(const char *name)
Definition gdcmIODEntry.h:61
void SetRef(const char *ref)
Definition gdcmIODEntry.h:64
IODEntry(const char *name="", const char *ref="", const char *inUsage="")
Definition gdcmIODEntry.h:54
const char * GetUsage() const
Definition gdcmIODEntry.h:68
Usage::UsageType GetUsageType() const
UsageType
Definition gdcmUsage.h:51
#define GDCM_EXPORT
Definition gdcmWin32.h:34
Definition gdcmASN1.h:21
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88