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
Returns the raw value .
std::string toString() const
Converts 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()
Constructor - sets the ID to (0000,0000)
bool operator>(const TagId &other) const
is-bigger-than operator
TagId(std::string tidstr)
Constructor that creates a new instance by conversion from the given string.
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
Checks whether this ID identifies a private tag (groupid is odd)
unsigned short elementId() const
Returns the lower word of the ID -> element-identifier.
TagId(unsigned short groupid, unsigned short elementid)
Constructor that creates a new instance with ID (groupid,elementid)
static TagIdPtr create(unsigned short groupid, unsigned short elementid)
unsigned short groupId() const
Returns 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
Checks whether this ID identifies a private creator tag.
~TagId() override
Destructor.
void fromStream(std::istream &in)
Extracts this instance from the given stream.
TagId(const TagId &other)
Copy Constructor.
bool operator!=(const TagId &other) const
is-not-equal operator
void toStream(std::ostream &out) const
Copies 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)
Constructor - 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()
Returns the raw value.
static TagIdPtr create(std::string tidstr)
Interface that provides a method to deserialize an object.
Interface that 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.
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.