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

Public Member Functions | |
| gdcmSerie (ListTag::iterator begin, ListTag::iterator end) | |
| ~gdcmSerie (void) | |
| Canonical destructor. | |
| virtual void | Print (std::ostream &os=std::cout) |
| Prints the Object. | |
| ListImage & | GetImages () |
| void | AddImage (gdcmImage *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 | |
| ListImage | images |
|
||||||||||||
|
Definition at line 13 of file gdcmSerie.cxx.
00013 : 00014 gdcmObject(begin,end) 00015 { 00016 } |
|
|
Canonical destructor.
Definition at line 22 of file gdcmSerie.cxx. References images.
|
|
|
Definition at line 22 of file gdcmSerie.h.
00022 {images.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 }
|
|
|
Definition at line 21 of file gdcmSerie.h. References ListImage.
00021 {return images;};
|
|
|
Get all entries in a list.
Definition at line 106 of file gdcmObject.cxx. References gdcmObject::beginObj, gdcmObject::endObj, and ListTag.
|
|
|
Prints the Object.
Reimplemented from gdcmObject. Definition at line 37 of file gdcmSerie.cxx. References images, and gdcmObject::Print().
00038 {
00039 os<<"SERIE"<<std::endl;
00040 gdcmObject::Print(os);
00041
00042 for(ListImage::iterator cc = images.begin();cc != images.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 25 of file gdcmSerie.h. Referenced by Print(), and ~gdcmSerie(). |
|
|
Definition at line 36 of file gdcmObject.h. |
1.3.6