coolray.org FAQ Contact Us
CoolRay Banner
CoolRay / Documentation
Main Page   Class Hierarchy   Compound List   Compound Members   Related Pages  

Settings Class Reference

The Settings serves as single point for all configuration information. More...

#include <Settings.h>

Collaboration diagram for Settings:

Collaboration graph
[legend]
List of all members.

Public Methods

 Settings ()
 ~Settings ()
int loadConfig (const char *szIniFile)
 Load configuration. More...

int getThreads ()const
 Get the number of RenderThreads a RenderJob should distribute it's calculations.


Public Attributes

vector<string> m_TexturePaths
vector<string> m_FontPaths
vector<string> m_LibraryPaths

Static Public Methods

Settings* getInstance ()

Protected Methods

int loadConfig (istream &is)
void parseKey (int line,const string &key,const string &value)

Detailed Description

The Settings serves as single point for all configuration information.

It implements the singleton pattern.


Member Function Documentation

int Settings::loadConfig ( const char * szIniFile )
 

Load configuration.

@szIniFile configuration filename

Returns:
0 ok -1 error (file not found) -2 syntax error


The documentation for this class was generated from the following file:
  • Settings.h
You are visitor No.

counter

Copyright (c) 2001 Stefan Michel, All Rights Reserved.
Last modified: