Pol  Revision:cb584c9
Pol::Module::DataStoreFile Class Reference

#include <datastoreimp.h>

Public Member Functions

 DataStoreFile (Clib::ConfigElem &elem)
 
 DataStoreFile (const std::string &descriptor, const Plib::Package *pkg, const std::string &name, int flags)
 
virtual ~DataStoreFile ()
 
size_t estimateSize () const
 
std::string filename () const
 
std::string filename (unsigned ver) const
 
void load ()
 
bool loaded () const
 
void printOn (Clib::StreamWriter &sw) const
 
void save () const
 

Public Attributes

unsigned delversion
 
std::string descriptor
 
DataFileContentsRef dfcontents
 
int flags
 
std::string name
 
unsigned oldversion
 
const Plib::Packagepkg
 
std::string pkgname
 
bool unload
 
unsigned version
 

Detailed Description

Definition at line 125 of file datastoreimp.h.

Constructor & Destructor Documentation

Pol::Module::DataStoreFile::DataStoreFile ( Clib::ConfigElem elem)
explicit

Definition at line 578 of file datastore.cpp.

Pol::Module::DataStoreFile::DataStoreFile ( const std::string &  descriptor,
const Plib::Package pkg,
const std::string &  name,
int  flags 
)

Definition at line 591 of file datastore.cpp.

References Pol::Plib::Package::name(), and pkgname.

Pol::Module::DataStoreFile::~DataStoreFile ( )
virtual

Definition at line 632 of file datastore.cpp.

References ref_ptr< T >::clear(), and dfcontents.

Member Function Documentation

size_t Pol::Module::DataStoreFile::estimateSize ( ) const

Definition at line 675 of file datastore.cpp.

References descriptor, dfcontents, ref_ptr< T >::get(), name, and pkgname.

std::string Pol::Module::DataStoreFile::filename ( ) const

Definition at line 662 of file datastore.cpp.

References version.

Referenced by Pol::Module::commit_datastore(), load(), and save().

std::string Pol::Module::DataStoreFile::filename ( unsigned  ver) const
void Pol::Module::DataStoreFile::load ( )
bool Pol::Module::DataStoreFile::loaded ( ) const

Definition at line 607 of file datastore.cpp.

References dfcontents, and ref_ptr< T >::get().

Referenced by load(), and Pol::Module::DataFileExecutorModule::mf_OpenDataFile().

void Pol::Module::DataStoreFile::printOn ( Clib::StreamWriter sw) const

Definition at line 637 of file datastore.cpp.

References descriptor, flags, name, oldversion, pkgname, and version.

Referenced by Pol::Module::write_datastore().

void Pol::Module::DataStoreFile::save ( ) const

Definition at line 667 of file datastore.cpp.

References dfcontents, and filename().

Referenced by Pol::Module::write_datastore().

Member Data Documentation

unsigned Pol::Module::DataStoreFile::delversion

Definition at line 150 of file datastoreimp.h.

Referenced by Pol::Module::commit_datastore(), and Pol::Module::write_datastore().

std::string Pol::Module::DataStoreFile::descriptor
int Pol::Module::DataStoreFile::flags

Definition at line 147 of file datastoreimp.h.

Referenced by Pol::Module::DataFileContents::load(), and printOn().

std::string Pol::Module::DataStoreFile::name
unsigned Pol::Module::DataStoreFile::oldversion
const Plib::Package* Pol::Module::DataStoreFile::pkg

Definition at line 144 of file datastoreimp.h.

Referenced by filename().

std::string Pol::Module::DataStoreFile::pkgname
bool Pol::Module::DataStoreFile::unload
unsigned Pol::Module::DataStoreFile::version

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