creaImageIO_lib
|
Descriptor of an attribute of a node of a Tree (name, dicom group/element) More...
#include <creaImageIOTreeAttributeDescriptor.h>
Public Member Functions | |
AttributeDescriptor () | |
Default ctor. More... | |
AttributeDescriptor (const std::string &key, const std::string &name, unsigned short group, unsigned short element, unsigned int flags) | |
Ctor with all explicitely. More... | |
AttributeDescriptor (const std::string &key, const std::string &name, unsigned int flags=0) | |
AttributeDescriptor (unsigned short group, unsigned short element, unsigned int flags=0) | |
const std::string & | GetKey () const |
Returns the key of the attribute. More... | |
const std::string & | GetName () const |
Returns the name of the attribute. More... | |
unsigned short | GetGroup () const |
Returns the DICOM group code of the attribute. More... | |
unsigned short | GetElement () const |
Returns the DICOM element code of the attribute. More... | |
unsigned int | GetFlags () const |
Returns the flags of the attribute. More... | |
void | CleanName (std::string &str) const |
void | DecodeType (unsigned int &type) const |
Decodes the type of attribute into the existing ones. More... | |
bool | isDateEntry () const |
Determines if Attribute is a date. More... | |
bool | isTimeEntry () const |
Determines if Attribute is a time. More... | |
Static Public Member Functions | |
static void | GetDicomGroupElementFromKey (const std::string &key, unsigned short &group, unsigned short &elem) |
Extracts group and element from a key of the form "Dgroup_elem". More... | |
Static Public Attributes | |
static const unsigned int | PRIVATE = 1 |
The attribute is hidden (not visible to user) More... | |
static const unsigned int | IDENTIFIER = 2 |
The attribute enters in unique identifier constitution. More... | |
static const unsigned int | LABEL = 4 |
The attribute enters in label constitution (for printing) More... | |
static const unsigned int | EDITABLE = 3 |
The attribute can be edited. More... | |
static const int | NUMBER =1 |
The attribute is of numeric type. More... | |
static const int | STRING =2 |
The attribute is of string type. More... | |
static const int | UNKNOWN =0 |
The attribute's type is unknown. More... | |
Private Attributes | |
std::string | mKey |
std::string | mName |
unsigned short | mGroup |
unsigned short | mElement |
unsigned int | mFlags |
Descriptor of an attribute of a node of a Tree (name, dicom group/element)
Definition at line 45 of file creaImageIOTreeAttributeDescriptor.h.
|
inline |
|
inline |
creaImageIO::tree::AttributeDescriptor::AttributeDescriptor | ( | const std::string & | key, |
const std::string & | name, | ||
unsigned int | flags = 0 |
||
) |
Definition at line 76 of file creaImageIOTreeAttributeDescriptor.cpp.
References CleanName(), GimmickDebugMessage, and mName.
creaImageIO::tree::AttributeDescriptor::AttributeDescriptor | ( | unsigned short | group, |
unsigned short | element, | ||
unsigned int | flags = 0 |
||
) |
Definition at line 94 of file creaImageIOTreeAttributeDescriptor.cpp.
References CleanName(), GimmickDebugMessage, GimmickMessage, mElement, mGroup, mKey, and mName.
void creaImageIO::tree::AttributeDescriptor::CleanName | ( | std::string & | str | ) | const |
Cleans the name: Replace simple quote by double quotes Cut string at NULL chars
Definition at line 56 of file creaImageIOTreeAttributeDescriptor.cpp.
Referenced by AttributeDescriptor().
void creaImageIO::tree::AttributeDescriptor::DecodeType | ( | unsigned int & | type | ) | const |
Decodes the type of attribute into the existing ones.
Decodes the type of the attribute.
Definition at line 255 of file creaImageIOTreeAttributeDescriptor.cpp.
References GetElement(), GetGroup(), GimmickDebugMessage, mElement, and mGroup.
Referenced by creaImageIO::WxTreeView::SortLevel().
|
static |
Extracts group and element from a key of the form "Dgroup_elem".
Definition at line 164 of file creaImageIOTreeAttributeDescriptor.cpp.
References GimmickDebugMessage, and GimmickMessage.
Referenced by creaImageIO::DicomImageScanner::addDirectory(), creaImageIO::DicomImageReader::ReadAttributes(), and creaImageIO::DicomImageReader::ReadAttributes2().
|
inline |
Returns the DICOM element code of the attribute.
Definition at line 99 of file creaImageIOTreeAttributeDescriptor.h.
References mElement.
Referenced by DecodeType(), isDateEntry(), and isTimeEntry().
|
inline |
Returns the flags of the attribute.
Definition at line 101 of file creaImageIOTreeAttributeDescriptor.h.
References mFlags.
Referenced by creaImageIO::tree::LevelDescriptor::Add().
|
inline |
Returns the DICOM group code of the attribute.
Definition at line 97 of file creaImageIOTreeAttributeDescriptor.h.
References mGroup.
Referenced by DecodeType(), isDateEntry(), and isTimeEntry().
|
inline |
Returns the key of the attribute.
Definition at line 93 of file creaImageIOTreeAttributeDescriptor.h.
References mKey.
Referenced by creaImageIO::tree::LevelDescriptor::Add().
|
inline |
Returns the name of the attribute.
Definition at line 95 of file creaImageIOTreeAttributeDescriptor.h.
References mName.
bool creaImageIO::tree::AttributeDescriptor::isDateEntry | ( | ) | const |
Determines if Attribute is a date.
test if the type is a date
Definition at line 186 of file creaImageIOTreeAttributeDescriptor.cpp.
References GetElement(), GetGroup(), mElement, and mGroup.
bool creaImageIO::tree::AttributeDescriptor::isTimeEntry | ( | ) | const |
Determines if Attribute is a time.
test if the type is a time
Definition at line 219 of file creaImageIOTreeAttributeDescriptor.cpp.
References GetElement(), GetGroup(), mElement, and mGroup.
|
static |
The attribute can be edited.
Definition at line 56 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by creaImageIO::WxTreeView::GetAttributes(), and creaImageIO::WxTreeView::OnEditField().
|
static |
The attribute enters in unique identifier constitution.
Definition at line 52 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by creaImageIO::tree::LevelDescriptor::Add(), and creaImageIO::tree::Descriptor::CreateDefault().
|
static |
The attribute enters in label constitution (for printing)
the attribute describes the node
Definition at line 54 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by creaImageIO::tree::LevelDescriptor::Add(), and creaImageIO::tree::Descriptor::CreateDefault().
|
private |
Definition at line 124 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by AttributeDescriptor(), DecodeType(), GetElement(), isDateEntry(), and isTimeEntry().
|
private |
Definition at line 125 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by GetFlags().
|
private |
Definition at line 123 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by AttributeDescriptor(), DecodeType(), GetGroup(), isDateEntry(), and isTimeEntry().
|
private |
Definition at line 121 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by AttributeDescriptor(), and GetKey().
|
private |
Definition at line 122 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by AttributeDescriptor(), and GetName().
|
static |
The attribute is of numeric type.
Types
Definition at line 60 of file creaImageIOTreeAttributeDescriptor.h.
|
static |
The attribute is hidden (not visible to user)
Flags The attribute is hidden (not visible to user)
Definition at line 50 of file creaImageIOTreeAttributeDescriptor.h.
Referenced by creaImageIO::WxTreeView::CreateCtrl(), creaImageIO::SQLiteTreeHandler::DBCreate(), and creaImageIO::WxTreeView::WxTreeView().
|
static |
The attribute is of string type.
Definition at line 62 of file creaImageIOTreeAttributeDescriptor.h.
|
static |
The attribute's type is unknown.
Definition at line 64 of file creaImageIOTreeAttributeDescriptor.h.