SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Bytes Class Reference

#include <api_core.h>

Public Member Functions

 CSG_Bytes (void)
bool Create (void)
 CSG_Bytes (const CSG_Bytes &Bytes)
bool Create (const CSG_Bytes &Bytes)
 CSG_Bytes (const BYTE *Bytes, int nBytes)
bool Create (const BYTE *Bytes, int nBytes)
virtual ~CSG_Bytes (void)
bool Destroy (void)
bool Clear (void)
void Rewind (void)
bool is_EOF (void)
int Get_Count (void) const
BYTE * Get_Bytes (void) const
CSG_Bytes Get_Bytes (int i) const
CSG_Bytes operator+ (int i) const
BYTE Get_Byte (int i) const
BYTE operator[] (int i) const
bool Assign (const CSG_Bytes &Bytes)
CSG_Bytesoperator= (const CSG_Bytes &Bytes)
bool Add (const CSG_Bytes &Bytes)
CSG_Bytesoperator+= (const CSG_Bytes &Bytes)
bool Add (void *Bytes, int nBytes, bool bSwapBytes)
bool Add (BYTE Value)
CSG_Bytesoperator+= (BYTE Value)
bool Add (char Value)
CSG_Bytesoperator+= (char Value)
bool Add (short Value, bool bSwapBytes=false)
CSG_Bytesoperator+= (short Value)
bool Add (WORD Value, bool bSwapBytes=false)
CSG_Bytesoperator+= (WORD Value)
bool Add (int Value, bool bSwapBytes=false)
CSG_Bytesoperator+= (int Value)
bool Add (DWORD Value, bool bSwapBytes=false)
CSG_Bytesoperator+= (DWORD Value)
bool Add (float Value, bool bSwapBytes=false)
CSG_Bytesoperator+= (float Value)
bool Add (double Value, bool bSwapBytes=false)
CSG_Bytesoperator+= (double Value)
BYTE asByte (int i) const
char asChar (int i) const
short asShort (int i, bool bSwapBytes=false) const
WORD asWord (int i, bool bSwapBytes=false) const
int asInt (int i, bool bSwapBytes=false) const
DWORD asDWord (int i, bool bSwapBytes=false) const
float asFloat (int i, bool bSwapBytes=false) const
double asDouble (int i, bool bSwapBytes=false) const
BYTE Read_Byte (void)
char Read_Char (void)
short Read_Short (bool bSwapBytes=false)
WORD Read_Word (bool bSwapBytes=false)
int Read_Int (bool bSwapBytes=false)
DWORD Read_DWord (bool bSwapBytes=false)
float Read_Float (bool bSwapBytes=false)
double Read_Double (bool bSwapBytes=false)
CSG_String toHexString (void) const
bool fromHexString (const CSG_String &HexString)

Detailed Description

Definition at line 813 of file api_core.h.

Constructor & Destructor Documentation

◆ CSG_Bytes() [1/3]

◆ CSG_Bytes() [2/3]

CSG_Bytes::CSG_Bytes ( const CSG_Bytes & Bytes)

Definition at line 790 of file api_memory.cpp.

References Create(), and CSG_Bytes().

◆ CSG_Bytes() [3/3]

CSG_Bytes::CSG_Bytes ( const BYTE * Bytes,
int nBytes )

Definition at line 806 of file api_memory.cpp.

References Create().

◆ ~CSG_Bytes()

CSG_Bytes::~CSG_Bytes ( void )
virtual

Definition at line 824 of file api_memory.cpp.

References Destroy().

Member Function Documentation

◆ Add() [1/10]

bool CSG_Bytes::Add ( BYTE Value)
inline

Definition at line 850 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [2/10]

bool CSG_Bytes::Add ( char Value)
inline

Definition at line 852 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [3/10]

bool CSG_Bytes::Add ( const CSG_Bytes & Bytes)

◆ Add() [4/10]

bool CSG_Bytes::Add ( double Value,
bool bSwapBytes = false )
inline

Definition at line 864 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [5/10]

bool CSG_Bytes::Add ( DWORD Value,
bool bSwapBytes = false )
inline

Definition at line 860 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [6/10]

bool CSG_Bytes::Add ( float Value,
bool bSwapBytes = false )
inline

Definition at line 862 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [7/10]

bool CSG_Bytes::Add ( int Value,
bool bSwapBytes = false )
inline

Definition at line 858 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [8/10]

bool CSG_Bytes::Add ( short Value,
bool bSwapBytes = false )
inline

Definition at line 854 of file api_core.h.

References Add().

Referenced by Add().

◆ Add() [9/10]

bool CSG_Bytes::Add ( void * Bytes,
int nBytes,
bool bSwapBytes )

Definition at line 911 of file api_memory.cpp.

References SG_Swap_Bytes().

◆ Add() [10/10]

bool CSG_Bytes::Add ( WORD Value,
bool bSwapBytes = false )
inline

Definition at line 856 of file api_core.h.

References Add().

Referenced by Add().

◆ asByte()

BYTE CSG_Bytes::asByte ( int i) const
inline

Definition at line 867 of file api_core.h.

References Get_Byte().

Referenced by Read_Byte(), and Read_Char().

◆ asChar()

char CSG_Bytes::asChar ( int i) const
inline

Definition at line 868 of file api_core.h.

References Get_Byte().

◆ asDouble()

double CSG_Bytes::asDouble ( int i,
bool bSwapBytes = false ) const
inline

Definition at line 874 of file api_core.h.

References SG_Swap_Bytes().

Referenced by Read_Double().

◆ asDWord()

DWORD CSG_Bytes::asDWord ( int i,
bool bSwapBytes = false ) const
inline

Definition at line 872 of file api_core.h.

References SG_Swap_Bytes().

Referenced by Read_DWord().

◆ asFloat()

float CSG_Bytes::asFloat ( int i,
bool bSwapBytes = false ) const
inline

Definition at line 873 of file api_core.h.

References SG_Swap_Bytes().

Referenced by Read_Float().

◆ asInt()

int CSG_Bytes::asInt ( int i,
bool bSwapBytes = false ) const
inline

Definition at line 871 of file api_core.h.

References SG_Swap_Bytes().

Referenced by Read_Int().

◆ asShort()

short CSG_Bytes::asShort ( int i,
bool bSwapBytes = false ) const
inline

Definition at line 869 of file api_core.h.

References SG_Swap_Bytes().

Referenced by Read_Short().

◆ Assign()

bool CSG_Bytes::Assign ( const CSG_Bytes & Bytes)

Definition at line 885 of file api_memory.cpp.

References CSG_Bytes(), and Destroy().

Referenced by Create(), and operator=().

◆ asWord()

WORD CSG_Bytes::asWord ( int i,
bool bSwapBytes = false ) const
inline

Definition at line 870 of file api_core.h.

References SG_Swap_Bytes().

Referenced by Read_Word().

◆ Clear()

bool CSG_Bytes::Clear ( void )

Definition at line 844 of file api_memory.cpp.

Referenced by CSG_HTTP::Request(), and CSG_Grid_OGIS_Converter::to_WKBinary().

◆ Create() [1/3]

bool CSG_Bytes::Create ( const BYTE * Bytes,
int nBytes )

Definition at line 816 of file api_memory.cpp.

References Add(), and Destroy().

◆ Create() [2/3]

bool CSG_Bytes::Create ( const CSG_Bytes & Bytes)

Definition at line 800 of file api_memory.cpp.

References Assign(), and CSG_Bytes().

◆ Create() [3/3]

bool CSG_Bytes::Create ( void )

Definition at line 784 of file api_memory.cpp.

References Destroy().

Referenced by CSG_Bytes(), and CSG_Bytes().

◆ Destroy()

bool CSG_Bytes::Destroy ( void )

◆ fromHexString()

bool CSG_Bytes::fromHexString ( const CSG_String & HexString)

◆ Get_Byte()

BYTE CSG_Bytes::Get_Byte ( int i) const
inline

Definition at line 839 of file api_core.h.

Referenced by asByte(), asChar(), and operator[]().

◆ Get_Bytes() [1/2]

CSG_Bytes CSG_Bytes::Get_Bytes ( int i) const
inline

Definition at line 836 of file api_core.h.

References CSG_Bytes().

◆ Get_Bytes() [2/2]

◆ Get_Count()

int CSG_Bytes::Get_Count ( void ) const
inline

Definition at line 833 of file api_core.h.

Referenced by CSG_Shapes_OGIS_Converter::from_WKBinary().

◆ is_EOF()

bool CSG_Bytes::is_EOF ( void )
inline

Definition at line 831 of file api_core.h.

◆ operator+()

CSG_Bytes CSG_Bytes::operator+ ( int i) const
inline

Definition at line 837 of file api_core.h.

References CSG_Bytes(), and Get_Bytes().

◆ operator+=() [1/9]

CSG_Bytes & CSG_Bytes::operator+= ( BYTE Value)
inline

Definition at line 851 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [2/9]

CSG_Bytes & CSG_Bytes::operator+= ( char Value)
inline

Definition at line 853 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [3/9]

CSG_Bytes & CSG_Bytes::operator+= ( const CSG_Bytes & Bytes)
inline

Definition at line 846 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [4/9]

CSG_Bytes & CSG_Bytes::operator+= ( double Value)
inline

Definition at line 865 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [5/9]

CSG_Bytes & CSG_Bytes::operator+= ( DWORD Value)
inline

Definition at line 861 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [6/9]

CSG_Bytes & CSG_Bytes::operator+= ( float Value)
inline

Definition at line 863 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [7/9]

CSG_Bytes & CSG_Bytes::operator+= ( int Value)
inline

Definition at line 859 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [8/9]

CSG_Bytes & CSG_Bytes::operator+= ( short Value)
inline

Definition at line 855 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator+=() [9/9]

CSG_Bytes & CSG_Bytes::operator+= ( WORD Value)
inline

Definition at line 857 of file api_core.h.

References Add(), and CSG_Bytes().

◆ operator=()

CSG_Bytes & CSG_Bytes::operator= ( const CSG_Bytes & Bytes)
inline

Definition at line 843 of file api_core.h.

References Assign(), and CSG_Bytes().

◆ operator[]()

BYTE CSG_Bytes::operator[] ( int i) const
inline

Definition at line 840 of file api_core.h.

References Get_Byte().

◆ Read_Byte()

BYTE CSG_Bytes::Read_Byte ( void )
inline

◆ Read_Char()

char CSG_Bytes::Read_Char ( void )
inline

Definition at line 877 of file api_core.h.

References asByte().

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Double()

double CSG_Bytes::Read_Double ( bool bSwapBytes = false)
inline

Definition at line 883 of file api_core.h.

References asDouble().

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_DWord()

DWORD CSG_Bytes::Read_DWord ( bool bSwapBytes = false)
inline

◆ Read_Float()

float CSG_Bytes::Read_Float ( bool bSwapBytes = false)
inline

Definition at line 882 of file api_core.h.

References asFloat().

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Int()

int CSG_Bytes::Read_Int ( bool bSwapBytes = false)
inline

Definition at line 880 of file api_core.h.

References asInt().

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Short()

short CSG_Bytes::Read_Short ( bool bSwapBytes = false)
inline

Definition at line 878 of file api_core.h.

References asShort().

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Read_Word()

WORD CSG_Bytes::Read_Word ( bool bSwapBytes = false)
inline

Definition at line 879 of file api_core.h.

References asWord().

Referenced by CSG_Grid_OGIS_Converter::from_WKBinary().

◆ Rewind()

void CSG_Bytes::Rewind ( void )
inline

◆ toHexString()

CSG_String CSG_Bytes::toHexString ( void ) const

Definition at line 966 of file api_memory.cpp.

References CSG_String::Format(), and SG_T.


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