/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
DbiBinaryFile Class Reference

#include <DbiBinaryFile.h>

Collaboration diagram for DbiBinaryFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DbiBinaryFile (const char *fileName="", Bool_t input=kTRUE)
 ~DbiBinaryFile ()
string GetFileName () const
Bool_t IsOK () const
Bool_t IsReading () const
Bool_t IsWriting () const
void Close ()
DbiBinaryFileoperator>> (Bool_t &num)
DbiBinaryFileoperator<< (const Bool_t &num)
DbiBinaryFileoperator>> (Int_t &num)
DbiBinaryFileoperator<< (const Int_t &num)
DbiBinaryFileoperator>> (UInt_t &num)
DbiBinaryFileoperator<< (const UInt_t &num)
DbiBinaryFileoperator>> (Double_t &num)
DbiBinaryFileoperator<< (const Double_t &num)
DbiBinaryFileoperator>> (TimeStamp &ts)
DbiBinaryFileoperator<< (const TimeStamp &ts)
DbiBinaryFileoperator>> (string &str)
DbiBinaryFileoperator<< (const string &str)
DbiBinaryFileoperator>> (ContextRange &vr)
DbiBinaryFileoperator<< (const ContextRange &vr)
DbiBinaryFileoperator>> (vector< DbiTableRow * > &arr)
DbiBinaryFileoperator<< (vector< DbiTableRow * > &arr)
char * ReleaseArrayBuffer ()

Static Public Member Functions

static Bool_t CanReadL2Cache ()
static Bool_t CanWriteL2Cache ()
static void SetWorkDir (const string &dir)
static void SetReadAccess (Bool_t access=kTRUE)
static void SetWriteAccess (Bool_t access=kTRUE)

Private Member Functions

Bool_t CanRead ()
Bool_t CanWrite ()
void CheckFileStatus ()
Bool_t Read (char *bytes, UInt_t numBytes)
Bool_t Write (const char *bytes, UInt_t numBytes)

Private Attributes

fstream * fFile
 Associated file, may be null.
Bool_t fReading
Bool_t fHasErrors
char * fArrayBuffer
string fFileName

Static Private Attributes

static string fgWorkDir
static Bool_t fgReadAccess
static Bool_t fgWriteAccess

Detailed Description

Id:
DbiBinaryFile.h,v 1.6 2006/08/08 10:51:32 west Exp

Definition at line 45 of file DbiBinaryFile.h.


Constructor & Destructor Documentation

DbiBinaryFile::DbiBinaryFile ( const char *  fileName = "",
Bool_t  input = kTRUE 
)
DbiBinaryFile::~DbiBinaryFile ( )

Member Function Documentation

string DbiBinaryFile::GetFileName ( ) const [inline]

Definition at line 56 of file DbiBinaryFile.h.

{ return fFileName; }
Bool_t DbiBinaryFile::IsOK ( ) const [inline]

Definition at line 57 of file DbiBinaryFile.h.

{ return ! fHasErrors;}
Bool_t DbiBinaryFile::IsReading ( ) const [inline]

Definition at line 58 of file DbiBinaryFile.h.

{ return this->IsOK() && fReading; }
Bool_t DbiBinaryFile::IsWriting ( ) const [inline]

Definition at line 59 of file DbiBinaryFile.h.

{ return this->IsOK() && ! fReading; }
void DbiBinaryFile::Close ( )
DbiBinaryFile& DbiBinaryFile::operator>> ( Bool_t &  num)
DbiBinaryFile& DbiBinaryFile::operator<< ( const Bool_t &  num)
DbiBinaryFile& DbiBinaryFile::operator>> ( Int_t &  num)
DbiBinaryFile& DbiBinaryFile::operator<< ( const Int_t &  num)
DbiBinaryFile& DbiBinaryFile::operator>> ( UInt_t &  num)
DbiBinaryFile& DbiBinaryFile::operator<< ( const UInt_t &  num)
DbiBinaryFile& DbiBinaryFile::operator>> ( Double_t &  num)
DbiBinaryFile& DbiBinaryFile::operator<< ( const Double_t &  num)
DbiBinaryFile& DbiBinaryFile::operator>> ( TimeStamp ts)
DbiBinaryFile& DbiBinaryFile::operator<< ( const TimeStamp ts)
DbiBinaryFile& DbiBinaryFile::operator>> ( string &  str)
DbiBinaryFile& DbiBinaryFile::operator<< ( const string &  str)
DbiBinaryFile& DbiBinaryFile::operator>> ( ContextRange vr)
DbiBinaryFile& DbiBinaryFile::operator<< ( const ContextRange vr)
DbiBinaryFile& DbiBinaryFile::operator>> ( vector< DbiTableRow * > &  arr)
DbiBinaryFile& DbiBinaryFile::operator<< ( vector< DbiTableRow * > &  arr)
char* DbiBinaryFile::ReleaseArrayBuffer ( ) [inline]

Definition at line 98 of file DbiBinaryFile.h.

                             { char* buff = fArrayBuffer;
                               fArrayBuffer = 0;
                               return buff; }
static Bool_t DbiBinaryFile::CanReadL2Cache ( ) [inline, static]

Definition at line 104 of file DbiBinaryFile.h.

{ return fgWorkDir.size() && fgReadAccess; }
static Bool_t DbiBinaryFile::CanWriteL2Cache ( ) [inline, static]

Definition at line 105 of file DbiBinaryFile.h.

{ return fgWorkDir.size() && fgWriteAccess; }
static void DbiBinaryFile::SetWorkDir ( const string &  dir) [inline, static]

Definition at line 106 of file DbiBinaryFile.h.

                                              { fgWorkDir = dir;
                  if ( fgWorkDir.size() && (fgWorkDir[fgWorkDir.size()-1] != '/') ) fgWorkDir += '/'; }
static void DbiBinaryFile::SetReadAccess ( Bool_t  access = kTRUE) [inline, static]

Definition at line 108 of file DbiBinaryFile.h.

{ fgReadAccess = access; }
static void DbiBinaryFile::SetWriteAccess ( Bool_t  access = kTRUE) [inline, static]

Definition at line 109 of file DbiBinaryFile.h.

{ fgWriteAccess = access; }
Bool_t DbiBinaryFile::CanRead ( ) [private]
Bool_t DbiBinaryFile::CanWrite ( ) [private]
void DbiBinaryFile::CheckFileStatus ( ) [private]
Bool_t DbiBinaryFile::Read ( char *  bytes,
UInt_t  numBytes 
) [private]
Bool_t DbiBinaryFile::Write ( const char *  bytes,
UInt_t  numBytes 
) [private]

Member Data Documentation

fstream* DbiBinaryFile::fFile [private]

Associated file, may be null.

Definition at line 126 of file DbiBinaryFile.h.

Bool_t DbiBinaryFile::fReading [private]

Definition at line 129 of file DbiBinaryFile.h.

Bool_t DbiBinaryFile::fHasErrors [private]

Definition at line 130 of file DbiBinaryFile.h.

char* DbiBinaryFile::fArrayBuffer [private]

Definition at line 131 of file DbiBinaryFile.h.

string DbiBinaryFile::fFileName [private]

Definition at line 132 of file DbiBinaryFile.h.

string DbiBinaryFile::fgWorkDir [static, private]

Definition at line 134 of file DbiBinaryFile.h.

Bool_t DbiBinaryFile::fgReadAccess [static, private]

Definition at line 135 of file DbiBinaryFile.h.

Bool_t DbiBinaryFile::fgWriteAccess [static, private]

Definition at line 136 of file DbiBinaryFile.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:45 for DatabaseInterface by doxygen 1.7.4