Configuration Class Reference

Singleton to store and manage program settings. More...

#include <Configuration.h>

Inheritance diagram for Configuration:

EventListener Object

List of all members.

Public Member Functions

void processEvent (SDL_Event &event)
 Method to handle events from SDL.
bool isVbo ()
 Getter for Vertex Buffer Object config.
bool isFbo ()
 Getter for Frame Buffer Object config.
GLfloat getFboSampleFactor ()
 Getter for Frame Buffer Object downsampling.
bool isShader ()
 Getter for Shader config.
void setShader (bool shader)
 Getter for shader config.
bool isPause ()
 Getter for Pause.
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.

Static Public Member Functions

static ConfigurationgetInstance ()
 Getter for configuration.

Private Member Functions

 Configuration ()
 The private standard constructor.
 Configuration (const Configuration &source)
 The private copy constructor.
 ~Configuration ()
 The private destructor.

Private Attributes

bool vbo
 Vertexbuffer object config.
bool fbo
 Framebuffer object config.
GLfloat fboSampleFactor
 Framebuffer downsample.
bool shader
 Shader config.
bool pause
 Pause.

Static Private Attributes

static Configurationinstance = 0
 The singleton instance.


Detailed Description

Singleton to store and manage program settings.

This object may be used for 'global' variables that influence the program in a major capacity.


Constructor & Destructor Documentation

Configuration::Configuration (  )  [private]

The private standard constructor.

TEMP!!!!
Global variable switches

Configuration::Configuration ( const Configuration source  )  [private]

The private copy constructor.

Does nothing, may never be called.

Configuration::~Configuration (  )  [private]

The private destructor.

Does nothing.


Member Function Documentation

Configuration * Configuration::getInstance (  )  [static]

Getter for configuration.

Creates the singleton instance if there isn't any.

void Configuration::processEvent ( SDL_Event &  event  )  [virtual]

Method to handle events from SDL.

Parameters:
event The SDL Event to be evaluated

Implements EventListener.

bool Configuration::isVbo (  ) 

Getter for Vertex Buffer Object config.

Returns:
True, if Vertex Buffer Objects shall be used, false otherwise

bool Configuration::isFbo (  ) 

Getter for Frame Buffer Object config.

Returns:
True, if Frame Buffer Objects shall be used, false otherwise

GLfloat Configuration::getFboSampleFactor (  ) 

Getter for Frame Buffer Object downsampling.

bool Configuration::isShader (  ) 

Getter for Shader config.

Returns:
True, if Shader Programms shall be used, false otherwise

void Configuration::setShader ( bool  shader  ) 

Getter for shader config.

bool Configuration::isPause (  ) 

Getter for Pause.

Returns:
True, if pause mode shall be activated, false otherwise

string Configuration::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Implements EventListener.

string Configuration::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Implements EventListener.

enum classId Configuration::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Implements EventListener.


Member Data Documentation

Configuration * Configuration::instance = 0 [static, private]

The singleton instance.

The sole instance of this object.

bool Configuration::vbo [private]

Vertexbuffer object config.

bool Configuration::fbo [private]

Framebuffer object config.

GLfloat Configuration::fboSampleFactor [private]

Framebuffer downsample.

bool Configuration::shader [private]

Shader config.

bool Configuration::pause [private]

Pause.


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

Generated on Mon Jul 7 13:30:33 2008 for Firefly by  doxygen 1.5.6