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)
Makes a deep copy of other to this.
Value(Value &&) noexcept=default
Value(const unsigned int &size)
Creates a value with the given size in bytes.
Value(const unsigned int &size, const unsigned char *data)
Creates a value with the given size in bytes and memcpy data to it.
void fromStream(std::istream &in)
Extracts this instance from the given stream.
Interface that provides a method to deserialize an object.
Interface that 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.
std::vector< Value > ValueVector
Forward declaration for the boost::mutex class.