Simulacrum  1.2
Public Member Functions | List of all members
Simulacrum::SDCMArchNode Class Reference

#include <sarch.h>

Inheritance diagram for Simulacrum::SDCMArchNode:
Inheritance graph
Collaboration diagram for Simulacrum::SDCMArchNode:
Collaboration graph

Public Member Functions

 SDCMArchNode (DCMTag &, SDCMArchNode *parent=nullptr)
 
 ~SDCMArchNode ()
 
bool isValid ()
 
bool isTop () const
 
SDCMArchNodegetParentNode ()
 
bool operator== (const SDCMArchNode &) const
 
DICOM_ID_LENGTH getKeyID ()
 
DCMTaggetKeyTag ()
 
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 &)
 
SDCMArchNodegetByPath (const std::string &)
 
SDCMArchNodemakePath (std::list< DCMTag * > &pathkeys)
 
DCMTaggetTag (DICOM_ID_LENGTH, bool safe=true)
 
DCMTagfindTag (DICOM_ID_LENGTH, bool exemplars=true, bool usefiles=false)
 
tagset_tgetTags ()
 
bool hasKVP (const std::string &)
 
std::string getKeyValue (const std::string &)
 
SDCMArchKeyMap_tgetKeyValues ()
 
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)
 
SDCMArchNodegetChildNode (const std::string &keyvalue)
 
SDCMArchNodegetChildNodeP (const std::string &keyvalue)
 
SDCMArchNodeMap_tgetChildNodesMap ()
 
SDCMArchNodegenChildNode (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 &)
 
SAbsTreeNodeNodeByPath (const std::string &)
 
SAbsTreeNodeNodeParent ()
 
bool hasNodeParent ()
 
void detachNode ()
 
bool removeNode ()
 
SAbsTreeNodeList_t NodeChildren (bool strict=false, bool simpleonly=false)
 
bool NodeError ()
 
SAbsTreeNodeNewChild ()
 
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 SAbsTreeNodeNodeRoot ()
 
virtual std::string NodePath (bool skiptop=false)
 
virtual void setAttribute (const std::string &, const std::string &)
 
virtual void copy (SAbsTreeNode &)
 
virtual ~SAbsTreeNode ()
 
SPtr< SAbsTreeNodequery (const std::string &)
 
virtual SAbsTreeNodequeryP (const std::string &)
 

Constructor & Destructor Documentation

◆ SDCMArchNode()

SDCMArchNode::SDCMArchNode ( DCMTag roottag,
SDCMArchNode parent = nullptr 
)

◆ ~SDCMArchNode()

SDCMArchNode::~SDCMArchNode ( )

Member Function Documentation

◆ addChildNode()

void SDCMArchNode::addChildNode ( SDCMArchNode newnode,
bool  check = true 
)

◆ addFile()

void SDCMArchNode::addFile ( const std::string &  newfile,
bool  strippath = true 
)

◆ addKeyTag() [1/2]

void SDCMArchNode::addKeyTag ( DCMTag newtag)

◆ addKeyTag() [2/2]

void SDCMArchNode::addKeyTag ( DCMTag newtag)

◆ addTag() [1/2]

void SDCMArchNode::addTag ( DCMTag newtag)

◆ addTag() [2/2]

void SDCMArchNode::addTag ( DCMTag newtag)

◆ clear()

void SDCMArchNode::clear ( )
virtual

◆ clearChildren()

void SDCMArchNode::clearChildren ( )
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ clearFiles()

void SDCMArchNode::clearFiles ( )

◆ clearKVP()

void SDCMArchNode::clearKVP ( )

◆ clearTags()

void SDCMArchNode::clearTags ( )

◆ detachNode()

void SDCMArchNode::detachNode ( )
virtual

◆ findTag()

DCMTag * SDCMArchNode::findTag ( DICOM_ID_LENGTH  lid,
bool  exemplars = true,
bool  usefiles = false 
)

◆ genChildNode()

SDCMArchNode & SDCMArchNode::genChildNode ( DCMTag keytag,
bool  check = true 
)

◆ getAttribute()

std::string SDCMArchNode::getAttribute ( const std::string &  attrname)
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ getAttributes()

std::map< std::string, std::string > SDCMArchNode::getAttributes ( )
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ getByPath()

SDCMArchNode & SDCMArchNode::getByPath ( const std::string &  pathstr)

◆ getChildNode()

SDCMArchNode & SDCMArchNode::getChildNode ( const std::string &  keyvalue)

◆ getChildNodeP()

SDCMArchNode * SDCMArchNode::getChildNodeP ( const std::string &  keyvalue)

◆ getChildNodesMap()

SDCMArchNodeMap_t & SDCMArchNode::getChildNodesMap ( )

◆ getFileList()

std::vector< std::string > SDCMArchNode::getFileList ( )

◆ getFileListFullPath()

std::vector< std::string > SDCMArchNode::getFileListFullPath ( )

◆ getFSPath()

std::string SDCMArchNode::getFSPath ( )

◆ getFullFSPath()

std::string SDCMArchNode::getFullFSPath ( )

◆ getKeyID()

DICOM_ID_LENGTH SDCMArchNode::getKeyID ( )

◆ getKeyName()

const char * SDCMArchNode::getKeyName ( )

◆ getKeyStr()

std::string SDCMArchNode::getKeyStr ( )

◆ getKeyTag()

DCMTag & SDCMArchNode::getKeyTag ( )

◆ getKeyValue()

std::string SDCMArchNode::getKeyValue ( const std::string &  key)

◆ getKeyValues()

SDCMArchKeyMap_t & SDCMArchNode::getKeyValues ( )

◆ getParentNode()

SDCMArchNode & SDCMArchNode::getParentNode ( )

◆ getPath()

std::string SDCMArchNode::getPath ( )

◆ getTag()

DCMTag & SDCMArchNode::getTag ( DICOM_ID_LENGTH  lookupid,
bool  safe = true 
)

◆ getTags()

tagset_t & SDCMArchNode::getTags ( )

◆ getType()

SDCMArchNode_t SDCMArchNode::getType ( )

◆ hasAttribute()

bool SDCMArchNode::hasAttribute ( const std::string &  attrname)
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ hasChildNode()

bool SDCMArchNode::hasChildNode ( const std::string &  keyvalue)

◆ hasKey()

bool SDCMArchNode::hasKey ( )

◆ hasKVP()

bool SDCMArchNode::hasKVP ( const std::string &  key)

◆ hasNodeParent()

bool SDCMArchNode::hasNodeParent ( )
virtual

◆ hasTag()

bool SDCMArchNode::hasTag ( DICOM_ID_LENGTH  lookupid)

◆ isTop()

bool SDCMArchNode::isTop ( ) const

◆ isValid()

bool SDCMArchNode::isValid ( )

◆ makePath()

SDCMArchNode & SDCMArchNode::makePath ( std::list< DCMTag * > &  pathkeys)

◆ NewChild()

SAbsTreeNode & SDCMArchNode::NewChild ( )
virtual

◆ NodeByPath()

SAbsTreeNode & SDCMArchNode::NodeByPath ( const std::string &  path)
virtual

◆ NodeChildren()

SAbsTreeNodeList_t SDCMArchNode::NodeChildren ( bool  strict = false,
bool  simpleonly = false 
)
virtual

◆ NodeChildrenNum()

unsigned long SDCMArchNode::NodeChildrenNum ( bool  strict = false)
virtual

◆ NodeEmph()

bool SDCMArchNode::NodeEmph ( )
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ NodeError()

bool SDCMArchNode::NodeError ( )
virtual

◆ NodeID()

std::string SDCMArchNode::NodeID ( )
virtual

◆ NodeName()

std::string SDCMArchNode::NodeName ( )
virtual

◆ NodeParent()

SAbsTreeNode & SDCMArchNode::NodeParent ( )
virtual

◆ NodePathExists()

bool SDCMArchNode::NodePathExists ( const std::string &  path)
virtual

◆ NodeSize()

unsigned long SDCMArchNode::NodeSize ( )
virtual

◆ NodeType()

std::string SDCMArchNode::NodeType ( )
virtual

◆ NodeValue() [1/2]

std::string SDCMArchNode::NodeValue ( )
virtual

◆ NodeValue() [2/2]

void SDCMArchNode::NodeValue ( const std::string &  newval)
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ operator==()

bool SDCMArchNode::operator== ( const SDCMArchNode rhs) const

◆ pathExists()

bool SDCMArchNode::pathExists ( const std::string &  pathstr)

◆ removeChildNode()

void SDCMArchNode::removeChildNode ( SDCMArchNode remnode)

◆ removeFile()

void SDCMArchNode::removeFile ( const std::string &  remfile)

◆ removeKeyValue()

void SDCMArchNode::removeKeyValue ( const std::string &  key)

◆ removeNode()

bool SDCMArchNode::removeNode ( )
virtual

◆ removeTag() [1/2]

void SDCMArchNode::removeTag ( DCMTag newtag)

◆ removeTag() [2/2]

void SDCMArchNode::removeTag ( DICOM_ID_LENGTH  lid)

◆ setFSPath()

void SDCMArchNode::setFSPath ( const std::string &  newfspath)

◆ setKey()

void SDCMArchNode::setKey ( DICOM_ID_LENGTH  newkey)

◆ setKeyValue()

void SDCMArchNode::setKeyValue ( const std::string &  key,
const std::string &  val 
)

◆ setType()

void SDCMArchNode::setType ( SDCMArchNode_t  newtype)

◆ stringEncoding()

SimulacrumLibrary::str_enc SDCMArchNode::stringEncoding ( )
overridevirtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ toString()

std::string SDCMArchNode::toString ( )

The documentation for this class was generated from the following files:
Simulacrum Project