#include <gdcmObject.h>
Inheritance diagram for gdcmObject:

Public Member Functions | |
| gdcmObject (ListTag::iterator begin, ListTag::iterator end) | |
| ~gdcmObject (void) | |
| Canonical destructor. | |
| void | SetPrintLevel (int level) |
| virtual void | Print (std::ostream &os=std::cout) |
| Prints the Object. | |
| std::string | GetEntryByNumber (guint16 group, guint16 element) |
| Get an entry by number. | |
| std::string | GetEntryByName (TagName name) |
| Get an entry by name. | |
| TagHeaderEntryHT | GetEntry (void) |
| Get all entries in a hash table. | |
| ListTag | GetListEntry (void) |
| Get all entries in a list. | |
Protected Attributes | |
| ListTag::iterator | beginObj |
| ListTag::iterator | endObj |
| int | printLevel |
|
||||||||||||
|
Definition at line 14 of file gdcmObject.cxx. References beginObj, dbg, endObj, and gdcmDebug::Verbose().
|
|
|
Canonical destructor.
Definition at line 27 of file gdcmObject.cxx.
00028 {
00029 }
|
|
|
Get all entries in a hash table.
Definition at line 89 of file gdcmObject.cxx. References beginObj, endObj, PairHT, and TagHeaderEntryHT.
00090 {
00091 TagHeaderEntryHT HT;
00092
00093 for(ListTag::iterator it=beginObj;it!=endObj;++it)
00094 {
00095 HT.insert( PairHT( (*it)->GetKey(),(*it)) );
00096 }
00097
00098 return(HT);
00099 }
|
|
|
Get an entry by name.
Definition at line 74 of file gdcmObject.cxx. References GDCM_UNFOUND, gdcmDictSet::GetDefaultPubDict(), gdcmGlobal::GetDicts(), gdcmDictEntry::GetElement(), GetEntryByNumber(), gdcmDictEntry::GetGroup(), and TagName.
00075 {
00076 gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
00077 gdcmDictEntry *dictEntry = (*PubDict).GetDictEntryByName(name);
00078
00079 if( dictEntry == NULL)
00080 return GDCM_UNFOUND;
00081 return GetEntryByNumber(dictEntry->GetGroup(),dictEntry->GetElement());
00082 }
|
|
||||||||||||
|
Get an entry by number.
Definition at line 57 of file gdcmObject.cxx. References beginObj, endObj, and GDCM_UNFOUND. Referenced by GetEntryByName().
00058 {
00059 for(ListTag::iterator i=beginObj;i!=endObj;++i)
00060 {
00061 if ( (*i)->GetGroup()==group && (*i)->GetElement()==element)
00062 return (*i)->GetValue();
00063 }
00064
00065 return GDCM_UNFOUND;
00066 }
|
|
|
Get all entries in a list.
Definition at line 106 of file gdcmObject.cxx. References beginObj, endObj, and ListTag.
|
|
|
Prints the Object.
Reimplemented in gdcmImage, gdcmPatient, gdcmSerie, and gdcmStudy. Definition at line 38 of file gdcmObject.cxx. References beginObj, and endObj. Referenced by gdcmStudy::Print(), gdcmSerie::Print(), gdcmPatient::Print(), and gdcmImage::Print().
00039 {
00040 if(printLevel>=0)
00041 {
00042 for(ListTag::iterator i=beginObj;i!=endObj;++i)
00043 {
00044 (*i)->SetPrintLevel(printLevel);
00045 (*i)->Print(os);
00046 }
00047 }
00048 }
|
|
|
Definition at line 23 of file gdcmObject.h.
00023 { printLevel = level; };
|
|
|
Definition at line 33 of file gdcmObject.h. Referenced by gdcmObject(), GetEntry(), GetEntryByNumber(), GetListEntry(), and Print(). |
|
|
Definition at line 34 of file gdcmObject.h. Referenced by gdcmObject(), GetEntry(), GetEntryByNumber(), GetListEntry(), and Print(). |
|
|
Definition at line 36 of file gdcmObject.h. |
1.3.6