13 #ifndef DCM_TREE_TAG_INFO_H
14 #define DCM_TREE_TAG_INFO_H
17 #pragma warning (push)
18 #pragma warning (disable : 4251 4350)
111 void toStream (std::ostream &out,
bool writeName)
const;
136 #pragma warning (pop)
Class to carry meta-information about a specific tag.
void deserializeX(DCMTree_Serialization::Source &source) override
Overwrites data of this object with data from Source.
const TagId & id() const
get the TagId of this
TagInfo(const TagId &tagid, const Vr &vr, const TagValueMultiplicity &multiplicity)
create a new instance, initialized with the given values
bool isCodedString() const
check if the string encoding depends on the specific character set
const TagValueMultiplicity & multiplicity() const
get the multiplicity of this
const Vr & vr() const
get the vr of this
void setMultiplicity(const TagValueMultiplicity &multiplicity)
set the multiplicity of this
TagInfo(const TagId &tagid, const Dict &dictionary)
create a new instance, getting the values regarding the tag id from the dictionary
void setId(const TagId &tagid)
set the TagId of this
void toStream(std::ostream &out, bool writeName) const
copy this instance recursively into the given stream writeName = true writes tag name(s) to stream,...
TagInfo & operator=(const TagInfo &other)
assignment operator copies all values from other to this handles self-assignment well
TagInfo(const TagInfo &other)
copy ctor
void serializeX(DCMTree_Serialization::Sink &sink) const override
Writes data of this object to Sink.
void setVr(const Vr &vr)
set the vr of this
void fromStream(std::istream &in, bool readName)
extract this instance from the given stream readName = true reads tag name(s) from stream,...
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)
std::pair< unsigned, unsigned > TagValueMultiplicity
the multiplicity of a tag, first=min second=max
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.