17#ifndef DCM_TREE_VALUE_H
18#define DCM_TREE_VALUE_H
22#pragma warning(disable : 4350)
30#include <boost/shared_array.hpp>
59 Value(
const unsigned int& size);
66 Value(
const unsigned int& size,
const unsigned char* data);
114 unsigned char* data();
124 void setSize(
const unsigned int& size);
130 void setData(
const unsigned int& size,
const unsigned char* data);
153 void fromStream(
std::istream& in);
167 void allocate(
const unsigned int& size);
171 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.