13 #ifndef DCM_TREE_TAG_INFO_H
14 #define DCM_TREE_TAG_INFO_H
17 #pragma warning (push)
18 #pragma warning (disable : 4251 4350)
105 void fromStream (std::istream &in,
bool readName,
size_t maxSize = 0);
112 void toStream (std::ostream &out,
bool writeName)
const;
137 #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
Returns the TagId of this.
TagInfo(const TagId &tagid, const Vr &vr, const TagValueMultiplicity &multiplicity)
Creates a new instance that is initialized with the given values.
bool isCodedString() const
Checks whether the string encoding depends on the specific character set.
void fromStream(std::istream &in, bool readName, size_t maxSize=0)
Extracts this instance from the given stream.
const TagValueMultiplicity & multiplicity() const
Returns the multiplicity of this.
const Vr & vr() const
Returns the VR of this.
void setMultiplicity(const TagValueMultiplicity &multiplicity)
Sets the multiplicity of this.
TagInfo(const TagId &tagid, const Dict &dictionary)
Creates a new instance.
void setId(const TagId &tagid)
Sets the TagId of this.
void toStream(std::ostream &out, bool writeName) const
Copies this instance recursively into the given stream.
TagInfo & operator=(const TagInfo &other)
Assignment operator.
~TagInfo() override
Destructor.
TagInfo(const TagInfo &other)
Copy constructor.
void serializeX(DCMTree_Serialization::Sink &sink) const override
Writes data of this object to sink.
void setVr(const Vr &vr)
Sets the VR of this.
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)
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.