GDCM: gdcmIODEntry.h Source File

GDCM 3.0.25

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{
51 class GDCM_EXPORT IODEntry
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(); }
69 Usage::UsageType GetUsageType() const;
70
71private:
72 std::string IE;
73
74 std::string Name;
75
76 std::string Ref;
77
78 std::string usage;
79};
80//-----------------------------------------------------------------------------
81 inline 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
gdcm::IODEntry
Class for representing a IODEntry.
Definition gdcmIODEntry.h:52
gdcm::IODEntry::SetIE
void SetIE(const char *ie)
Definition gdcmIODEntry.h:58
gdcm::IODEntry::GetIE
const char * GetIE() const
Definition gdcmIODEntry.h:59
gdcm::IODEntry::SetUsage
void SetUsage(const char *inUsage)
Definition gdcmIODEntry.h:67
gdcm::IODEntry::GetName
const char * GetName() const
Definition gdcmIODEntry.h:62
gdcm::IODEntry::GetRef
const char * GetRef() const
Definition gdcmIODEntry.h:65
gdcm::IODEntry::SetName
void SetName(const char *name)
Definition gdcmIODEntry.h:61
gdcm::IODEntry::SetRef
void SetRef(const char *ref)
Definition gdcmIODEntry.h:64
gdcm::IODEntry::IODEntry
IODEntry(const char *name="", const char *ref="", const char *inUsage="")
Definition gdcmIODEntry.h:54
gdcm::IODEntry::GetUsage
const char * GetUsage() const
Definition gdcmIODEntry.h:68
gdcm::IODEntry::GetUsageType
Usage::UsageType GetUsageType() const
gdcm::Usage::UsageType
UsageType
Definition gdcmUsage.h:51
gdcmType.h
gdcmUsage.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21
gdcm::operator<<
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition gdcmDirectory.h:88