gdcmIODEntry.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMIODENTRY_H
#define GDCMIODENTRY_H
#include "gdcmUsage.h"
#include "gdcmType.h"
#include <string>
namespace gdcm
{
class GDCM_EXPORT IODEntry
{
public:
IODEntry(const char *name = "", const char *ref = "", const char *inUsage = ""):Name(name),Ref(ref),usage(inUsage) {
}
friend std::ostream& operator<<(std::ostream& _os, const IODEntry &_val);
void SetIE(const char *ie) { IE = ie; }
const char *GetIE() const { return IE.c_str(); }
void SetName(const char *name) { Name = name; }
const char *GetName() const { return Name.c_str(); }
void SetRef(const char *ref) { Ref = ref; }
const char *GetRef() const { return Ref.c_str(); }
void SetUsage(const char *inUsage) { usage = inUsage; }
const char *GetUsage() const { return usage.c_str(); }
Usage::UsageType GetUsageType() const;
private:
std::string IE;
std::string Name;
std::string Ref;
std::string usage;
};
//-----------------------------------------------------------------------------
inline std::ostream& operator<<(std::ostream& _os, const IODEntry &_val)
{
_os << _val.IE << "\t" << _val.Name << "\t" << _val.Ref << "\t" << _val.usage;
return _os;
}
} // end namespace gdcm
#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