#include <gdcmDictGroupName.h>
Inheritance diagram for gdcm::DictGroupName:
Public Member Functions | |
virtual void | Print (std::ostream &os=std::cout, std::string const &indent="") |
Print all. | |
const TagName & | GetName (uint16_t group) |
void | Delete () |
Delete the object. | |
void | Register () |
Register the object. | |
void | Unregister () |
Unregister the object. | |
const unsigned long & | GetRefCount () const |
Get the reference counting. | |
void | SetPrintLevel (int level) |
Sets the print level for the Dicom Header Elements. | |
int | GetPrintLevel () |
Gets the print level for the Dicom Entries. | |
Static Public Member Functions | |
static DictGroupName * | New () |
Protected Member Functions | |
DictGroupName () | |
Constructor. | |
~DictGroupName () | |
Destructor. | |
Protected Attributes | |
int | PrintLevel |
Amount of printed details for each Dicom Entries : 0 : stands for the least detail level. | |
Private Member Functions | |
gdcmTypeMacro (DictGroupName) | |
Private Attributes | |
DictGroupNameHT | groupName |
Definition at line 41 of file gdcmDictGroupName.h.
|
Constructor.
Definition at line 40 of file gdcmDictGroupName.cxx. References gdcm::DictSet::BuildDictPath(), DICT_GROUP_NAME, gdcm::FillDefaultDictGroupName(), gdcmWarningMacro, and groupName. 00041 { 00042 std::string filename = DictSet::BuildDictPath() + DICT_GROUP_NAME; 00043 std::ifstream from(filename.c_str()); 00044 if ( !from ) 00045 { 00046 gdcmWarningMacro("Can't open dictionary" << filename.c_str()); 00047 FillDefaultDictGroupName(groupName); 00048 } 00049 else 00050 { 00051 char buff[1024]; 00052 uint16_t key; 00053 TagName value; 00054 00055 while (!from.eof()) 00056 { 00057 from >> std::ws; 00058 from >> std::hex; 00059 from >> key; 00060 from >> std::ws; 00061 from.getline(buff, 1024, '"'); 00062 from.getline(buff, 1024, '"'); 00063 value = buff; 00064 if ( !from.eof() ) 00065 groupName[key] = value; 00066 00067 from.getline(buff, 1024, '\n'); 00068 } 00069 from.close(); 00070 } 00071 }
|
|
Destructor.
Definition at line 76 of file gdcmDictGroupName.cxx. References groupName. 00077 { 00078 groupName.clear(); 00079 }
|
|
|
|
|
Definition at line 84 of file gdcmDictGroupName.cxx. References gdcm::GDCM_UNFOUND, and groupName. 00085 { 00086 DictGroupNameHT::const_iterator it = groupName.find(group); 00087 if ( it == groupName.end() ) 00088 { 00089 return GDCM_UNFOUND; 00090 } 00091 return it->second; 00092 }
|
|
Gets the print level for the Dicom Entries.
Definition at line 50 of file gdcmBase.h. 00050 { return PrintLevel; }
|
|
Get the reference counting.
Definition at line 56 of file gdcmRefCounter.h. 00057 { 00058 return RefCount; 00059 }
|
|
Definition at line 46 of file gdcmDictGroupName.h. Referenced by gdcm::Global::Global(). 00046 {return new DictGroupName();}
|
|
Print all.
Reimplemented from gdcm::Base. Definition at line 106 of file gdcmDictGroupName.cxx. References groupName. 00107 { 00108 std::ostringstream s; 00109 00110 for (DictGroupNameHT::iterator it = groupName.begin(); it != groupName.end(); ++it) 00111 { 00112 s << "DictGroupName : 0x" << std::hex << std::setw(4) << it->first 00113 << std::dec << " = " << it->second << std::endl; 00114 } 00115 os << s.str(); 00116 }
|
|
Register the object.
Definition at line 44 of file gdcmRefCounter.h. Referenced by gdcm::SQItem::AddEntry(), gdcm::ElementSet::AddEntry(), gdcm::Dict::AddEntry(), gdcm::SeqEntry::AddSQItem(), gdcm::SeqEntry::Copy(), gdcm::DicomDir::Copy(), gdcm::DocEntry::DocEntry(), gdcm::FileHelper::FileHelper(), gdcm::DocEntrySet::GetDictEntry(), gdcm::CommandManager::InSetCommand(), gdcm::DocEntryArchive::Push(), gdcm::Dict::ReplaceEntry(), and gdcm::SeqEntry::SetDelimitationItem(). 00044 { RefCount++; }
|
|
Sets the print level for the Dicom Header Elements.
Definition at line 47 of file gdcmBase.h. Referenced by gdcm::SQItem::Print(), gdcm::SeqEntry::Print(), gdcm::FileHelper::Print(), gdcm::ElementSet::Print(), and gdcm::DicomDir::Print(). 00047 { PrintLevel = level; }
|
|
Unregister the object.
Definition at line 48 of file gdcmRefCounter.h. Referenced by gdcm::SeqEntry::ClearSQItem(), gdcm::DicomDir::Copy(), gdcm::DocEntrySet::GetDictEntry(), gdcm::CommandManager::InSetCommand(), gdcm::DocEntrySet::NewDataEntry(), gdcm::DocEntrySet::NewSeqEntry(), gdcm::Document::ReadNextDocEntry(), gdcm::SQItem::RemoveEntry(), gdcm::ElementSet::RemoveEntry(), gdcm::SeqEntry::SetDelimitationItem(), gdcm::DocEntry::~DocEntry(), and gdcm::FileHelper::~FileHelper().
|
|
Definition at line 58 of file gdcmDictGroupName.h. Referenced by DictGroupName(), GetName(), Print(), and ~DictGroupName(). |
|
Amount of printed details for each Dicom Entries : 0 : stands for the least detail level.
Definition at line 55 of file gdcmBase.h. Referenced by gdcm::SQItem::Print(), gdcm::SeqEntry::Print(), gdcm::FileHelper::Print(), gdcm::ElementSet::Print(), gdcm::DocEntry::Print(), gdcm::DictEntry::Print(), gdcm::DicomDirStudy::Print(), gdcm::DicomDirSerie::Print(), gdcm::DicomDirPatient::Print(), gdcm::DicomDirMeta::Print(), gdcm::DicomDir::Print(), and gdcm::DataEntry::Print(). |