17#ifndef DCM_TREE_VALUE_H
18#define DCM_TREE_VALUE_H
21 #pragma warning (push)
22 #pragma warning (disable : 4350)
30#include <boost/shared_array.hpp>
60 Value (
const unsigned int &size);
67 Value (
const unsigned int &size,
const unsigned char *data);
115 unsigned char *data();
125 void setSize (
const unsigned int &size);
131 void setData (
const unsigned int &size,
const unsigned char *data);
139 void setData (
const unsigned int &size,
unsigned char *data,
155 void fromStream (
std::istream &in);
169 void allocate (
const unsigned int &size);
173 unsigned int _buffersize;
Class to store tag-values.
Value(const Value &other)
make a deep-copy of other to this uses operator=
Value(Value &&) noexcept=default
Value(const unsigned int &size)
create a value with the given size in bytes
Value(const unsigned int &size, const unsigned char *data)
create a value with the given size in bytes and memcpy data to it the given data remains owned by the...
void fromStream(std::istream &in)
extract this instance from the given stream
Interface which provides a method to deserialize an object.
Interface which provides a method to serialize an object.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
std::istream & operator>>(std::istream &in, ml::Variant &variant)
class to dump a DCMTree dicom message into a human readable file this class could be used as a starte...
std::vector< Value > ValueVector
Forward declaration for the boost::mutex class.