libmoost
|
#include <file_backed_data_source.hpp>
Public Types | |
typedef DataPolicy::data_type | data_type |
Public Member Functions | |
file_backed_data_source (const DataPolicy &dataPolicy) | |
void | configure (file_backed_data_source_config conf) |
const file_backed_data_source_config & | getConfig () const |
size_t | size () const |
int | getLastLoadTime () const |
void | registerLoadable (boost::shared_ptr< loadable > pOther, bool loadOtherFirst=true) |
boost::shared_ptr< data_type > | get_shared_ptr () |
void | load () |
Private Types | |
typedef std::vector < boost::shared_ptr< loadable > > | registered_t |
Private Member Functions | |
void | reload (file_watcher::file_action action, const std::string &filepath) |
void | loadWithErrorHandling (boost::shared_ptr< data_type > &pData, const std::string &filepath) |
Private Attributes | |
DataPolicy | m_dataPolicy |
file_backed_data_source_config | m_conf |
bool | m_firstLoad |
int | m_lastLoadTime |
file_watcher | m_fileWatcher |
moost::safe_shared_ptr< data_type > | m_pData |
registered_t | m_preRegistered |
registered_t | m_postRegistered |
Definition at line 228 of file file_backed_data_source.hpp.
typedef DataPolicy::data_type moost::io::file_backed_data_source< DataPolicy >::data_type |
Definition at line 232 of file file_backed_data_source.hpp.
typedef std::vector<boost::shared_ptr<loadable> > moost::io::file_backed_data_source< DataPolicy >::registered_t [private] |
Definition at line 296 of file file_backed_data_source.hpp.
moost::io::file_backed_data_source< DataPolicy >::file_backed_data_source | ( | const DataPolicy & | dataPolicy | ) | [inline] |
Definition at line 234 of file file_backed_data_source.hpp.
void moost::io::file_backed_data_source< DataPolicy >::configure | ( | file_backed_data_source_config | conf | ) | [inline] |
Definition at line 237 of file file_backed_data_source.hpp.
boost::shared_ptr<data_type> moost::io::file_backed_data_source< DataPolicy >::get_shared_ptr | ( | ) | [inline] |
Definition at line 266 of file file_backed_data_source.hpp.
const file_backed_data_source_config& moost::io::file_backed_data_source< DataPolicy >::getConfig | ( | ) | const [inline] |
Definition at line 242 of file file_backed_data_source.hpp.
int moost::io::file_backed_data_source< DataPolicy >::getLastLoadTime | ( | ) | const [inline] |
Definition at line 253 of file file_backed_data_source.hpp.
void moost::io::file_backed_data_source< DataPolicy >::load | ( | ) | [inline, virtual] |
Implements moost::io::loadable.
Definition at line 271 of file file_backed_data_source.hpp.
void moost::io::file_backed_data_source< DataPolicy >::loadWithErrorHandling | ( | boost::shared_ptr< data_type > & | pData, |
const std::string & | filepath | ||
) | [inline, private] |
Definition at line 335 of file file_backed_data_source.hpp.
void moost::io::file_backed_data_source< DataPolicy >::registerLoadable | ( | boost::shared_ptr< loadable > | pOther, |
bool | loadOtherFirst = true |
||
) | [inline] |
Definition at line 258 of file file_backed_data_source.hpp.
void moost::io::file_backed_data_source< DataPolicy >::reload | ( | file_watcher::file_action | action, |
const std::string & | filepath | ||
) | [inline, private] |
Definition at line 300 of file file_backed_data_source.hpp.
size_t moost::io::file_backed_data_source< DataPolicy >::size | ( | ) | const [inline] |
Definition at line 247 of file file_backed_data_source.hpp.
file_backed_data_source_config moost::io::file_backed_data_source< DataPolicy >::m_conf [private] |
Definition at line 288 of file file_backed_data_source.hpp.
DataPolicy moost::io::file_backed_data_source< DataPolicy >::m_dataPolicy [private] |
Definition at line 286 of file file_backed_data_source.hpp.
file_watcher moost::io::file_backed_data_source< DataPolicy >::m_fileWatcher [private] |
Definition at line 292 of file file_backed_data_source.hpp.
bool moost::io::file_backed_data_source< DataPolicy >::m_firstLoad [private] |
Definition at line 289 of file file_backed_data_source.hpp.
int moost::io::file_backed_data_source< DataPolicy >::m_lastLoadTime [private] |
Definition at line 290 of file file_backed_data_source.hpp.
moost::safe_shared_ptr<data_type> moost::io::file_backed_data_source< DataPolicy >::m_pData [private] |
Definition at line 294 of file file_backed_data_source.hpp.
registered_t moost::io::file_backed_data_source< DataPolicy >::m_postRegistered [private] |
Definition at line 298 of file file_backed_data_source.hpp.
registered_t moost::io::file_backed_data_source< DataPolicy >::m_preRegistered [private] |
Definition at line 297 of file file_backed_data_source.hpp.