creaImageIO_lib
|
Descriptor of a level of a Tree (name, attributes, ...) More...
#include <creaImageIOTreeLevelDescriptor.h>
Public Types | |
typedef std::vector < AttributeDescriptor > | AttributeDescriptorListType |
The type of attribute container. More... | |
Public Member Functions | |
LevelDescriptor (const std::string &name) | |
Ctor with name. More... | |
~LevelDescriptor () | |
Destructor. More... | |
const std::string & | GetName () const |
Returns the name of the level. More... | |
unsigned int | GetNumberOfAttributes () const |
Returns the number of attributes of the level. More... | |
void | Add (const AttributeDescriptor &) |
Adds the AttributeDescriptor to the list. More... | |
const AttributeDescriptorListType & | GetAttributeDescriptorList (int type=0) const |
type = 1 without ID and PATIENT_ID More... | |
void | CopyAttributeDescriptorList () |
Copy the original list of attributes. More... | |
const std::vector< std::string > & | GetIdentifierList () const |
const std::vector< std::string > & | GetLabelList () const |
Private Attributes | |
std::string | mName |
AttributeDescriptorListType | mAttributeDescriptorList |
AttributeDescriptorListType | mAttributeDescriptorListWID |
std::vector< std::string > | mIdentifierList |
The list of attributes with flag IDENTIFIER set. More... | |
std::vector< std::string > | mLabelList |
The list of attributes with flag LABEL set. More... | |
Descriptor of a level of a Tree (name, attributes, ...)
Definition at line 44 of file creaImageIOTreeLevelDescriptor.h.
typedef std::vector<AttributeDescriptor> creaImageIO::tree::LevelDescriptor::AttributeDescriptorListType |
The type of attribute container.
Definition at line 63 of file creaImageIOTreeLevelDescriptor.h.
|
inline |
|
inline |
void creaImageIO::tree::LevelDescriptor::Add | ( | const AttributeDescriptor & | a | ) |
Adds the AttributeDescriptor to the list.
Definition at line 37 of file creaImageIOTreeLevelDescriptor.cpp.
References creaImageIO::tree::AttributeDescriptor::GetFlags(), creaImageIO::tree::AttributeDescriptor::GetKey(), GimmickMessage, creaImageIO::tree::AttributeDescriptor::IDENTIFIER, creaImageIO::tree::AttributeDescriptor::LABEL, mAttributeDescriptorList, mIdentifierList, and mLabelList.
void creaImageIO::tree::LevelDescriptor::CopyAttributeDescriptorList | ( | ) |
Copy the original list of attributes.
Definition at line 56 of file creaImageIOTreeLevelDescriptor.cpp.
References mAttributeDescriptorList, and mAttributeDescriptorListWID.
|
inline |
type = 1 without ID and PATIENT_ID
Returns the list of AttributeDescriptor (const) type = 0 all attributes
Definition at line 68 of file creaImageIOTreeLevelDescriptor.h.
References mAttributeDescriptorList, and mAttributeDescriptorListWID.
Referenced by creaImageIO::tree::Descriptor::GetAttributeDescriptorList().
|
inline |
Definition at line 79 of file creaImageIOTreeLevelDescriptor.h.
References mIdentifierList.
Referenced by creaImageIO::tree::Node::Matches().
|
inline |
Definition at line 82 of file creaImageIOTreeLevelDescriptor.h.
References mLabelList.
Referenced by creaImageIO::tree::Node::GetLabel().
|
inline |
Returns the name of the level.
Definition at line 53 of file creaImageIOTreeLevelDescriptor.h.
References mName.
Referenced by creaImageIO::SQLiteTreeHandler::DBCreate(), creaImageIO::SQLiteTreeHandler::DBImportTreeDescription(), creaImageIO::SQLiteTreeHandler::DBLoadChildren(), creaImageIO::SQLiteTreeHandler::DBRecursiveRemoveNode(), creaImageIO::SQLiteTreeHandler::getAllAttributes(), creaImageIO::SQLiteTreeHandler::GetNumberOfChildren(), creaImageIO::SQLiteTreeHandler::GetUpLevelNodeId(), creaImageIO::WxTreeView::OnLocalCopy(), creaImageIO::WxTreeView::RemoveSelected(), and creaImageIO::WxTreeView::WxTreeView().
|
inline |
Returns the number of attributes of the level.
Definition at line 56 of file creaImageIOTreeLevelDescriptor.h.
References mAttributeDescriptorList.
|
private |
Definition at line 88 of file creaImageIOTreeLevelDescriptor.h.
Referenced by Add(), CopyAttributeDescriptorList(), GetAttributeDescriptorList(), and GetNumberOfAttributes().
|
private |
Definition at line 90 of file creaImageIOTreeLevelDescriptor.h.
Referenced by CopyAttributeDescriptorList(), and GetAttributeDescriptorList().
|
private |
The list of attributes with flag IDENTIFIER set.
Definition at line 92 of file creaImageIOTreeLevelDescriptor.h.
Referenced by Add(), and GetIdentifierList().
|
private |
The list of attributes with flag LABEL set.
Definition at line 94 of file creaImageIOTreeLevelDescriptor.h.
Referenced by Add(), and GetLabelList().
|
private |
Definition at line 86 of file creaImageIOTreeLevelDescriptor.h.
Referenced by GetName().