ICP  1
Public Types | Public Member Functions | List of all members
IFile Struct Referenceabstract

#include <icp_interfaces.h>

Inheritance diagram for IFile:
Inheritance graph

Public Types

enum  Mode { ReadOnly, ReadWriteCreate }
 

Public Member Functions

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

Detailed Description

Definition at line 28 of file icp_interfaces.h.

Member Enumeration Documentation

Enumerator
ReadOnly 
ReadWriteCreate 

Definition at line 30 of file icp_interfaces.h.

Member Function Documentation

virtual int IFile::close ( )
pure virtual

Implemented in SplitFile, and SingleFile.

virtual int IFile::discardContents ( )
pure virtual

Implemented in SplitFile, and SingleFile.

virtual int IFile::flush ( )
pure virtual

Implemented in SplitFile, and SingleFile.

virtual bool IFile::isOpen ( ) const
pure virtual

Implemented in SplitFile, and SingleFile.

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

Implemented in SplitFile, and SingleFile.

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

Implemented in SplitFile, and SingleFile.

virtual int IFile::seek ( int64_t  offset,
int  whence 
)
pure virtual

Implemented in SplitFile, and SingleFile.

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

Implemented in SplitFile, and SingleFile.


The documentation for this struct was generated from the following file: