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

Managed loaded from / saved to a file. More...

Detailed Description

Managed loaded from / saved to a file.

Definition at line 26 of file PureFiledManager.h.

#include <PureFiledManager.h>

+ Inheritance diagram for PureFiledManaged:

Classes

class  PureFiledManagedImpl
 Managed loaded from / saved to a file. More...
 

Public Member Functions

 PureFiledManaged ()
 
virtual ~PureFiledManaged ()
 
CConsole & getManagedConsole () const
 Returns access to console preset with logger module name as this class.
 
virtual TPureUInt getUsedSystemMemory () const
 Gets the amount of allocated system memory for this managed.
 
const std::string & getFilename () const
 Gets the filename.
 
- Public Member Functions inherited from PureManaged
 PureManaged ()
 
virtual ~PureManaged ()
 
CConsole & getManagedConsole () const
 Returns access to console preset with logger module name as this class.
 
const PureManagedgetUtiliser () const
 Returns the managed that utilizes this managed.
 
PureManagedgetUtiliser ()
 Returns the managed that utilizes this managed.
 
void SetUtiliser (PureManaged *pUtiliser)
 Sets the managed that utilizes this managed.
 
void DetachFrom ()
 Removes the managed from its manager.
 
PureManagergetManager () const
 Gets the manager of the managed.
 
const std::string & getName () const
 Gets the name.
 
void SetName (const std::string &name)
 Sets the name.
 
virtual void FlushResources ()
 This can be used if the specialized managed object has some resources that may be released from memory when not needed anymore.
 

Static Public Member Functions

static const char * getLoggerModuleName ()
 Returns the logger module name of this class.
 
- Static Public Member Functions inherited from PureManaged
static const char * getLoggerModuleName ()
 Returns the logger module name of this class.
 

Protected Member Functions

 PureFiledManaged (const PureFiledManaged &other)
 
PureFiledManagedoperator= (const PureFiledManaged &other)
 
void SetFilename (const std::string &filename)
 Sets the filename.
 
- Protected Member Functions inherited from PureManaged
 PureManaged (const PureManaged &other)
 
PureManagedoperator= (const PureManaged &other)
 

Private Attributes

PureFiledManagedImplpImpl
 

Constructor & Destructor Documentation

◆ PureFiledManaged() [1/2]

PureFiledManaged::PureFiledManaged ( )
Exceptions
std::bad_alloc- This class or its ancestor dynamically allocates memory with operator new, in case of failure the exception is not handled but propagated to caller.

Definition at line 120 of file PureFiledManager.cpp.

◆ ~PureFiledManaged()

PureFiledManaged::~PureFiledManaged ( )
virtual

Definition at line 126 of file PureFiledManager.cpp.

◆ PureFiledManaged() [2/2]

PureFiledManaged::PureFiledManaged ( const PureFiledManaged & other)
protected
Exceptions
std::bad_alloc- This class or its ancestor dynamically allocates memory with operator new, in case of failure the exception is not handled but propagated to caller.

Definition at line 187 of file PureFiledManager.cpp.

Member Function Documentation

◆ getFilename()

const string & PureFiledManaged::getFilename ( ) const

Gets the filename.

Returns
Gets the filename set during initialization.

Definition at line 175 of file PureFiledManager.cpp.

◆ getLoggerModuleName()

const char * PureFiledManaged::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 152 of file PureFiledManager.cpp.

◆ getManagedConsole()

CConsole & PureFiledManaged::getManagedConsole ( ) 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 139 of file PureFiledManager.cpp.

◆ getUsedSystemMemory()

TPureUInt PureFiledManaged::getUsedSystemMemory ( ) const
virtual

Gets the amount of allocated system memory for this managed.

Returns
Amount of used system memory in Bytes.

Reimplemented from PureManaged.

Reimplemented in PureImage, PureMaterial, PureMesh3D, PureObject3D, PureTexture, and PureVertexTransfer.

Definition at line 163 of file PureFiledManager.cpp.

◆ operator=()

PureFiledManaged & PureFiledManaged::operator= ( const PureFiledManaged & other)
protected

Definition at line 194 of file PureFiledManager.cpp.

◆ SetFilename()

void PureFiledManaged::SetFilename ( const std::string & filename)
protected

Sets the filename.

Definition at line 204 of file PureFiledManager.cpp.

Member Data Documentation

◆ pImpl

PureFiledManagedImpl* PureFiledManaged::pImpl
private

Definition at line 61 of file PureFiledManager.h.


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