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

| Public Member Functions | |
| gdcmPatient (ListTag::iterator begin, ListTag::iterator end) | |
| ~gdcmPatient (void) | |
| Canonical destructor. | |
| virtual void | Print (std::ostream &os=std::cout) | 
| Prints the Object. | |
| ListStudy & | GetStudies () | 
| void | AddStudy (gdcmStudy *obj) | 
| void | SetPrintLevel (int level) | 
| 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 | 
| Private Attributes | |
| ListStudy | studies | 
| 
 | ||||||||||||
| 
 
 Definition at line 13 of file gdcmPatient.cxx. 
 00013 : 00014 gdcmObject(begin,end) 00015 { 00016 } | 
| 
 | 
| Canonical destructor. 
 Definition at line 22 of file gdcmPatient.cxx. References studies. 
 | 
| 
 | 
| 
 Definition at line 22 of file gdcmPatient.h. 
 00022 {studies.push_back(obj);};
 | 
| 
 | 
| Get all entries in a hash table. 
 
 Definition at line 89 of file gdcmObject.cxx. References gdcmObject::beginObj, gdcmObject::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(), gdcmObject::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 gdcmObject::beginObj, gdcmObject::endObj, and GDCM_UNFOUND. Referenced by gdcmObject::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 gdcmObject::beginObj, gdcmObject::endObj, and ListTag. 
 | 
| 
 | 
| 
 Definition at line 21 of file gdcmPatient.h. References ListStudy. 
 00021 {return studies;};
 | 
| 
 | 
| Prints the Object. 
 
 Reimplemented from gdcmObject. Definition at line 37 of file gdcmPatient.cxx. References gdcmObject::Print(), and studies. 
 00038 {
00039    os<<"PATIENT"<<std::endl;
00040    gdcmObject::Print(os);
00041 
00042    for(ListStudy::iterator cc = studies.begin();cc!=studies.end();++cc)
00043    {
00044       (*cc)->SetPrintLevel(printLevel);
00045       (*cc)->Print(os);
00046    }
00047 }
 | 
| 
 | 
| 
 Definition at line 23 of file gdcmObject.h. 
 00023 { printLevel = level; };
 | 
| 
 | 
| 
 Definition at line 33 of file gdcmObject.h. Referenced by gdcmObject::gdcmObject(), gdcmObject::GetEntry(), gdcmObject::GetEntryByNumber(), gdcmObject::GetListEntry(), and gdcmObject::Print(). | 
| 
 | 
| 
 Definition at line 34 of file gdcmObject.h. Referenced by gdcmObject::gdcmObject(), gdcmObject::GetEntry(), gdcmObject::GetEntryByNumber(), gdcmObject::GetListEntry(), and gdcmObject::Print(). | 
| 
 | 
| 
 Definition at line 36 of file gdcmObject.h. | 
| 
 | 
| 
 Definition at line 25 of file gdcmPatient.h. Referenced by Print(), and ~gdcmPatient(). | 
 1.3.6
 
1.3.6