GDCM_NAME_SPACE::VRKey Class Reference

#include <gdcmVRKey.h>

List of all members.

Public Member Functions

 VRKey ()
 VRKey (const char *_key)
 VRKey (const std::string &_key)
std::string str () const
VRKeyoperator= (const VRKey &_val)
VRKeyoperator= (const std::string &_val)
VRKeyoperator= (const char *_val)
const char & operator[] (const unsigned int &_id) const
char & operator[] (const unsigned int &_id)
bool operator== (const VRKey &_val) const
bool operator== (const std::string &_val) const
bool operator== (const char *_val) const
bool operator!= (const VRKey &_val) const
bool operator!= (const std::string &_val) const
bool operator!= (const char *_val) const
bool operator< (const VRKey &_val) const

Private Attributes

char key [2]

Friends

std::ostream & operator<< (std::ostream &_os, const VRKey &_val)
std::istream & operator>> (std::istream &_is, VRKey &_val)


Detailed Description

Definition at line 31 of file gdcmVRKey.h.


Constructor & Destructor Documentation

GDCM_NAME_SPACE::VRKey::VRKey  )  [inline]
 

Definition at line 34 of file gdcmVRKey.h.

References key.

00034 { key[0] = key[1] = ' ';}

GDCM_NAME_SPACE::VRKey::VRKey const char *  _key  )  [inline]
 

Definition at line 35 of file gdcmVRKey.h.

References key.

00035 { key[0] = _key[0]; key[1] = _key[1];}

GDCM_NAME_SPACE::VRKey::VRKey const std::string &  _key  )  [inline]
 

Definition at line 36 of file gdcmVRKey.h.

References key.

00036 { key[0] = _key[0]; key[1] = _key[1];}


Member Function Documentation

bool GDCM_NAME_SPACE::VRKey::operator!= const char *  _val  )  const [inline]
 

Definition at line 100 of file gdcmVRKey.h.

References key.

00101    {
00102       return key[0] != _val[0] || key[1] != _val[1];
00103    }

bool GDCM_NAME_SPACE::VRKey::operator!= const std::string &  _val  )  const [inline]
 

Definition at line 96 of file gdcmVRKey.h.

References key.

00097    {
00098       return key[0] != _val[0] || key[1] != _val[1];
00099    }

bool GDCM_NAME_SPACE::VRKey::operator!= const VRKey _val  )  const [inline]
 

Definition at line 91 of file gdcmVRKey.h.

References key.

00092    {
00093       return key[0] != _val.key[0] || key[1] != _val.key[1];
00094    }

bool GDCM_NAME_SPACE::VRKey::operator< const VRKey _val  )  const [inline]
 

Definition at line 105 of file gdcmVRKey.h.

References key.

00106    {
00107       return key[0] < _val[0] || (key[0] == _val[0] && key[1] < _val[1]);
00108    }

VRKey& GDCM_NAME_SPACE::VRKey::operator= const char *  _val  )  [inline]
 

Definition at line 57 of file gdcmVRKey.h.

References key.

00058    {
00059       key[0] = _val[0];
00060       key[1] = _val[1];
00061       return *this;
00062    }

VRKey& GDCM_NAME_SPACE::VRKey::operator= const std::string &  _val  )  [inline]
 

Definition at line 50 of file gdcmVRKey.h.

References key.

00051    {
00052       key[0] = _val[0];
00053       key[1] = _val[1];
00054       return *this;
00055    }

VRKey& GDCM_NAME_SPACE::VRKey::operator= const VRKey _val  )  [inline]
 

Definition at line 43 of file gdcmVRKey.h.

References key.

00044    {
00045       key[0] = _val.key[0];
00046       key[1] = _val.key[1];
00047       return *this;
00048    }

bool GDCM_NAME_SPACE::VRKey::operator== const char *  _val  )  const [inline]
 

Definition at line 86 of file gdcmVRKey.h.

References key.

00087    {
00088       return key[0] == _val[0] && key[1] == _val[1];
00089    }

bool GDCM_NAME_SPACE::VRKey::operator== const std::string &  _val  )  const [inline]
 

Definition at line 81 of file gdcmVRKey.h.

References key.

00082    {
00083       return key[0] == _val[0] && key[1] == _val[1];
00084    }

bool GDCM_NAME_SPACE::VRKey::operator== const VRKey _val  )  const [inline]
 

Definition at line 76 of file gdcmVRKey.h.

References key.

00077    {
00078       return key[0] == _val.key[0] && key[1] == _val.key[1];
00079    }

char& GDCM_NAME_SPACE::VRKey::operator[] const unsigned int &  _id  )  [inline]
 

Definition at line 70 of file gdcmVRKey.h.

References key.

00071    {
00072       assert(_id<2);
00073       return key[_id];
00074    }

const char& GDCM_NAME_SPACE::VRKey::operator[] const unsigned int &  _id  )  const [inline]
 

Definition at line 64 of file gdcmVRKey.h.

References key.

00065    {
00066       assert(_id<2);
00067       return key[_id];
00068    }

std::string GDCM_NAME_SPACE::VRKey::str  )  const [inline]
 

Definition at line 38 of file gdcmVRKey.h.

References key.

Referenced by GDCM_NAME_SPACE::DocEntry::WriteContent().

00038 { return std::string(key,2); }


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  _os,
const VRKey _val
[friend]
 

Definition at line 115 of file gdcmVRKey.h.

00116 {
00117    _os << _val.key[0] << _val.key[1];
00118    return _os;
00119 }

std::istream& operator>> std::istream &  _is,
VRKey _val
[friend]
 

Definition at line 121 of file gdcmVRKey.h.

00122 {
00123    _is >> _val.key[0] >> _val.key[1];
00124    return _is;
00125 }


Member Data Documentation

char GDCM_NAME_SPACE::VRKey::key[2] [private]
 

Definition at line 111 of file gdcmVRKey.h.

Referenced by operator!=(), operator<(), GDCM_NAME_SPACE::operator<<(), operator=(), operator==(), GDCM_NAME_SPACE::operator>>(), operator[](), str(), and VRKey().


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 13:01:58 2007 for gdcm by  doxygen 1.4.6