#include <gdcmDictEntry.h>
| Public Member Functions | |
| gdcmDictEntry (guint16 group, guint16 element, std::string vr="Unknown", std::string fourth="Unknown", std::string name="Unknown") | |
| Constructor. | |
| void | SetVR (std::string) | 
| If-and only if-the V(alue) R(epresentation) \ is unset then overwrite it. | |
| bool | IsVRUnknown () | 
| tells if the V(alue) R(epresentation) is known (?!) | |
| guint16 | GetGroup (void) | 
| returns the Dicom Group Number of the current gdcmDictEntry return the Dicom Group Number | |
| guint16 | GetElement (void) | 
| returns the Dicom Element Number of the current gdcmDictEntry return the Dicom Element Number | |
| std::string | GetVR (void) | 
| returns the Dicom Value Representation of the current gdcmDictEntry return the Dicom Value Representation | |
| void | SetKey (std::string k) | 
| sets the key of the current gdcmDictEntry | |
| std::string | GetFourth (void) | 
| returns the Fourth field of the current gdcmDictEntry | |
| std::string | GetName (void) | 
| returns the Dicom Name of the current gdcmDictEntry \ e.g. "Patient Name" for Dicom Tag (0x0010, 0x0010) return the Dicom Name | |
| std::string | GetKey (void) | 
| Gets the key of the current gdcmDictEntry. | |
| Static Public Member Functions | |
| TagKey | TranslateToKey (guint16 group, guint16 element) | 
| concatenates 2 guint16 (supposed to be a Dicom group number and a Dicom element number) | |
| Private Attributes | |
| guint16 | group | 
| guint16 | element | 
| std::string | vr | 
| std::string | fourth | 
| std::string | name | 
| TagKey | key | 
| 
 | ||||||||||||||||||||||||
| Constructor. 
 
 Definition at line 21 of file gdcmDictEntry.cxx. References element, fourth, key, name, TranslateToKey(), and vr. 
 | 
| 
 | 
| returns the Dicom Element Number of the current gdcmDictEntry return the Dicom Element Number 
 Definition at line 52 of file gdcmDictEntry.h. Referenced by gdcmParser::GetEntryByName(), gdcmObject::GetEntryByName(), gdcmParser::GetEntryVRByName(), gdcmParser::GetHeaderEntryByName(), and gdcmParser::SetEntryByName(). 
 00052 { return element; }
 | 
| 
 | 
| returns the Fourth field of the current gdcmDictEntry 
 
 Definition at line 76 of file gdcmDictEntry.h. 
 00076 { return fourth; } 
 | 
| 
 | 
| returns the Dicom Group Number of the current gdcmDictEntry return the Dicom Group Number 
 Definition at line 45 of file gdcmDictEntry.h. Referenced by gdcmParser::GetEntryByName(), gdcmObject::GetEntryByName(), gdcmParser::GetEntryVRByName(), gdcmParser::GetHeaderEntryByName(), and gdcmParser::SetEntryByName(). 
 00045 { return group; }
 | 
| 
 | 
| Gets the key of the current gdcmDictEntry. 
 
 Definition at line 91 of file gdcmDictEntry.h. Referenced by gdcmDict::AddNewEntry(), and gdcmDict::ReplaceEntry(). 
 00091 { return key; }
 | 
| 
 | 
| returns the Dicom Name of the current gdcmDictEntry \ e.g. "Patient Name" for Dicom Tag (0x0010, 0x0010) return the Dicom Name 
 Definition at line 84 of file gdcmDictEntry.h. Referenced by gdcmDict::RemoveEntry(). 
 00084 { return name; } 
 | 
| 
 | 
| returns the Dicom Value Representation of the current gdcmDictEntry return the Dicom Value Representation 
 Definition at line 59 of file gdcmDictEntry.h. Referenced by gdcmDicomDir::SetElement(), and gdcmParser::UpdateShaEntries(). 
 00059 { return vr; }
 | 
| 
 | 
| tells if the V(alue) R(epresentation) is known (?!) 
 
 Definition at line 38 of file gdcmDictEntry.h. Referenced by gdcmHeaderEntry::IsVRUnknown(), and SetVR(). 
 00038 {return vr == "??"; }
 | 
| 
 | 
| sets the key of the current gdcmDictEntry 
 
 Definition at line 66 of file gdcmDictEntry.h. 
 00066 { key = k; }
 | 
| 
 | 
| If-and only if-the V(alue) R(epresentation) \ is unset then overwrite it. 
 
 Definition at line 63 of file gdcmDictEntry.cxx. References dbg, gdcmDebug::Error(), IsVRUnknown(), and vr. 
 00064 {
00065         if ( IsVRUnknown() )
00066                 vr = NewVr;
00067         else 
00068    {
00069                 dbg.Error(true, "gdcmDictEntry::SetVR",
00070                           "Overwriting vr might compromise a dictionary");
00071         }
00072 }
 | 
| 
 | ||||||||||||
| concatenates 2 guint16 (supposed to be a Dicom group number and a Dicom element number) 
 
 
 Definition at line 46 of file gdcmDictEntry.cxx. Referenced by gdcmParser::CheckIfEntryExistByNumber(), gdcmDictEntry(), gdcmHeader::gdcmHeader(), gdcmParser::GenerateFreeTagKeyInGroup(), gdcmDict::GetDictEntryByNumber(), gdcmParser::GetEntryByNumber(), gdcmParser::GetHeaderEntryByNumber(), gdcmParser::GetHeaderEntrySameNumber(), gdcmHeader::GetPixelAreaLength(), gdcmHeader::GetPixelOffset(), gdcmDictSet::NewVirtualDictEntry(), gdcmParser::SetEntryByNumber(), gdcmParser::SetEntryLengthByNumber(), gdcmParser::SetEntryVoidAreaByNumber(), and gdcmFile::WriteBase(). 
 00046                                                                    {
00047         char trash[10];
00048         TagKey key;
00049         // CLEAN ME: better call the iostream<< with the hex manipulator on.
00050         // This requires some reading of the stdlibC++ sources to make the
00051         // proper call (or copy).
00052         sprintf(trash, "%04x|%04x", group , element);
00053         key = trash;  // Convertion through assignement
00054         return key;
00055 }
 | 
| 
 | 
| 
 Definition at line 98 of file gdcmDictEntry.h. Referenced by gdcmDictEntry(). | 
| 
 | 
| 
 Definition at line 103 of file gdcmDictEntry.h. Referenced by gdcmDictEntry(). | 
| 
 | 
| 
 Definition at line 97 of file gdcmDictEntry.h. | 
| 
 | 
| 
 Definition at line 106 of file gdcmDictEntry.h. Referenced by gdcmDictEntry(), and TranslateToKey(). | 
| 
 | 
| 
 Definition at line 105 of file gdcmDictEntry.h. Referenced by gdcmDictEntry(). | 
| 
 | 
| 
 Definition at line 99 of file gdcmDictEntry.h. Referenced by gdcmDictEntry(), and SetVR(). | 
 1.3.6
 
1.3.6