GDCM
2.2.6
|
Class to represent binary value (array of bytes) More...
#include <gdcmByteValue.h>
Public Member Functions | |
ByteValue (const char *array=0, VL const &vl=0) | |
ByteValue (std::vector< char > &v) | |
~ByteValue () | |
void | Clear () |
void | Fill (char c) |
bool | GetBuffer (char *buffer, unsigned long length) const |
VL | GetLength () const |
const char * | GetPointer () const |
bool | IsEmpty () const |
bool | IsPrintable (VL length) const |
Checks whether a 'ByteValue' is printable or not (in order to avoid corrupting the terminal of invocation when printing) I dont think this function is working since it does not handle UNICODE or character set... More... | |
operator const std::vector< char > & () const | |
ByteValue & | operator= (const ByteValue &val) |
bool | operator== (const ByteValue &val) const |
bool | operator== (const Value &val) const |
void | PrintASCII (std::ostream &os, VL maxlength) const |
void | PrintGroupLength (std::ostream &os) |
void | PrintHex (std::ostream &os, VL maxlength) const |
template<typename TSwap , typename TType > | |
std::istream & | Read (std::istream &is, bool readvalues=true) |
template<typename TSwap > | |
std::istream & | Read (std::istream &is) |
void | SetLength (VL vl) |
template<typename TSwap , typename TType > | |
std::ostream const & | Write (std::ostream &os) const |
template<typename TSwap > | |
std::ostream const & | Write (std::ostream &os) const |
bool | WriteBuffer (std::ostream &os) const |
![]() | |
Value () | |
~Value () | |
![]() | |
Object () | |
Object (const Object &) | |
Special requirement for copy/cstor, assigment operator. More... | |
virtual | ~Object () |
void | operator= (const Object &) |
Protected Member Functions | |
void | Print (std::ostream &os) const |
void | SetLengthOnly (VL vl) |
![]() | |
void | Register () |
void | UnRegister () |
Class to represent binary value (array of bytes)
|
inline |
References gdcmDebugMacro.
|
inline |
|
inline |
|
inlinevirtual |
Implements gdcm::Value.
|
inline |
bool gdcm::ByteValue::GetBuffer | ( | char * | buffer, |
unsigned long | length | ||
) | const |
|
inlinevirtual |
Implements gdcm::Value.
Referenced by gdcm::operator<<(), gdcm::SequenceOfFragments::ReadValue(), gdcm::Element< VR::OB, VM::VM1_n >::Set(), gdcm::Element< TVR, VM::VM1_n >::Set(), gdcm::Attribute< Group, Element, TVR, TVM >::SetByteValue(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetByteValue(), gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::SetByteValue(), gdcm::Attribute< Group, Element, TVR, TVM >::SetByteValueNoSwap(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetByteValueNoSwap(), gdcm::Element< VR::OB, VM::VM1_n >::SetNoSwap(), gdcm::Element< TVR, VM::VM1_n >::SetNoSwap(), and gdcm::Fragment::Write().
|
inline |
Referenced by gdcm::operator<<(), gdcm::SequenceOfFragments::ReadValue(), gdcm::Element< VR::OB, VM::VM1_n >::Set(), gdcm::Element< TVR, VM::VM1_n >::Set(), gdcm::Attribute< Group, Element, TVR, TVM >::SetByteValue(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetByteValue(), gdcm::Attribute< Group, Element, TVR, VM::VM1_n >::SetByteValue(), gdcm::Attribute< Group, Element, TVR, TVM >::SetByteValueNoSwap(), gdcm::Attribute< Group, Element, TVR, VM::VM1 >::SetByteValueNoSwap(), gdcm::Element< VR::OB, VM::VM1_n >::SetNoSwap(), and gdcm::Element< TVR, VM::VM1_n >::SetNoSwap().
|
inline |
|
inline |
Checks whether a 'ByteValue' is printable or not (in order to avoid corrupting the terminal of invocation when printing) I dont think this function is working since it does not handle UNICODE or character set...
|
inline |
|
inline |
|
inlinevirtual |
Implements gdcm::Value.
|
inlineprotectedvirtual |
Reimplemented from gdcm::Object.
void gdcm::ByteValue::PrintASCII | ( | std::ostream & | os, |
VL | maxlength | ||
) | const |
|
inline |
void gdcm::ByteValue::PrintHex | ( | std::ostream & | os, |
VL | maxlength | ||
) | const |
|
inline |
|
inline |
|
inlinevirtual |
Implements gdcm::Value.
References gdcmDebugMacro, gdcm::VL::IsOdd(), and gdcm::VL::IsUndefined().
|
inlineprotectedvirtual |
Reimplemented from gdcm::Value.
|
inline |
Referenced by gdcm::Fragment::Write().
|
inline |
|
inline |