Simulacrum
1.2
|
#include <sarch.h>
Public Member Functions | |
SDCMArchNode (DCMTag &, SDCMArchNode *parent=nullptr) | |
~SDCMArchNode () | |
bool | isValid () |
bool | isTop () const |
SDCMArchNode & | getParentNode () |
bool | operator== (const SDCMArchNode &) const |
DICOM_ID_LENGTH | getKeyID () |
DCMTag & | getKeyTag () |
const char * | getKeyName () |
std::string | getKeyStr () |
bool | hasKey () |
void | setKey (DICOM_ID_LENGTH) |
SDCMArchNode_t | getType () |
void | setType (SDCMArchNode_t) |
std::string | getFSPath () |
std::string | getFullFSPath () |
void | setFSPath (const std::string &) |
std::string | getPath () |
bool | pathExists (const std::string &) |
SDCMArchNode & | getByPath (const std::string &) |
SDCMArchNode & | makePath (std::list< DCMTag * > &pathkeys) |
DCMTag & | getTag (DICOM_ID_LENGTH, bool safe=true) |
DCMTag * | findTag (DICOM_ID_LENGTH, bool exemplars=true, bool usefiles=false) |
tagset_t & | getTags () |
bool | hasKVP (const std::string &) |
std::string | getKeyValue (const std::string &) |
SDCMArchKeyMap_t & | getKeyValues () |
void | setKeyValue (const std::string &, const std::string &) |
void | removeKeyValue (const std::string &) |
bool | hasTag (DICOM_ID_LENGTH) |
std::string | toString () |
bool | hasChildNode (const std::string &keyvalue) |
SDCMArchNode & | getChildNode (const std::string &keyvalue) |
SDCMArchNode * | getChildNodeP (const std::string &keyvalue) |
SDCMArchNodeMap_t & | getChildNodesMap () |
SDCMArchNode & | genChildNode (DCMTag &keytag, bool check=true) |
void | addChildNode (SDCMArchNode &, bool check=true) |
void | removeChildNode (SDCMArchNode &) |
void | addTag (DCMTag &) |
void | addTag (DCMTag *) |
void | addKeyTag (DCMTag &) |
void | addKeyTag (DCMTag *) |
void | removeTag (DICOM_ID_LENGTH) |
void | removeTag (DCMTag &) |
void | addFile (const std::string &, bool strippath=true) |
void | removeFile (const std::string &) |
void | clearFiles () |
void | clearKVP () |
void | clearTags () |
void | clearChildren () |
void | clear () |
std::vector< std::string > | getFileList () |
std::vector< std::string > | getFileListFullPath () |
std::string | NodeID () |
std::string | NodeType () |
unsigned long | NodeSize () |
std::string | NodeName () |
std::string | NodeValue () |
void | NodeValue (const std::string &) |
bool | NodeEmph () |
unsigned long | NodeChildrenNum (bool strict=false) |
bool | NodePathExists (const std::string &) |
SAbsTreeNode & | NodeByPath (const std::string &) |
SAbsTreeNode & | NodeParent () |
bool | hasNodeParent () |
void | detachNode () |
bool | removeNode () |
SAbsTreeNodeList_t | NodeChildren (bool strict=false, bool simpleonly=false) |
bool | NodeError () |
SAbsTreeNode & | NewChild () |
std::map< std::string, std::string > | getAttributes () |
bool | hasAttribute (const std::string &) |
std::string | getAttribute (const std::string &) |
SimulacrumLibrary::str_enc | stringEncoding () override |
Public Member Functions inherited from Simulacrum::SAbsTreeNode | |
virtual void | NodeID (const std::string &) |
virtual void | NodeType (const std::string &) |
virtual void | NodeSize (const std::string &) |
virtual void | NodeName (const std::string &) |
virtual std::string | NodeData () |
virtual void | NodeData (const std::string &) |
virtual SAbsTreeNode & | NodeRoot () |
virtual std::string | NodePath (bool skiptop=false) |
virtual void | setAttribute (const std::string &, const std::string &) |
virtual void | copy (SAbsTreeNode &) |
virtual | ~SAbsTreeNode () |
SPtr< SAbsTreeNode > | query (const std::string &) |
virtual SAbsTreeNode * | queryP (const std::string &) |
SDCMArchNode::SDCMArchNode | ( | DCMTag & | roottag, |
SDCMArchNode * | parent = nullptr |
||
) |
SDCMArchNode::~SDCMArchNode | ( | ) |
void SDCMArchNode::addChildNode | ( | SDCMArchNode & | newnode, |
bool | check = true |
||
) |
void SDCMArchNode::addFile | ( | const std::string & | newfile, |
bool | strippath = true |
||
) |
void SDCMArchNode::addKeyTag | ( | DCMTag & | newtag | ) |
void SDCMArchNode::addKeyTag | ( | DCMTag * | newtag | ) |
void SDCMArchNode::addTag | ( | DCMTag & | newtag | ) |
void SDCMArchNode::addTag | ( | DCMTag * | newtag | ) |
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Reimplemented from Simulacrum::SAbsTreeNode.
void SDCMArchNode::clearFiles | ( | ) |
void SDCMArchNode::clearKVP | ( | ) |
void SDCMArchNode::clearTags | ( | ) |
|
virtual |
Implements Simulacrum::SAbsTreeNode.
DCMTag * SDCMArchNode::findTag | ( | DICOM_ID_LENGTH | lid, |
bool | exemplars = true , |
||
bool | usefiles = false |
||
) |
SDCMArchNode & SDCMArchNode::genChildNode | ( | DCMTag & | keytag, |
bool | check = true |
||
) |
|
virtual |
Reimplemented from Simulacrum::SAbsTreeNode.
|
virtual |
Reimplemented from Simulacrum::SAbsTreeNode.
SDCMArchNode & SDCMArchNode::getByPath | ( | const std::string & | pathstr | ) |
SDCMArchNode & SDCMArchNode::getChildNode | ( | const std::string & | keyvalue | ) |
SDCMArchNode * SDCMArchNode::getChildNodeP | ( | const std::string & | keyvalue | ) |
SDCMArchNodeMap_t & SDCMArchNode::getChildNodesMap | ( | ) |
std::vector< std::string > SDCMArchNode::getFileList | ( | ) |
std::vector< std::string > SDCMArchNode::getFileListFullPath | ( | ) |
std::string SDCMArchNode::getFSPath | ( | ) |
std::string SDCMArchNode::getFullFSPath | ( | ) |
DICOM_ID_LENGTH SDCMArchNode::getKeyID | ( | ) |
const char * SDCMArchNode::getKeyName | ( | ) |
std::string SDCMArchNode::getKeyStr | ( | ) |
DCMTag & SDCMArchNode::getKeyTag | ( | ) |
std::string SDCMArchNode::getKeyValue | ( | const std::string & | key | ) |
SDCMArchKeyMap_t & SDCMArchNode::getKeyValues | ( | ) |
SDCMArchNode & SDCMArchNode::getParentNode | ( | ) |
std::string SDCMArchNode::getPath | ( | ) |
DCMTag & SDCMArchNode::getTag | ( | DICOM_ID_LENGTH | lookupid, |
bool | safe = true |
||
) |
tagset_t & SDCMArchNode::getTags | ( | ) |
SDCMArchNode_t SDCMArchNode::getType | ( | ) |
|
virtual |
Reimplemented from Simulacrum::SAbsTreeNode.
bool SDCMArchNode::hasChildNode | ( | const std::string & | keyvalue | ) |
bool SDCMArchNode::hasKey | ( | ) |
bool SDCMArchNode::hasKVP | ( | const std::string & | key | ) |
|
virtual |
Implements Simulacrum::SAbsTreeNode.
bool SDCMArchNode::hasTag | ( | DICOM_ID_LENGTH | lookupid | ) |
bool SDCMArchNode::isTop | ( | ) | const |
bool SDCMArchNode::isValid | ( | ) |
SDCMArchNode & SDCMArchNode::makePath | ( | std::list< DCMTag * > & | pathkeys | ) |
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Reimplemented from Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Implements Simulacrum::SAbsTreeNode.
|
virtual |
Reimplemented from Simulacrum::SAbsTreeNode.
bool SDCMArchNode::operator== | ( | const SDCMArchNode & | rhs | ) | const |
bool SDCMArchNode::pathExists | ( | const std::string & | pathstr | ) |
void SDCMArchNode::removeChildNode | ( | SDCMArchNode & | remnode | ) |
void SDCMArchNode::removeFile | ( | const std::string & | remfile | ) |
void SDCMArchNode::removeKeyValue | ( | const std::string & | key | ) |
|
virtual |
Implements Simulacrum::SAbsTreeNode.
void SDCMArchNode::removeTag | ( | DCMTag & | newtag | ) |
void SDCMArchNode::removeTag | ( | DICOM_ID_LENGTH | lid | ) |
void SDCMArchNode::setFSPath | ( | const std::string & | newfspath | ) |
void SDCMArchNode::setKey | ( | DICOM_ID_LENGTH | newkey | ) |
void SDCMArchNode::setKeyValue | ( | const std::string & | key, |
const std::string & | val | ||
) |
void SDCMArchNode::setType | ( | SDCMArchNode_t | newtype | ) |
|
overridevirtual |
Reimplemented from Simulacrum::SAbsTreeNode.
std::string SDCMArchNode::toString | ( | ) |