LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions
LogCabin::Storage::LogFactory Namespace Reference

Functions

std::unique_ptr< LogmakeLog (const Core::Config &config, const Storage::Layout &storageLayout)
 Construct and return a Log object.

Function Documentation

std::unique_ptr< Log > LogCabin::Storage::LogFactory::makeLog ( const Core::Config &  config,
const Storage::Layout &  storageLayout 
)

Construct and return a Log object.

Parameters:
configDetermines which concrete type of Log to construct. EXITs if this is invalid.
storageLayoutLog implementations that write to the filesystem should place their files in here.
Returns:
The newly constructed Log instance.

Definition at line 30 of file LogFactory.cc.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines