liborigin  2.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
std::iendianfstream Class Reference

#include <endianfstream.hh>

Inheritance diagram for std::iendianfstream:

Public Member Functions

 iendianfstream (const char *_Filename, ios_base::openmode _Mode=ios_base::in)
 
iendianfstreamoperator>> (bool &value)
 
iendianfstreamoperator>> (char &value)
 
iendianfstreamoperator>> (unsigned char &value)
 
iendianfstreamoperator>> (short &value)
 
iendianfstreamoperator>> (unsigned short &value)
 
iendianfstreamoperator>> (int &value)
 
iendianfstreamoperator>> (unsigned int &value)
 
iendianfstreamoperator>> (long &value)
 
iendianfstreamoperator>> (unsigned long &value)
 
iendianfstreamoperator>> (float &value)
 
iendianfstreamoperator>> (double &value)
 
iendianfstreamoperator>> (long double &value)
 
iendianfstreamoperator>> (string &value)
 
iendianfstreamoperator>> (Origin::Color &value)
 

Private Member Functions

void swap_bytes (unsigned char *data, int size)
 

Private Attributes

bool bigEndian
 

Constructor & Destructor Documentation

◆ iendianfstream()

std::iendianfstream::iendianfstream ( const char *  _Filename,
ios_base::openmode  _Mode = ios_base::in 
)
inline

References bigEndian.

Member Function Documentation

◆ operator>>() [1/14]

iendianfstream& std::iendianfstream::operator>> ( bool &  value)
inline

◆ operator>>() [2/14]

iendianfstream& std::iendianfstream::operator>> ( char &  value)
inline

◆ operator>>() [3/14]

iendianfstream& std::iendianfstream::operator>> ( unsigned char &  value)
inline

◆ operator>>() [4/14]

iendianfstream& std::iendianfstream::operator>> ( short &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [5/14]

iendianfstream& std::iendianfstream::operator>> ( unsigned short &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [6/14]

iendianfstream& std::iendianfstream::operator>> ( int &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [7/14]

iendianfstream& std::iendianfstream::operator>> ( unsigned int &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [8/14]

iendianfstream& std::iendianfstream::operator>> ( long &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [9/14]

iendianfstream& std::iendianfstream::operator>> ( unsigned long &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [10/14]

iendianfstream& std::iendianfstream::operator>> ( float &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [11/14]

iendianfstream& std::iendianfstream::operator>> ( double &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [12/14]

iendianfstream& std::iendianfstream::operator>> ( long double &  value)
inline

References bigEndian, and swap_bytes().

◆ operator>>() [13/14]

iendianfstream& std::iendianfstream::operator>> ( string &  value)
inline

◆ operator>>() [14/14]

iendianfstream& std::iendianfstream::operator>> ( Origin::Color value)
inline

◆ swap_bytes()

void std::iendianfstream::swap_bytes ( unsigned char *  data,
int  size 
)
inlineprivate

Referenced by operator>>().

Member Data Documentation

◆ bigEndian

bool std::iendianfstream::bigEndian
private

Referenced by iendianfstream(), and operator>>().


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