13 #ifndef DCM_TREE_MESSAGE_H
14 #define DCM_TREE_MESSAGE_H
17 #pragma warning (push)
18 #pragma warning (disable : 4251 4350)
116 void toStream (std::ostream &out,
bool writeName)
const;
122 std::string _specificcharacterset;
142 #pragma warning (pop)
Class to hold data of an DICOM message that is not part of the message itself.
void setTags(TreePtr tags)
Specifies tags tree (modifiable).
std::string specifiedCharacterSet()
Returns the specific character set specified in the tags of this message.
void deserializeX(DCMTree_Serialization::Source &source) override
Overwrites data of this object with data from source.
const TreePtr & tags()
Accesses all the tags (non-const access).
TransferSyntax syntax() const
Returns the transfer syntax of this message.
Message(const Message &other)
Copy constructor - makes a deep copy.
void serializeX(DCMTree_Serialization::Sink &sink) const override
Writes data of this object to sink.
void fromStream(std::istream &in, bool readName)
Extracts this instance from the given stream.
const Const_TreePtr & tags() const
Accesses all the tags (const access).
Message()
Constructor Defaults to the default character set and implicit little-endian.
void convertToCharacterSet(const std::string &characterset)
Converts the internal tag tree(s) to the given character set.
Message & operator=(const Message &other)
Makes a deep copy of the given instance into *this.
~Message() override
Destructor.
void setTags(Const_TreePtr tags)
Specifies tags tree (non-modifiable).
void toStream(std::ostream &out, bool writeName) const
Copies this instance recursively into the given stream.
std::string specificCharacterSet()
Returns the specific character set of this message.
Message(const std::string &specificCharacterSet, TransferSyntax syntax)
Initializes the message with the given values.
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< const Tree > Const_TreePtr
TransferSyntax
DICOM transfer syntaxes.
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
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.