![]() |
PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
|
Manager loading from / saving to a file. More...
Manager loading from / saving to a file.
Definition at line 69 of file PureFiledManager.h.
#include <PureFiledManager.h>
Classes | |
class | PureFiledManagerImpl |
Public Member Functions | |
PureFiledManager () | |
virtual | ~PureFiledManager () |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
PureFiledManaged * | getByFilename (const char *filename) const |
Gets the FiledManaged by the specified filename. | |
virtual PureFiledManaged * | createFromFile (const char *filename) |
Should create a new managed from the given file. | |
void | WriteList () const |
From PureManager, adding logging file names. | |
![]() | |
PureManager () | |
virtual | ~PureManager () |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
TPureInt | getCount () const |
Gets the number of managed objects. | |
TPureBool | isEmpty () const |
Is the number of manageds 0? | |
TPureInt | getSize () const |
Gets the number of allocated slots for managed objects; getSize() >= getCount(). | |
PureManaged * | getAttachedAt (TPureInt ind) const |
Gets the pointer to the managed at the given index. | |
TPureInt | getAttachedIndex (const PureManaged &m) const |
Gets the index of the given managed. | |
void | PreAlloc (TPureInt count) |
Allocates count free slots for manageds. | |
TPureBool | hasAttached (const PureManaged &m) const |
Gets whether the given managed is managed by this manager. | |
virtual void | Attach (PureManaged &m) |
Adds the given managed to the manager, if the managed has no manager yet. | |
virtual void | Detach (PureManaged &m) |
Removes the given managed from the manager, so the managed will have no manager. | |
void | DeleteAttachedInstance (PureManaged &m) |
Removes the given managed from the manager and destructs it. | |
void | DeleteAll () |
Removes and destructs every managed element in the manager. | |
virtual void | HandleManagedPropertyChanged (PureManaged &m) |
Should be invoked when a managed's property got changed from a different kind of manager or managed. | |
virtual TPureUInt | getUsedSystemMemory () const |
Gets the amount of allocated system memory for all manageds owner by this manager. | |
Static Public Member Functions | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
![]() | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
Protected Member Functions | |
PureFiledManager (const PureFiledManager &) | |
PureFiledManager & | operator= (const PureFiledManager &) |
virtual void | WriteListCallback (const PureManaged &mngd) const |
From PureManager, printing filename. | |
![]() | |
PureManager (const PureManager &other) | |
PureManager & | operator= (const PureManager &) |
Private Attributes | |
PureFiledManagerImpl * | pImpl |
PureFiledManager::PureFiledManager | ( | ) |
Definition at line 321 of file PureFiledManager.cpp.
|
virtual |
Definition at line 327 of file PureFiledManager.cpp.
|
protected |
Definition at line 398 of file PureFiledManager.cpp.
|
virtual |
Should create a new managed from the given file.
This should be overrid in the descendant.
Reimplemented in PureImageManager, PureMesh3DManager, PureObject3DManager, and PureTextureManager.
Definition at line 376 of file PureFiledManager.cpp.
PureFiledManaged * PureFiledManager::getByFilename | ( | const char * | filename | ) | const |
Gets the FiledManaged by the specified filename.
Definition at line 364 of file PureFiledManager.cpp.
CConsole & PureFiledManager::getConsole | ( | ) | const |
Returns access to console preset with logger module name as this class.
Intentionally not virtual, so the getConsole() in derived class should hide this instead of overriding.
Definition at line 340 of file PureFiledManager.cpp.
|
static |
Returns the logger module name of this class.
Intentionally not virtual, so derived class should hide this instead of overriding. Not even private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.
Definition at line 353 of file PureFiledManager.cpp.
|
protected |
Definition at line 404 of file PureFiledManager.cpp.
|
virtual |
From PureManager, adding logging file names.
Reimplemented from PureManager.
Reimplemented in PureImageManager, PureMaterialManager, PureMesh3DManager, PureObject3DManager, and PureTextureManager.
Definition at line 385 of file PureFiledManager.cpp.
|
protectedvirtual |
From PureManager, printing filename.
Reimplemented from PureManager.
Reimplemented in PureImageManager, PureMaterialManager, PureMesh3DManager, PureObject3DManager, and PureTextureManager.
Definition at line 413 of file PureFiledManager.cpp.
|
private |
Definition at line 103 of file PureFiledManager.h.