Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

gdcm::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 30 of file gdcmVRKey.h.


Constructor & Destructor Documentation

gdcm::VRKey::VRKey  )  [inline]
 

Definition at line 33 of file gdcmVRKey.h.

References key.

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

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

Definition at line 34 of file gdcmVRKey.h.

References key.

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

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

Definition at line 35 of file gdcmVRKey.h.

References key.

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


Member Function Documentation

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

Definition at line 99 of file gdcmVRKey.h.

References key.

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

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

Definition at line 95 of file gdcmVRKey.h.

References key.

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

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

Definition at line 90 of file gdcmVRKey.h.

References key.

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

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

Definition at line 104 of file gdcmVRKey.h.

References key.

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

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

Definition at line 56 of file gdcmVRKey.h.

References key.

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

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

Definition at line 49 of file gdcmVRKey.h.

References key.

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

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

Definition at line 42 of file gdcmVRKey.h.

References key.

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

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

Definition at line 85 of file gdcmVRKey.h.

References key.

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

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

Definition at line 80 of file gdcmVRKey.h.

References key.

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

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

Definition at line 75 of file gdcmVRKey.h.

References key.

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

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

Definition at line 69 of file gdcmVRKey.h.

References key.

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

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

Definition at line 63 of file gdcmVRKey.h.

References key.

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

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

Definition at line 37 of file gdcmVRKey.h.

References key.

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

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


Friends And Related Function Documentation

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

Definition at line 114 of file gdcmVRKey.h.

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

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

Definition at line 120 of file gdcmVRKey.h.

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


Member Data Documentation

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

Definition at line 110 of file gdcmVRKey.h.

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


The documentation for this class was generated from the following file:
Generated on Fri Jan 20 10:15:08 2006 for gdcm by  doxygen 1.4.4