|
Pol
Revision:cb584c9
|
#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::Package * | pkg |
| std::string | pkgname |
| bool | unload |
| unsigned | version |
Definition at line 125 of file datastoreimp.h.
|
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.
|
virtual |
Definition at line 632 of file datastore.cpp.
References ref_ptr< T >::clear(), and dfcontents.
| 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 |
Definition at line 653 of file datastore.cpp.
References Pol::Plib::SystemState::config, Pol::Plib::Package::name(), name, pkg, Pol::Plib::systemstate, Pol::Clib::tostring(), and Pol::Core::PolConfig::world_data_path.
| void Pol::Module::DataStoreFile::load | ( | ) |
Definition at line 612 of file datastore.cpp.
References dfcontents, Pol::Clib::FileExists(), filename(), loaded(), and ref_ptr< T >::set().
Referenced by Pol::Module::DataFileExecutorModule::mf_OpenDataFile().
| 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().
| 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 |
Definition at line 140 of file datastoreimp.h.
Referenced by estimateSize(), Pol::Module::DataFileExecutorModule::mf_ListDataFiles(), printOn(), and Pol::Module::read_datastore_dat().
| DataFileContentsRef Pol::Module::DataStoreFile::dfcontents |
Definition at line 152 of file datastoreimp.h.
Referenced by Pol::Module::commit_datastore(), estimateSize(), load(), loaded(), Pol::Module::DataFileExecutorModule::mf_OpenDataFile(), save(), Pol::Module::write_datastore(), and ~DataStoreFile().
| 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 |
Definition at line 141 of file datastoreimp.h.
Referenced by estimateSize(), filename(), Pol::Module::DataFileExecutorModule::mf_ListDataFiles(), and printOn().
| unsigned Pol::Module::DataStoreFile::oldversion |
Definition at line 146 of file datastoreimp.h.
Referenced by Pol::Module::commit_datastore(), printOn(), and Pol::Module::write_datastore().
| const Plib::Package* Pol::Module::DataStoreFile::pkg |
Definition at line 144 of file datastoreimp.h.
Referenced by filename().
| std::string Pol::Module::DataStoreFile::pkgname |
Definition at line 143 of file datastoreimp.h.
Referenced by DataStoreFile(), estimateSize(), Pol::Module::DataFileExecutorModule::mf_ListDataFiles(), and printOn().
| bool Pol::Module::DataStoreFile::unload |
Definition at line 148 of file datastoreimp.h.
Referenced by Pol::Module::commit_datastore(), and Pol::Module::DataFileExecutorModule::mf_UnloadDataFile().
| unsigned Pol::Module::DataStoreFile::version |
Definition at line 145 of file datastoreimp.h.
Referenced by Pol::Module::commit_datastore(), filename(), printOn(), and Pol::Module::write_datastore().