PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureFiledManager Class Reference

Manager loading from / saving to a file. More...

Detailed Description

Manager loading from / saving to a file.

Definition at line 69 of file PureFiledManager.h.

#include <PureFiledManager.h>

+ Inheritance diagram for PureFiledManager:

Classes

class  PureFiledManagerImpl
 

Public Member Functions

 PureFiledManager ()
 
virtual ~PureFiledManager ()
 
CConsole & getConsole () const
 Returns access to console preset with logger module name as this class.
 
PureFiledManagedgetByFilename (const char *filename) const
 Gets the FiledManaged by the specified filename.
 
virtual PureFiledManagedcreateFromFile (const char *filename)
 Should create a new managed from the given file.
 
void WriteList () const
 From PureManager, adding logging file names.
 
- Public Member Functions inherited from PureManager
 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().
 
PureManagedgetAttachedAt (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 Public Member Functions inherited from PureManager
static const char * getLoggerModuleName ()
 Returns the logger module name of this class.
 

Protected Member Functions

 PureFiledManager (const PureFiledManager &)
 
PureFiledManageroperator= (const PureFiledManager &)
 
virtual void WriteListCallback (const PureManaged &mngd) const
 From PureManager, printing filename.
 
- Protected Member Functions inherited from PureManager
 PureManager (const PureManager &other)
 
PureManageroperator= (const PureManager &)
 

Private Attributes

PureFiledManagerImplpImpl
 

Constructor & Destructor Documentation

◆ PureFiledManager() [1/2]

PureFiledManager::PureFiledManager ( )

Definition at line 321 of file PureFiledManager.cpp.

◆ ~PureFiledManager()

PureFiledManager::~PureFiledManager ( )
virtual

Definition at line 327 of file PureFiledManager.cpp.

◆ PureFiledManager() [2/2]

PureFiledManager::PureFiledManager ( const PureFiledManager & )
protected

Definition at line 398 of file PureFiledManager.cpp.

Member Function Documentation

◆ createFromFile()

PureFiledManaged * PureFiledManager::createFromFile ( const char * filename)
virtual

Should create a new managed from the given file.

This should be overrid in the descendant.

Returns
Always PGENULL. Descendant is responsible for proper implementation.

Reimplemented in PureImageManager, PureMesh3DManager, PureObject3DManager, and PureTextureManager.

Definition at line 376 of file PureFiledManager.cpp.

◆ getByFilename()

PureFiledManaged * PureFiledManager::getByFilename ( const char * filename) const

Gets the FiledManaged by the specified filename.

Returns
FiledManaged instance found by filename, or PGENULL if not found.

Definition at line 364 of file PureFiledManager.cpp.

◆ getConsole()

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.

Returns
Console instance used by this class.

Definition at line 340 of file PureFiledManager.cpp.

◆ getLoggerModuleName()

const char * PureFiledManager::getLoggerModuleName ( )
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.

Returns
The logger module name of this class.

Definition at line 353 of file PureFiledManager.cpp.

◆ operator=()

PureFiledManager & PureFiledManager::operator= ( const PureFiledManager & )
protected

Definition at line 404 of file PureFiledManager.cpp.

◆ WriteList()

void PureFiledManager::WriteList ( ) const
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.

◆ WriteListCallback()

void PureFiledManager::WriteListCallback ( const PureManaged & mngd) const
protectedvirtual

From PureManager, printing filename.

Reimplemented from PureManager.

Reimplemented in PureImageManager, PureMaterialManager, PureMesh3DManager, PureObject3DManager, and PureTextureManager.

Definition at line 413 of file PureFiledManager.cpp.

Member Data Documentation

◆ pImpl

PureFiledManagerImpl* PureFiledManager::pImpl
private

Definition at line 103 of file PureFiledManager.h.


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