#include <CeylanLoadable.h>
Public Member Functions | |
Loadable (const std::string &contentFilePath) | |
Creates a new loadable instance, whose content file is designated by the specified filename, but does not load anything. | |
virtual | ~Loadable () throw () |
Virtual destructor. | |
virtual bool | load ()=0 |
Loads the content of this instance from file. | |
virtual bool | unload ()=0 |
Unloads the content of this instance. | |
virtual const std::string & | getContentPath () const |
Returns the path to the associated content file. | |
Protected Attributes | |
std::string | _contentPath |
The path to the file used for content loading. | |
Private Member Functions | |
Loadable (const Loadable &source) | |
Copy constructor made private to ensure that it will never be called. | |
Loadable & | operator= (const Loadable &source) |
Assignment operator made private to ensure that it will never be called. |
testCeylanLoadable.cc
Definition at line 89 of file CeylanLoadable.h.
Loadable::Loadable | ( | const std::string & | contentFilePath | ) | [explicit] |
Creates a new loadable instance, whose content file is designated by the specified filename, but does not load anything.
contentFilePath | the path to the file storing the content to be loaded. |
LoadableException | if the operation failed. |
Definition at line 55 of file CeylanLoadable.cc.
Loadable::~Loadable | ( | ) | throw () [virtual] |
Ceylan::Loadable::Loadable | ( | const Loadable & | source | ) | [private] |
Copy constructor made private to ensure that it will never be called.
The compiler should complain whenever this undefined constructor is called, implicitly or not.
const std::string & Loadable::getContentPath | ( | ) | const [virtual] |
Returns the path to the associated content file.
Definition at line 70 of file CeylanLoadable.cc.
References _contentPath.
virtual bool Ceylan::Loadable::load | ( | ) | [pure virtual] |
Loads the content of this instance from file.
LoadableException | whenever the loading fails. |
Implemented in Ceylan::LoadableWithContent< Content >.
Assignment operator made private to ensure that it will never be called.
The compiler should complain whenever this undefined operator is called, implicitly or not.
virtual bool Ceylan::Loadable::unload | ( | ) | [pure virtual] |
Unloads the content of this instance.
LoadableException | whenever the unloading fails. |
Implemented in Ceylan::LoadableWithContent< Content >.
std::string Ceylan::Loadable::_contentPath [protected] |
The path to the file used for content loading.
Definition at line 153 of file CeylanLoadable.h.
Referenced by getContentPath().