eng_settings.hh

Go to the documentation of this file.
00001 /*
00014  * LEGAL:   COPYRIGHT (C) 2007 JIM E. BROOKS
00015  *          THIS SOURCE CODE IS RELEASED UNDER THE TERMS
00016  *          OF THE GNU GENERAL PUBLIC LICENSE VERSION 2 (GPL 2).
00017  *****************************************************************************/
00018 
00019 #ifndef ENG_SETTINGS_HH
00020 #define ENG_SETTINGS_HH 1
00021 
00022 namespace eng {
00023 
00027 class Settings
00028 {
00029 private:
00037     class SettingsConfReader : public ConfReader
00038     {
00039     public:
00040         void ProcessField( string& field, ifstream& conf );
00041     };
00042 
00043 public:
00044     Settings( void );
00045 
00046     SettingsConfReader  mSettingsConfReader;
00047 
00048     uint    mThreads;           
00049     fp      mObjectVolumeScale;
00050 };
00051 
00052 ostream& operator<<( ostream& strm, const Settings& settings );
00053 
00054 #if ENG_SETTINGS_CC
00055 Settings gSettings;
00056 #else
00057 extern Settings gSettings;
00058 #endif
00059 
00060 } // namespace eng
00061 
00062 #endif // ENG_SETTINGS_HH
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:09 2007