Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Public Attributes | List of all members
leveldb::test::ErrorEnv Class Reference

#include <testutil.h>

Inheritance diagram for leveldb::test::ErrorEnv:
Inheritance graph
[legend]
Collaboration diagram for leveldb::test::ErrorEnv:
Collaboration graph
[legend]

Public Member Functions

 ErrorEnv ()
 
virtual Status NewWritableFile (const std::string &fname, WritableFile **result)
 
- Public Member Functions inherited from leveldb::EnvWrapper
 EnvWrapper (Env *t)
 
virtual ~EnvWrapper ()
 
Envtarget () const
 
Status NewSequentialFile (const std::string &f, SequentialFile **r)
 
Status NewRandomAccessFile (const std::string &f, RandomAccessFile **r)
 
bool FileExists (const std::string &f)
 
Status GetChildren (const std::string &dir, std::vector< std::string > *r)
 
Status DeleteFile (const std::string &f)
 
Status CreateDir (const std::string &d)
 
Status DeleteDir (const std::string &d)
 
Status GetFileSize (const std::string &f, uint64_t *s)
 
Status RenameFile (const std::string &s, const std::string &t)
 
Status LockFile (const std::string &f, FileLock **l)
 
Status UnlockFile (FileLock *l)
 
void Schedule (void(*f)(void *), void *a)
 
void StartThread (void(*f)(void *), void *a)
 
virtual Status GetTestDirectory (std::string *path)
 
virtual Status NewLogger (const std::string &fname, Logger **result)
 
uint64_t NowMicros ()
 
void SleepForMicroseconds (int micros)
 
- Public Member Functions inherited from leveldb::Env
 Env ()
 
virtual ~Env ()
 
virtual void Schedule (void(*function)(void *arg), void *arg)=0
 
virtual void StartThread (void(*function)(void *arg), void *arg)=0
 

Public Attributes

bool writable_file_error_
 
int num_writable_file_errors_
 

Additional Inherited Members

- Static Public Member Functions inherited from leveldb::Env
static EnvDefault ()
 

Detailed Description

Definition at line 30 of file testutil.h.

Constructor & Destructor Documentation

leveldb::test::ErrorEnv::ErrorEnv ( )
inline

Definition at line 35 of file testutil.h.

Member Function Documentation

virtual Status leveldb::test::ErrorEnv::NewWritableFile ( const std::string &  fname,
WritableFile **  result 
)
inlinevirtual

Reimplemented from leveldb::EnvWrapper.

Definition at line 39 of file testutil.h.

Member Data Documentation

int leveldb::test::ErrorEnv::num_writable_file_errors_

Definition at line 33 of file testutil.h.

bool leveldb::test::ErrorEnv::writable_file_error_

Definition at line 32 of file testutil.h.


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