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

#include <MCachedFile.h>

Classes

struct  Access
 
struct  Params
 

Public Types

typedef System::FileEx::offset_t off_type
 
typedef System::FileEx::offset_t offset_t
 
typedef System::FileEx::offset_t pos_type
 
typedef int seek_dir
 
typedef System::FileEx::offset_t size_type
 
typedef boost::weak_ptr
< SerialAccessImpl > 
WeakPtr
 

Public Member Functions

size_type claim (void *&buf, size_type size)
 
void close ()
 
void commit (size_type size=0)
 
bool eof () const
 
std::string filename () const
 
void flush ()
 
WeakPtr getWeakPtr () const
 
bool isOpened () const
 
 MCachedFile ()
 
 MCachedFile (WeakPtr &weekPtr)
 
 MCachedFile (MCachedFile &other)
 
 MCachedFile (const std::string &filename, const std::string &mode, const Params &params=Params())
 
void open (const std::string &filename, const std::string &mode, const Params &params=Params())
 
MCachedFileoperator= (MCachedFile &)
 
size_type read (void *buf, size_type size)
 
void resize (size_type size)
 
void seek (off_type off, seek_dir way)
 
size_type size () const
 
void swap (MCachedFile &other)
 
void sync ()
 
pos_type tell ()
 
bool timerTick (System::u64 curtime=0)
 
size_type write (const void *buf, size_type size, bool flushStream=false, bool addEOL=false)
 
 ~MCachedFile ()
 

Static Public Member Functions

static bool supportsIncrementalLogFileCreation ()
 

Member Typedef Documentation

typedef boost::weak_ptr<SerialAccessImpl> System::MCachedFile::WeakPtr

Constructor & Destructor Documentation

System::MCachedFile::MCachedFile ( )
System::MCachedFile::MCachedFile ( WeakPtr weekPtr)
explicit
System::MCachedFile::MCachedFile ( MCachedFile other)
explicit
System::MCachedFile::MCachedFile ( const std::string &  filename,
const std::string &  mode,
const Params params = Params() 
)
explicit
System::MCachedFile::~MCachedFile ( )

Member Function Documentation

size_type System::MCachedFile::claim ( void *&  buf,
size_type  size 
)
void System::MCachedFile::close ( )
void System::MCachedFile::commit ( size_type  size = 0)
bool System::MCachedFile::eof ( ) const
std::string System::MCachedFile::filename ( ) const
void System::MCachedFile::flush ( )
WeakPtr System::MCachedFile::getWeakPtr ( ) const
bool System::MCachedFile::isOpened ( ) const
void System::MCachedFile::open ( const std::string &  filename,
const std::string &  mode,
const Params params = Params() 
)
MCachedFile& System::MCachedFile::operator= ( MCachedFile )
size_type System::MCachedFile::read ( void *  buf,
size_type  size 
)
void System::MCachedFile::resize ( size_type  size)
void System::MCachedFile::seek ( off_type  off,
seek_dir  way 
)
size_type System::MCachedFile::size ( ) const
static bool System::MCachedFile::supportsIncrementalLogFileCreation ( )
inlinestatic
void System::MCachedFile::swap ( MCachedFile other)
void System::MCachedFile::sync ( )
pos_type System::MCachedFile::tell ( )
bool System::MCachedFile::timerTick ( System::u64  curtime = 0)
size_type System::MCachedFile::write ( const void *  buf,
size_type  size,
bool  flushStream = false,
bool  addEOL = false 
)