GDCM  2.2.0
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

Generated on Wed Jun 13 2012 20:40:37 for GDCM by doxygen 1.8.1
SourceForge.net Logo