B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
System::FileEx Class Reference

#include <FileEx.h>

Public Types

typedef boost::shared_ptr< FILE > handle_ptr_t
 
typedef FILE * handle_t
 
typedef System::i64 offset_t
 

Public Member Functions

void close ()
 
bool eof () const
 
 FileEx ()
 
 FileEx (const FileEx &)
 
 FileEx (const std::string &path, const std::string &openmode, bool noIObuffer=false)
 
 FileEx (const char *path, const char *openmode, bool noIObuffer=false)
 
void flush ()
 
handle_t getHandle ()
 
handle_t const getHandle () const
 
bool isOpened () const
 
bool lock ()
 
void open (const std::string &path, const std::string &openmode, bool noIObuffer=false)
 
void open (const char *path, const char *openmode, bool noIObuffer=false)
 
std::size_t read (void *buf, std::size_t size)
 
void resize (offset_t size)
 Resizes file. More...
 
void rewind ()
 
void seek (offset_t offset, int origin)
 
offset_t size () const
 Returns the file size. More...
 
void sync ()
 
offset_t tell () const
 
bool unlock ()
 
std::size_t write (const void *buf, std::size_t size, bool flush=false, bool addEOL=false)
 
 ~FileEx ()
 

Static Public Member Functions

static bool supportsIncrementalLogFileCreation ()
 

Member Typedef Documentation

typedef boost::shared_ptr<FILE> System::FileEx::handle_ptr_t
typedef FILE* System::FileEx::handle_t

Constructor & Destructor Documentation

System::FileEx::FileEx ( )
System::FileEx::FileEx ( const FileEx )
System::FileEx::FileEx ( const std::string &  path,
const std::string &  openmode,
bool  noIObuffer = false 
)
System::FileEx::FileEx ( const char *  path,
const char *  openmode,
bool  noIObuffer = false 
)
System::FileEx::~FileEx ( )

Member Function Documentation

void System::FileEx::close ( )
bool System::FileEx::eof ( ) const
void System::FileEx::flush ( )
handle_t System::FileEx::getHandle ( )
handle_t const System::FileEx::getHandle ( ) const
bool System::FileEx::isOpened ( ) const
bool System::FileEx::lock ( )
void System::FileEx::open ( const std::string &  path,
const std::string &  openmode,
bool  noIObuffer = false 
)
void System::FileEx::open ( const char *  path,
const char *  openmode,
bool  noIObuffer = false 
)
std::size_t System::FileEx::read ( void *  buf,
std::size_t  size 
)
void System::FileEx::resize ( offset_t  size)

Resizes file.

void System::FileEx::rewind ( )
void System::FileEx::seek ( offset_t  offset,
int  origin 
)
offset_t System::FileEx::size ( ) const

Returns the file size.

static bool System::FileEx::supportsIncrementalLogFileCreation ( )
inlinestatic
void System::FileEx::sync ( )
inline
offset_t System::FileEx::tell ( ) const
bool System::FileEx::unlock ( )
std::size_t System::FileEx::write ( const void *  buf,
std::size_t  size,
bool  flush = false,
bool  addEOL = false 
)