binio Class Reference

#include <binio.h>

Inheritance diagram for binio:

Inheritance graph
[legend]

List of all members.

Public Types

enum  Flag { BigEndian = 1 << 0, FloatIEEE = 1 << 1 }
enum  ErrorCode {
  NoError = 0, Fatal = 1 << 0, Unsupported = 1 << 1, NotOpen = 1 << 2,
  Denied = 1 << 3, NotFound = 1 << 4, Eof = 1 << 5
}
enum  Offset { Set, Add, End }
enum  FType { Single, Double }
typedef int Error

Public Member Functions

 binio ()
virtual ~binio ()
void setFlag (Flag f, bool set=true)
bool getFlag (Flag f)
Error error ()
bool eof ()
virtual void seek (long, Offset=Set)=0
virtual long pos ()=0

Protected Types

typedef long Int
typedef double Float
typedef unsigned char Byte
typedef int Flags

Protected Attributes

Flags my_flags
Error err

Static Protected Attributes

static const Flags system_flags = binio::detect_system_flags()

Static Private Member Functions

static Flags detect_system_flags ()


Detailed Description

Definition at line 66 of file binio.h.


Member Typedef Documentation

typedef int binio::Error

Definition at line 86 of file binio.h.

typedef long binio::Int [protected]

Definition at line 101 of file binio.h.

typedef double binio::Float [protected]

Definition at line 102 of file binio.h.

typedef unsigned char binio::Byte [protected]

Definition at line 103 of file binio.h.

typedef int binio::Flags [protected]

Definition at line 105 of file binio.h.


Member Enumeration Documentation

Enumerator:
BigEndian 
FloatIEEE 

Definition at line 69 of file binio.h.

Enumerator:
NoError 
Fatal 
Unsupported 
NotOpen 
Denied 
NotFound 
Eof 

Definition at line 74 of file binio.h.

Enumerator:
Set 
Add 
End 

Definition at line 84 of file binio.h.

Enumerator:
Single 
Double 

Definition at line 85 of file binio.h.


Constructor & Destructor Documentation

binio::binio (  ) 

Definition at line 85 of file binio.cc.

binio::~binio (  )  [virtual]

Definition at line 90 of file binio.cc.


Member Function Documentation

void binio::setFlag ( Flag  f,
bool  set = true 
)

Definition at line 94 of file binio.cc.

References my_flags.

Referenced by bifstream::bifstream(), bofstream::bofstream(), and main().

bool binio::getFlag ( Flag  f  ) 

binio::Error binio::error (  ) 

Definition at line 107 of file binio.cc.

References err, and NoError.

Referenced by main(), readppdata(), and readppheader().

bool binio::eof (  ) 

Definition at line 115 of file binio.cc.

References Eof, and err.

Referenced by binistream::ateof().

virtual void binio::seek ( long  ,
Offset  = Set 
) [pure virtual]

Implemented in bifstream, and bofstream.

Referenced by binistream::peekFloat(), and binistream::peekInt().

virtual long binio::pos (  )  [pure virtual]

Implemented in bifstream, and bofstream.

binio::Flags binio::detect_system_flags (  )  [static, private]

Definition at line 51 of file binio.cc.

References BigEndian, and FloatIEEE.


Member Data Documentation

Flags binio::my_flags [protected]

Definition at line 107 of file binio.h.

Referenced by getFlag(), and setFlag().

const binio::Flags binio::system_flags = binio::detect_system_flags() [static, protected]

Definition at line 108 of file binio.h.

Referenced by binistream::readFloat(), and binostream::writeFloat().

Error binio::err [protected]


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

Generated on Mon Mar 23 14:06:57 2009 for ARTS by  doxygen 1.5.6