GDCM  2.4.5
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 
22 namespace gdcm
23 {
52 {
53 public:
54  IODEntry(const char *name = "", const char *ref = "", const char *usag = ""):Name(name),Ref(ref),usage(usag) {
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 *usag) { usage = usag; }
68  const char *GetUsage() const { return usage.c_str(); }
69  Usage::UsageType GetUsageType() const;
70 
71 private:
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
const char * GetIE() const
Definition: gdcmIODEntry.h:59
const char * GetName() const
Definition: gdcmIODEntry.h:62
Class for representing a IODEntry.
Definition: gdcmIODEntry.h:51
void SetUsage(const char *usag)
Definition: gdcmIODEntry.h:67
#define GDCM_EXPORT
Definition: gdcmWin32.h:34
UsageType
Definition: gdcmUsage.h:51
void SetIE(const char *ie)
Definition: gdcmIODEntry.h:58
std::ostream & operator<<(std::ostream &os, const Directory &d)
Definition: gdcmDirectory.h:88
const char * GetUsage() const
Definition: gdcmIODEntry.h:68
void SetRef(const char *ref)
Definition: gdcmIODEntry.h:64
const char * GetRef() const
Definition: gdcmIODEntry.h:65
void SetName(const char *name)
Definition: gdcmIODEntry.h:61
IODEntry(const char *name="", const char *ref="", const char *usag="")
Definition: gdcmIODEntry.h:54
Definition: gdcmASN1.h:20

Generated on Fri Sep 25 2015 17:58:23 for GDCM by doxygen 1.8.9.1
SourceForge.net Logo