13 #ifndef DCM_TREE_TAG_ID_H
14 #define DCM_TREE_TAG_ID_H
17 #pragma warning (push)
18 #pragma warning (disable : 4350)
52 TagId (
unsigned short groupid,
unsigned short elementid);
141 static inline bool isPrivateTag(
RawTagId id );
149 return (
id & 0x10000) != 0;
RawTagId rawId() const
access the raw value
std::string toString() const
convert this to a string of the form (groupid,elementid)
static bool isPrivateTag(RawTagId id)
Returns true if the given tag ID belongs to a private tag.
TagId()
ctor - sets the id to (0000,0000)
bool operator>(const TagId &other) const
is-bigger-than operator
TagId(std::string tidstr)
ctor - create a new instance by conversion from the given string accepts string of the form t*H*t*,...
static TagIdPtr create(const TagId &other)
bool operator>=(const TagId &other) const
if-bigger-than-or-equal operator
bool operator<=(const TagId &other) const
if-smaller-than-or-equal operator
bool isPrivate() const
check if this id identifies a private tag (groupid is odd)
unsigned short elementId() const
get the lower word of the id -> element-identifier
TagId(unsigned short groupid, unsigned short elementid)
ctor - create a new instance with id (groupid,elementid)
static TagIdPtr create(unsigned short groupid, unsigned short elementid)
unsigned short groupId() const
get the upper word of the id -> group-identifier
RawTagId privateTag(unsigned short slot) const
Returns the tag ID of the corresponding private tag with the given slot.
void deserializeX(DCMTree_Serialization::Source &source) override
Overwrites data of this object with data from Source.
bool isPrivateCreator() const
check if this id identifies a private creator tag
void fromStream(std::istream &in)
extract this instance from the given stream
TagId(const TagId &other)
copy ctor
bool operator!=(const TagId &other) const
is-not-equal operator
void toStream(std::ostream &out) const
copy this instance recursively into the given stream
void serializeX(DCMTree_Serialization::Sink &sink) const override
Writes data of this object to Sink.
TagId(RawTagId rawid)
ctor - initialize to the given value
static TagIdPtr create(RawTagId rawid)
bool operator<(const TagId &other) const
is-less-than operator
bool operator==(const TagId &other) const
is-equal operator
RawTagId & rawId()
access the raw value
static TagIdPtr create(std::string tidstr)
Interface which provides a method to deserialize an object.
Interface which provides a method to serialize an object.
Interface of a data sink for the serialization of objects.
Interface of a data source for the deserialization of objects.
class to dump a DCMTree dicom message into a human readable file this class could be used as a starte...
std::istream & operator>>(std::istream &in, Message &m)
boost::shared_ptr< TagId > TagIdPtr
std::ostream & operator<<(std::ostream &out, const Message &m)
boost::graph_traits< ml_graph_ptr >::vertex_descriptor source(graph_traits< ml_graph_ptr >::edge_descriptor e, const ml_graph_ptr)
Returns the vertex descriptor for u of the edge (u,v) represented by e.