|
GDCM 3.0.24
|
Class to represent binary value (array of bytes) More...
#include <gdcmByteValue.h>
Public Member Functions | |
| ByteValue (const char *array=nullptr, VL const &vl=0) | |
| ByteValue (std::vector< char > &v) | |
| ~ByteValue () override | |
| void | Append (ByteValue const &bv) |
| void | Clear () override |
| VL | ComputeLength () const |
| void | Fill (char c) |
| bool | GetBuffer (char *buffer, unsigned long length) const |
| VL | GetLength () const override |
| const char * | GetPointer () const |
| void * | GetVoidPointer () |
| const void * | GetVoidPointer () 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 don't think this function is working since it does not handle UNICODE or character set... | |
| operator const std::vector< char > & () const | |
| ByteValue & | operator= (const ByteValue &val) |
| bool | operator== (const ByteValue &val) const |
| bool | operator== (const Value &val) const override |
| void | PrintASCII (std::ostream &os, VL maxlength) const |
| void | PrintASCIIXML (std::ostream &os) const |
| void | PrintGroupLength (std::ostream &os) |
| void | PrintHex (std::ostream &os, VL maxlength) const |
| void | PrintHexXML (std::ostream &os) const |
| void | PrintPNXML (std::ostream &os) const |
| template<typename TSwap > | |
| std::istream & | Read (std::istream &is) |
| template<typename TSwap , typename TType > | |
| std::istream & | Read (std::istream &is, bool readvalues=true) |
| void | SetLength (VL vl) override |
| 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 |
Public Member Functions inherited from gdcm::Value | |
| Value ()=default | |
| ~Value () override=default | |
Public Member Functions inherited from gdcm::Object | |
| Object () | |
| Object (const Object &) | |
| Special requirement for copy/cstor, assignment operator. | |
| virtual | ~Object () |
| void | operator= (const Object &) |
Protected Member Functions | |
| void | Print (std::ostream &os) const override |
| void | SetLengthOnly (VL vl) override |
Protected Member Functions inherited from gdcm::Object | |
| void | Register () |
| void | UnRegister () |
Class to represent binary value (array of bytes)
|
inline |
References gdcmDebugMacro.
|
inline |
|
inlineoverride |
| void gdcm::ByteValue::Append | ( | ByteValue const & | bv | ) |
|
inlineoverridevirtual |
Implements gdcm::Value.
|
inline |
Referenced by gdcm::Fragment::Write().
|
inline |
| bool gdcm::ByteValue::GetBuffer | ( | char * | buffer, |
| unsigned long | length | ||
| ) | const |
|
inlineoverridevirtual |
Implements gdcm::Value.
Referenced by gdcm::SequenceOfFragments::ReadValue(), gdcm::Element< TVR, TVM >::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< TVR, TVM >::SetNoSwap(), gdcm::Element< TVR, VM::VM1_n >::SetNoSwap(), and gdcm::Fragment::Write().
|
inline |
Referenced by gdcm::SequenceOfFragments::ReadValue(), gdcm::Element< TVR, TVM >::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< TVR, TVM >::SetNoSwap(), and gdcm::Element< TVR, VM::VM1_n >::SetNoSwap().
|
inline |
|
inline |
Referenced by gdcm::Element< TVR, VM::VM1_n >::Set().
|
inline |
|
inline |
Checks whether a 'ByteValue' is printable or not (in order to avoid corrupting the terminal of invocation when printing) I don't think this function is working since it does not handle UNICODE or character set...
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements gdcm::Value.
|
inlineoverrideprotectedvirtual |
Reimplemented from gdcm::Object.
| void gdcm::ByteValue::PrintASCII | ( | std::ostream & | os, |
| VL | maxlength | ||
| ) | const |
| void gdcm::ByteValue::PrintASCIIXML | ( | std::ostream & | os | ) | const |
|
inline |
| void gdcm::ByteValue::PrintHex | ( | std::ostream & | os, |
| VL | maxlength | ||
| ) | const |
| void gdcm::ByteValue::PrintHexXML | ( | std::ostream & | os | ) | const |
| void gdcm::ByteValue::PrintPNXML | ( | std::ostream & | os | ) | const |
To Print Values in Native DICOM format
|
inline |
|
inline |
|
overridevirtual |
Implements gdcm::Value.
|
inlineoverrideprotectedvirtual |
Reimplemented from gdcm::Value.
|
inline |
Referenced by gdcm::Fragment::Write().
|
inline |
|
inline |