Simulacrum  1.2
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
Simulacrum::DCMTag Class Reference

#include <dcmtag.h>

Inheritance diagram for Simulacrum::DCMTag:
Inheritance graph
Collaboration diagram for Simulacrum::DCMTag:
Collaboration graph

Public Member Functions

 DCMTag ()
 
 DCMTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH, char, char, const char *, char *, DICOM_LONG_LENGTH)
 
 DCMTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
 DCMTag (const DCMTag &)
 
 ~DCMTag ()
 
DCMTagoperator= (const DCMTag &)
 
DCMTagoperator= (const dcm_info_store &)
 
bool operator== (const DCMTag &) const
 
bool operator< (const DCMTag &) const
 
DICOM_ID_PART_LENGTH getID1 () const
 
DICOM_ID_PART_LENGTH getID2 () const
 
DICOM_ID_LENGTH getID () const
 
const std::string getIDstr () const
 
const char * getVR () const
 
const char * getName () const
 
const char * getData () const
 
DICOM_LONG_LENGTH getDataLength () const
 
DICOM_LONG_LENGTH getDataLengthUnpadded () const
 
DCMTaggetTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
DCMTaggetTag (DICOM_ID_LENGTH)
 
DCMTaggetTagDFS (DICOM_ID_LENGTH)
 
DCMTaggetTagDFS (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
tagset_tgetTags ()
 
bool hasTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
bool hasTag (DICOM_ID_LENGTH)
 
bool hasTagDFS (DICOM_ID_LENGTH)
 
bool hasTagDFS (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
unsigned hasTags (bool ignoredelimeters=false) const
 
bool hasError () const
 
DCMTaggetParent ()
 
std::string getPath ()
 
bool pathExists (const std::string &)
 
DCMTaggetByPath (const std::string &)
 
bool dataPresent () const
 
bool isMeta () const
 
bool isNULL (bool=false) const
 
bool isTop () const
 
bool isInt () const
 
bool isFloat () const
 
bool isString () const
 
bool isArray () const
 
bool isPrivate () const
 
bool shouldSave () const
 
std::string getElement (unsigned short, bool toend=false) const
 
SVector toVector () const
 
void fromVector (const SVector &)
 
int64_t toInt () const
 
int64_t toInt (unsigned) const
 
double toFloat () const
 
void toString (std::string &) const
 
std::string toString () const
 
void toStringSafe (std::string &) const
 
void fromInt (int64_t)
 
void fromFloat (double)
 
void fromString (const std::string &)
 
void clear ()
 
void clearData ()
 
void clearTags ()
 
void setID (DICOM_ID_LENGTH)
 
void setID (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH)
 
void setID (const std::string &)
 
void setVR (char, char)
 
void setName (const char *, bool ownsname=false)
 
void setDataLength (DICOM_LONG_LENGTH)
 
void setData (DICOM_LONG_LENGTH, char *)
 
void setMeta (bool)
 
void setParent (DCMTag *)
 
void setError (bool)
 
void setIsParent (bool isTheParent)
 
void setShouldSave (bool)
 
bool matches (const std::string &, bool recurse=false)
 
DCMTagaddTag (DCMTag &, bool check=true)
 
void addTag (DCMTag *, bool check=true)
 
DCMTagaddItem (DCMTag &)
 
DCMTagaddItem (DCMTag *)
 
bool removeNode ()
 
void detachNode ()
 
bool removeTag (const DCMTag *, bool dodelete=true)
 
bool removeTag (DICOM_ID_LENGTH, bool doelete=true)
 
bool removeTag (DICOM_ID_PART_LENGTH, DICOM_ID_PART_LENGTH, bool doelete=true)
 
std::string NodeID ()
 
void NodeID (const std::string &)
 
std::string NodeType ()
 
void NodeType (const std::string &)
 
unsigned long NodeSize ()
 
std::string NodeName ()
 
std::string NodeValue ()
 
void NodeValue (const std::string &)
 
std::string NodeData ()
 
void NodeData (const std::string &)
 
unsigned long NodeChildrenNum (bool strict=false)
 
SAbsTreeNodeList_t NodeChildren (bool strict=false, bool=false)
 
bool NodePathExists (const std::string &)
 
SAbsTreeNodeNodeByPath (const std::string &)
 
SAbsTreeNodeNodeParent ()
 
bool hasNodeParent ()
 
bool NodeError ()
 
SAbsTreeNodeNewChild ()
 
SimulacrumLibrary::str_enc stringEncoding () override
 
- Public Member Functions inherited from Simulacrum::SAbsTreeNode
virtual void NodeSize (const std::string &)
 
virtual void NodeName (const std::string &)
 
virtual SAbsTreeNodeNodeRoot ()
 
virtual std::string NodePath (bool skiptop=false)
 
virtual bool NodeEmph ()
 
virtual bool hasAttribute (const std::string &)
 
virtual std::string getAttribute (const std::string &)
 
virtual std::map< std::string, std::string > getAttributes ()
 
virtual void setAttribute (const std::string &, const std::string &)
 
virtual void copy (SAbsTreeNode &)
 
virtual ~SAbsTreeNode ()
 
virtual void clearChildren ()
 
SPtr< SAbsTreeNodequery (const std::string &)
 
virtual SAbsTreeNodequeryP (const std::string &)
 

Static Public Member Functions

static DCMTaggenItemTag ()
 
static DCMTaggenSequenceTag (DICOM_ID_LENGTH)
 
static DCMTaggenIntTag (DICOM_ID_LENGTH, int64_t=0)
 
static DCMTaggenFloatTag (DICOM_ID_LENGTH, double=0.0)
 
static DCMTaggenStringTag (DICOM_ID_LENGTH, const std::string &="")
 

Protected Member Functions

char * data ()
 
tagmap_tgetTagsMap ()
 

Friends

class SDICOM
 

Constructor & Destructor Documentation

◆ DCMTag() [1/4]

DCMTag::DCMTag ( )

◆ DCMTag() [2/4]

DCMTag::DCMTag ( DICOM_ID_PART_LENGTH  lID1,
DICOM_ID_PART_LENGTH  lID2,
char  VR1,
char  VR2,
const char *  lName,
char *  lData,
DICOM_LONG_LENGTH  lLength 
)

◆ DCMTag() [3/4]

DCMTag::DCMTag ( DICOM_ID_PART_LENGTH  lID1,
DICOM_ID_PART_LENGTH  lID2 
)

◆ DCMTag() [4/4]

DCMTag::DCMTag ( const DCMTag that)

◆ ~DCMTag()

DCMTag::~DCMTag ( )

Member Function Documentation

◆ addItem() [1/2]

DCMTag & DCMTag::addItem ( DCMTag copytag)

◆ addItem() [2/2]

DCMTag * DCMTag::addItem ( DCMTag newtag)

◆ addTag() [1/2]

DCMTag & DCMTag::addTag ( DCMTag copytag,
bool  check = true 
)

◆ addTag() [2/2]

void DCMTag::addTag ( DCMTag newtag,
bool  check = true 
)

◆ clear()

void DCMTag::clear ( )
virtual

◆ clearData()

void DCMTag::clearData ( )

◆ clearTags()

void DCMTag::clearTags ( )

◆ data()

char * DCMTag::data ( )
protected

◆ dataPresent()

bool DCMTag::dataPresent ( ) const

◆ detachNode()

void DCMTag::detachNode ( )
virtual

◆ fromFloat()

void DCMTag::fromFloat ( double  newfloat)

◆ fromInt()

void DCMTag::fromInt ( int64_t  newint)

◆ fromString()

void DCMTag::fromString ( const std::string &  newstring)

◆ fromVector()

void DCMTag::fromVector ( const SVector srcvect)

◆ genFloatTag()

DCMTag * DCMTag::genFloatTag ( DICOM_ID_LENGTH  newid,
double  newfloat = 0.0 
)
static

◆ genIntTag()

DCMTag * DCMTag::genIntTag ( DICOM_ID_LENGTH  newid,
int64_t  newint = 0 
)
static

◆ genItemTag()

DCMTag * DCMTag::genItemTag ( )
static

◆ genSequenceTag()

DCMTag * DCMTag::genSequenceTag ( DICOM_ID_LENGTH  newid)
static

◆ genStringTag()

DCMTag * DCMTag::genStringTag ( DICOM_ID_LENGTH  newid,
const std::string &  newstr = "" 
)
static

◆ getByPath()

DCMTag & DCMTag::getByPath ( const std::string &  lpath)

◆ getData()

const char * DCMTag::getData ( ) const

◆ getDataLength()

DICOM_LONG_LENGTH DCMTag::getDataLength ( ) const

◆ getDataLengthUnpadded()

DICOM_LONG_LENGTH DCMTag::getDataLengthUnpadded ( ) const

◆ getElement()

std::string DCMTag::getElement ( unsigned short  ,
bool  toend = false 
) const

◆ getID()

DICOM_ID_LENGTH DCMTag::getID ( ) const

◆ getID1()

DICOM_ID_PART_LENGTH DCMTag::getID1 ( ) const

◆ getID2()

DICOM_ID_PART_LENGTH DCMTag::getID2 ( ) const

◆ getIDstr()

const std::string DCMTag::getIDstr ( ) const

◆ getName()

const char * DCMTag::getName ( ) const

◆ getParent()

DCMTag & DCMTag::getParent ( )

◆ getPath()

std::string DCMTag::getPath ( )

◆ getTag() [1/2]

DCMTag & DCMTag::getTag ( DICOM_ID_LENGTH  lid)

◆ getTag() [2/2]

DCMTag & DCMTag::getTag ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2 
)

◆ getTagDFS() [1/2]

DCMTag & DCMTag::getTagDFS ( DICOM_ID_LENGTH  lid)

◆ getTagDFS() [2/2]

DCMTag & DCMTag::getTagDFS ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2 
)

◆ getTags()

tagset_t & DCMTag::getTags ( )

◆ getTagsMap()

tagmap_t & DCMTag::getTagsMap ( )
protected

◆ getVR()

const char * DCMTag::getVR ( ) const

◆ hasError()

bool DCMTag::hasError ( ) const

◆ hasNodeParent()

bool DCMTag::hasNodeParent ( )
virtual

◆ hasTag() [1/2]

bool DCMTag::hasTag ( DICOM_ID_LENGTH  lid)

◆ hasTag() [2/2]

bool DCMTag::hasTag ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2 
)

◆ hasTagDFS() [1/2]

bool DCMTag::hasTagDFS ( DICOM_ID_LENGTH  lid)

◆ hasTagDFS() [2/2]

bool DCMTag::hasTagDFS ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2 
)

◆ hasTags()

unsigned int DCMTag::hasTags ( bool  ignoredelimeters = false) const

◆ isArray()

bool DCMTag::isArray ( ) const

◆ isFloat()

bool DCMTag::isFloat ( ) const

◆ isInt()

bool DCMTag::isInt ( ) const

◆ isMeta()

bool DCMTag::isMeta ( ) const

◆ isNULL()

bool DCMTag::isNULL ( bool  onlyfirst = false) const

◆ isPrivate()

bool DCMTag::isPrivate ( ) const

◆ isString()

bool DCMTag::isString ( ) const

◆ isTop()

bool DCMTag::isTop ( ) const

◆ matches()

bool DCMTag::matches ( const std::string &  searchstr,
bool  recurse = false 
)

◆ NewChild()

SAbsTreeNode & DCMTag::NewChild ( )
virtual

◆ NodeByPath()

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

◆ NodeChildren()

SAbsTreeNodeList_t DCMTag::NodeChildren ( bool  strict = false,
bool  = false 
)
virtual

◆ NodeChildrenNum()

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

◆ NodeData() [1/2]

std::string DCMTag::NodeData ( )
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ NodeData() [2/2]

void DCMTag::NodeData ( const std::string &  src)
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ NodeError()

bool DCMTag::NodeError ( )
virtual

◆ NodeID() [1/2]

std::string DCMTag::NodeID ( )
virtual

◆ NodeID() [2/2]

void DCMTag::NodeID ( const std::string &  newid)
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ NodeName()

std::string DCMTag::NodeName ( )
virtual

◆ NodeParent()

SAbsTreeNode & DCMTag::NodeParent ( )
virtual

◆ NodePathExists()

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

◆ NodeSize()

unsigned long DCMTag::NodeSize ( )
virtual

◆ NodeType() [1/2]

std::string DCMTag::NodeType ( )
virtual

◆ NodeType() [2/2]

void DCMTag::NodeType ( const std::string &  newvr)
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ NodeValue() [1/2]

std::string DCMTag::NodeValue ( )
virtual

◆ NodeValue() [2/2]

void DCMTag::NodeValue ( const std::string &  newvalue)
virtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ operator<()

bool DCMTag::operator< ( const DCMTag rhs) const

◆ operator=() [1/2]

DCMTag & DCMTag::operator= ( const dcm_info_store dicinfo)

◆ operator=() [2/2]

DCMTag & DCMTag::operator= ( const DCMTag rhs)

◆ operator==()

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

◆ pathExists()

bool DCMTag::pathExists ( const std::string &  lpath)

◆ removeNode()

bool DCMTag::removeNode ( )
virtual

◆ removeTag() [1/3]

bool DCMTag::removeTag ( const DCMTag tagtogo,
bool  dodelete = true 
)

◆ removeTag() [2/3]

bool DCMTag::removeTag ( DICOM_ID_LENGTH  dcmid,
bool  doelete = true 
)

◆ removeTag() [3/3]

bool DCMTag::removeTag ( DICOM_ID_PART_LENGTH  lid1,
DICOM_ID_PART_LENGTH  lid2,
bool  doelete = true 
)

◆ setData()

void DCMTag::setData ( DICOM_LONG_LENGTH  LDataLength,
char *  lData 
)

◆ setDataLength()

void DCMTag::setDataLength ( DICOM_LONG_LENGTH  LDataLength)

◆ setError()

void DCMTag::setError ( bool  errstat)

◆ setID() [1/3]

void DCMTag::setID ( const std::string &  newid)

◆ setID() [2/3]

void DCMTag::setID ( DICOM_ID_LENGTH  lID)

◆ setID() [3/3]

void DCMTag::setID ( DICOM_ID_PART_LENGTH  lID1,
DICOM_ID_PART_LENGTH  lID2 
)

◆ setIsParent()

void DCMTag::setIsParent ( bool  isTheParent)

◆ setMeta()

void DCMTag::setMeta ( bool  metatag)

◆ setName()

void DCMTag::setName ( const char *  lName,
bool  ownsname = false 
)

◆ setParent()

void DCMTag::setParent ( DCMTag newp)

◆ setShouldSave()

void DCMTag::setShouldSave ( bool  dosave)

◆ setVR()

void DCMTag::setVR ( char  VR1,
char  VR2 
)

◆ shouldSave()

bool DCMTag::shouldSave ( ) const

◆ stringEncoding()

SimulacrumLibrary::str_enc DCMTag::stringEncoding ( )
overridevirtual

Reimplemented from Simulacrum::SAbsTreeNode.

◆ toFloat()

double DCMTag::toFloat ( ) const

◆ toInt() [1/2]

int64_t DCMTag::toInt ( ) const

◆ toInt() [2/2]

int64_t DCMTag::toInt ( unsigned  elem) const

◆ toString() [1/2]

std::string DCMTag::toString ( ) const

◆ toString() [2/2]

void DCMTag::toString ( std::string &  target) const

◆ toStringSafe()

void DCMTag::toStringSafe ( std::string &  target) const

◆ toVector()

SVector DCMTag::toVector ( ) const

Friends And Related Function Documentation

◆ SDICOM

friend class SDICOM
friend

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