oasys::MemoryStore Class Reference

#include <MemoryStore.h>

Inheritance diagram for oasys::MemoryStore:

oasys::DurableStoreImpl oasys::Logger

List of all members.


Detailed Description

Fake durable store that just uses RAM.

N.B: This is not durable unless you have a bunch of NVRAM.

Definition at line 95 of file MemoryStore.h.


Public Member Functions

 MemoryStore (const char *logpath)
MemoryStoreoperator= (const MemoryStore &)
 MemoryStore (const MemoryStore &)
 ~MemoryStore ()
int init (const StorageConfig &cfg)
int get_table (DurableTableImpl **table, const std::string &name, int flags, PrototypeVector &prototypes)
int del_table (const std::string &name)
int get_table_names (StringVector *names)
std::string get_info () const

Private Types

typedef StringMap
< MemoryTable::ItemMap
TableMap

Private Attributes

bool init_
 Initialized?
TableMap tables_

Friends

class MemoryTable

Member Typedef Documentation

typedef StringMap<MemoryTable::ItemMap> oasys::MemoryStore::TableMap [private]

Definition at line 124 of file MemoryStore.h.


Constructor & Destructor Documentation

oasys::MemoryStore::MemoryStore ( const char *  logpath  ) 

Definition at line 38 of file MemoryStore.cc.

oasys::MemoryStore::MemoryStore ( const MemoryStore  ) 

oasys::MemoryStore::~MemoryStore (  ) 

Definition at line 43 of file MemoryStore.cc.

References log_info.


Member Function Documentation

MemoryStore& oasys::MemoryStore::operator= ( const MemoryStore  ) 

int oasys::MemoryStore::init ( const StorageConfig cfg  )  [virtual]

Virtual from DurableStoreImpl Initialize MemoryStore

Implements oasys::DurableStoreImpl.

Definition at line 49 of file MemoryStore.cc.

References init_, tables_, and oasys::StorageConfig::tidy_.

int oasys::MemoryStore::get_table ( DurableTableImpl **  table,
const std::string &  name,
int  flags,
PrototypeVector prototypes 
)

Virtual from DurableStoreImpl Initialize MemoryStore

Definition at line 61 of file MemoryStore.cc.

References oasys::DS_CREATE, oasys::DS_EXCL, oasys::DS_EXISTS, oasys::DS_MULTITYPE, oasys::DS_NOTFOUND, oasys::DS_OK, oasys::Logger::logpath_, MemoryTable, and tables_.

int oasys::MemoryStore::del_table ( const std::string &  name  )  [virtual]

Virtual from DurableStoreImpl Initialize MemoryStore

Implements oasys::DurableStoreImpl.

Definition at line 94 of file MemoryStore.cc.

References log_info, and tables_.

int oasys::MemoryStore::get_table_names ( StringVector names  )  [virtual]

Virtual from DurableStoreImpl Initialize MemoryStore

Implements oasys::DurableStoreImpl.

Definition at line 103 of file MemoryStore.cc.

References tables_.

std::string oasys::MemoryStore::get_info (  )  const [virtual]

Virtual from DurableStoreImpl Initialize MemoryStore

Implements oasys::DurableStoreImpl.

Definition at line 117 of file MemoryStore.cc.


Friends And Related Function Documentation

friend class MemoryTable [friend]

Definition at line 96 of file MemoryStore.h.

Referenced by get_table().


Member Data Documentation

bool oasys::MemoryStore::init_ [private]

Initialized?

Definition at line 122 of file MemoryStore.h.

Referenced by init().

TableMap oasys::MemoryStore::tables_ [private]

Definition at line 125 of file MemoryStore.h.

Referenced by del_table(), get_table(), get_table_names(), and init().


The documentation for this class was generated from the following files:
Generated on Sat Sep 8 08:36:26 2007 for DTN Reference Implementation by  doxygen 1.5.3