Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
leveldb::Env Class Referenceabstract

#include <env.h>

Inheritance diagram for leveldb::Env:
Inheritance graph
[legend]

Public Member Functions

 Env ()
 
virtual ~Env ()
 
virtual Status NewSequentialFile (const std::string &fname, SequentialFile **result)=0
 
virtual Status NewRandomAccessFile (const std::string &fname, RandomAccessFile **result)=0
 
virtual Status NewWritableFile (const std::string &fname, WritableFile **result)=0
 
virtual bool FileExists (const std::string &fname)=0
 
virtual Status GetChildren (const std::string &dir, std::vector< std::string > *result)=0
 
virtual Status DeleteFile (const std::string &fname)=0
 
virtual Status CreateDir (const std::string &dirname)=0
 
virtual Status DeleteDir (const std::string &dirname)=0
 
virtual Status GetFileSize (const std::string &fname, uint64_t *file_size)=0
 
virtual Status RenameFile (const std::string &src, const std::string &target)=0
 
virtual Status LockFile (const std::string &fname, FileLock **lock)=0
 
virtual Status UnlockFile (FileLock *lock)=0
 
virtual void Schedule (void(*function)(void *arg), void *arg)=0
 
virtual void StartThread (void(*function)(void *arg), void *arg)=0
 
virtual Status GetTestDirectory (std::string *path)=0
 
virtual Status NewLogger (const std::string &fname, Logger **result)=0
 
virtual uint64_t NowMicros ()=0
 
virtual void SleepForMicroseconds (int micros)=0
 

Static Public Member Functions

static EnvDefault ()
 

Private Member Functions

 Env (const Env &)
 
void operator= (const Env &)
 

Detailed Description

Definition at line 31 of file env.h.

Constructor & Destructor Documentation

leveldb::Env::Env ( )
inline

Definition at line 33 of file env.h.

leveldb::Env::~Env ( )
virtual

Definition at line 9 of file env.cc.

leveldb::Env::Env ( const Env )
private

Member Function Documentation

virtual Status leveldb::Env::CreateDir ( const std::string &  dirname)
pure virtual

Implemented in leveldb::EnvWrapper.

Env * leveldb::Env::Default ( )
static

Definition at line 800 of file env_posix.cc.

virtual Status leveldb::Env::DeleteDir ( const std::string &  dirname)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::DeleteFile ( const std::string &  fname)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual bool leveldb::Env::FileExists ( const std::string &  fname)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::GetChildren ( const std::string &  dir,
std::vector< std::string > *  result 
)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::GetFileSize ( const std::string &  fname,
uint64_t file_size 
)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::GetTestDirectory ( std::string *  path)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::LockFile ( const std::string &  fname,
FileLock **  lock 
)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::NewLogger ( const std::string &  fname,
Logger **  result 
)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::NewRandomAccessFile ( const std::string &  fname,
RandomAccessFile **  result 
)
pure virtual
virtual Status leveldb::Env::NewSequentialFile ( const std::string &  fname,
SequentialFile **  result 
)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual Status leveldb::Env::NewWritableFile ( const std::string &  fname,
WritableFile **  result 
)
pure virtual
virtual uint64_t leveldb::Env::NowMicros ( )
pure virtual

Implemented in leveldb::EnvWrapper.

void leveldb::Env::operator= ( const Env )
private
virtual Status leveldb::Env::RenameFile ( const std::string &  src,
const std::string &  target 
)
pure virtual

Implemented in leveldb::EnvWrapper.

virtual void leveldb::Env::Schedule ( void(*)(void *arg function,
void *  arg 
)
pure virtual
virtual void leveldb::Env::SleepForMicroseconds ( int  micros)
pure virtual
virtual void leveldb::Env::StartThread ( void(*)(void *arg function,
void *  arg 
)
pure virtual
virtual Status leveldb::Env::UnlockFile ( FileLock lock)
pure virtual

Implemented in leveldb::EnvWrapper.


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