ICP  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
SingleFile Class Reference

#include <SingleFile.h>

Inheritance diagram for SingleFile:
Inheritance graph

Public Member Functions

 SingleFile ()
 
int open (const std::string &path, Mode mode, int shflag)
 
size_t write (const void *data, size_t element_size, size_t nelement)
 
size_t read (void *data, size_t element_size, size_t nelement)
 
int close ()
 
int seek (int64_t offset, int whence)
 
int discardContents ()
 
bool isOpen () const
 
int flush ()
 
 ~SingleFile ()
 

Static Public Member Functions

static void removeFile (const std::string &path)
 

Private Member Functions

 SingleFile (const SingleFile &)
 
void operator= (const SingleFile &)
 

Private Attributes

FILE * m_file
 

Additional Inherited Members

- Public Types inherited from IFile
enum  Mode { ReadOnly, ReadWriteCreate }
 
- Protected Member Functions inherited from ISIS::Base
 Base (const std::string &logger_name="UNKNOWN")
 
void setLoggerName (const std::string &logger_name)
 
virtual ~Base ()
 
virtual std::string loggingPrefix () const
 
void setThisLoggerLevel (int level)
 
- Static Protected Member Functions inherited from ISIS::Base
static void setAllLoggerLevel (int level)
 
- Protected Attributes inherited from ISIS::Base
Poco::Logger * m_logger
 
Poco::LogStream * m_logstr
 
Poco::Mutex m_logger_lock
 

Detailed Description

Definition at line 6 of file SingleFile.h.

Constructor & Destructor Documentation

SingleFile::SingleFile ( const SingleFile )
inlineprivate

Definition at line 10 of file SingleFile.h.

SingleFile::SingleFile ( )

Definition at line 4 of file SingleFile.cpp.

References ISIS::Base::setLoggerName().

SingleFile::~SingleFile ( )

Definition at line 9 of file SingleFile.cpp.

References close().

Member Function Documentation

int SingleFile::close ( )
virtual

Implements IFile.

Definition at line 51 of file SingleFile.cpp.

References m_file.

Referenced by ~SingleFile().

int SingleFile::discardContents ( )
virtual

Implements IFile.

Definition at line 67 of file SingleFile.cpp.

References m_file.

int SingleFile::flush ( )
virtual

Implements IFile.

Definition at line 77 of file SingleFile.cpp.

References m_file.

bool SingleFile::isOpen ( ) const
virtual

Implements IFile.

Definition at line 72 of file SingleFile.cpp.

References m_file.

int SingleFile::open ( const std::string &  path,
Mode  mode,
int  shflag 
)
virtual

Implements IFile.

Definition at line 19 of file SingleFile.cpp.

References m_file, IFile::ReadOnly, and IFile::ReadWriteCreate.

void SingleFile::operator= ( const SingleFile )
inlineprivate

Definition at line 11 of file SingleFile.h.

References m_file.

size_t SingleFile::read ( void *  data,
size_t  element_size,
size_t  nelement 
)
virtual

Implements IFile.

Definition at line 46 of file SingleFile.cpp.

References m_file.

void SingleFile::removeFile ( const std::string &  path)
static

Definition at line 14 of file SingleFile.cpp.

int SingleFile::seek ( int64_t  offset,
int  whence 
)
virtual

Implements IFile.

Definition at line 62 of file SingleFile.cpp.

References m_file.

size_t SingleFile::write ( const void *  data,
size_t  element_size,
size_t  nelement 
)
virtual

Implements IFile.

Definition at line 41 of file SingleFile.cpp.

References m_file.

Member Data Documentation

FILE* SingleFile::m_file
private

Definition at line 9 of file SingleFile.h.

Referenced by close(), discardContents(), flush(), isOpen(), open(), operator=(), read(), seek(), and write().


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