GDCM  2.2.6
Public Member Functions | Protected Member Functions | List of all members
gdcm::ByteValue Class Reference

Class to represent binary value (array of bytes) More...

#include <gdcmByteValue.h>

Inheritance diagram for gdcm::ByteValue:
Inheritance graph
[legend]
Collaboration diagram for gdcm::ByteValue:
Collaboration graph
[legend]

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
 
ByteValueoperator= (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
 
- Public Member Functions inherited from gdcm::Value
 Value ()
 
 ~Value ()
 
- Public Member Functions inherited from gdcm::Object
 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)
 
- Protected Member Functions inherited from gdcm::Object
void Register ()
 
void UnRegister ()
 

Detailed Description

Class to represent binary value (array of bytes)

Note
Examples:
DumpADAC.cxx, DumpImageHeaderInfo.cxx, DumpPhilipsECHO.cxx, DuplicatePCDE.cxx, ELSCINT1WaveToText.cxx, ExtractEncryptedContent.cxx, ExtractIconFromFile.cxx, FixBrokenJ2K.cxx, FixJAIBugJPEGLS.cxx, GetSubSequenceData.cxx, MrProtocol.cxx, PatchFile.cxx, pmsct_rgb1.cxx, ReadExplicitLengthSQIVR.cxx, and rle2img.cxx.

Constructor & Destructor Documentation

gdcm::ByteValue::ByteValue ( const char *  array = 0,
VL const &  vl = 0 
)
inline

References gdcmDebugMacro.

gdcm::ByteValue::ByteValue ( std::vector< char > &  v)
inline
Warning
casting to uint32_t
gdcm::ByteValue::~ByteValue ( )
inline

Member Function Documentation

void gdcm::ByteValue::Clear ( )
inlinevirtual

Implements gdcm::Value.

void gdcm::ByteValue::Fill ( char  c)
inline
Examples:
DuplicatePCDE.cxx.
bool gdcm::ByteValue::GetBuffer ( char *  buffer,
unsigned long  length 
) const
Examples:
FixJAIBugJPEGLS.cxx.
VL gdcm::ByteValue::GetLength ( ) const
inlinevirtual
const char* gdcm::ByteValue::GetPointer ( ) const
inline
bool gdcm::ByteValue::IsEmpty ( ) const
inline
bool gdcm::ByteValue::IsPrintable ( VL  length) const
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...

gdcm::ByteValue::operator const std::vector< char > & ( ) const
inline
ByteValue& gdcm::ByteValue::operator= ( const ByteValue val)
inline
bool gdcm::ByteValue::operator== ( const ByteValue val) const
inline
bool gdcm::ByteValue::operator== ( const Value val) const
inlinevirtual

Implements gdcm::Value.

void gdcm::ByteValue::Print ( std::ostream &  os) const
inlineprotectedvirtual

Reimplemented from gdcm::Object.

void gdcm::ByteValue::PrintASCII ( std::ostream &  os,
VL  maxlength 
) const
void gdcm::ByteValue::PrintGroupLength ( std::ostream &  os)
inline
void gdcm::ByteValue::PrintHex ( std::ostream &  os,
VL  maxlength 
) const
template<typename TSwap , typename TType >
std::istream& gdcm::ByteValue::Read ( std::istream &  is,
bool  readvalues = true 
)
inline
template<typename TSwap >
std::istream& gdcm::ByteValue::Read ( std::istream &  is)
inline
void gdcm::ByteValue::SetLength ( VL  vl)
inlinevirtual
void gdcm::ByteValue::SetLengthOnly ( VL  vl)
inlineprotectedvirtual

Reimplemented from gdcm::Value.

template<typename TSwap , typename TType >
std::ostream const& gdcm::ByteValue::Write ( std::ostream &  os) const
inline

Referenced by gdcm::Fragment::Write().

template<typename TSwap >
std::ostream const& gdcm::ByteValue::Write ( std::ostream &  os) const
inline
bool gdcm::ByteValue::WriteBuffer ( std::ostream &  os) const
inline

The documentation for this class was generated from the following file:

Generated on Sat Dec 21 2013 05:56:20 for GDCM by doxygen 1.8.5
SourceForge.net Logo