Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::Application::BaseRoot Class Reference

Program root. More...

#include <BaseRoot.h>

List of all members.

Public Methods

 BaseRoot ()
virtual ~BaseRoot ()
void start (int argc, char **argv)
virtual void setDefaultOptions ()
virtual void parseOptions ()
int getScreenWidth ()
int getScreenHeight ()
Options & getScreenOptions ()
Options & getAudioOptions ()
bool hasOpt (char *key)
const char * getOptString (char *key)
int getOptInt (char *key)
float getOptFloat (char *key)
const char * getArg (int i)

Protected Attributes

int argc
char ** argv
Options screen_options
Options audio_options
int screen_width
int screen_height


Detailed Description

Program root.

Definition at line 38 of file BaseRoot.h.


Constructor & Destructor Documentation

Teddy::Application::BaseRoot::BaseRoot  
 

Definition at line 52 of file BaseRoot.cpp.

Teddy::Application::BaseRoot::~BaseRoot   [virtual]
 

Definition at line 56 of file BaseRoot.cpp.


Member Function Documentation

const char * Teddy::Application::BaseRoot::getArg int    i
 

Definition at line 226 of file BaseRoot.cpp.

References argc, and argv.

Options & Teddy::Application::BaseRoot::getAudioOptions  
 

Definition at line 177 of file BaseRoot.cpp.

References audio_options.

float Teddy::Application::BaseRoot::getOptFloat char *    key
 

Definition at line 213 of file BaseRoot.cpp.

References argc, and argv.

int Teddy::Application::BaseRoot::getOptInt char *    key
 

Definition at line 200 of file BaseRoot.cpp.

References argc, and argv.

Referenced by parseOptions.

const char * Teddy::Application::BaseRoot::getOptString char *    key
 

Definition at line 187 of file BaseRoot.cpp.

References argc, and argv.

int Teddy::Application::BaseRoot::getScreenHeight  
 

Definition at line 246 of file BaseRoot.cpp.

References screen_height.

Options & Teddy::Application::BaseRoot::getScreenOptions  
 

Definition at line 182 of file BaseRoot.cpp.

References screen_options.

int Teddy::Application::BaseRoot::getScreenWidth  
 

Definition at line 241 of file BaseRoot.cpp.

References screen_width.

bool Teddy::Application::BaseRoot::hasOpt char *    key
 

Definition at line 231 of file BaseRoot.cpp.

References argc, and argv.

Referenced by parseOptions, and start.

void Teddy::Application::BaseRoot::parseOptions   [virtual]
 

Definition at line 120 of file BaseRoot.cpp.

References audio_options, Teddy::SysSupport::disable_msg, Teddy::SysSupport::enable_msg, getOptInt, hasOpt, Teddy::SysSupport::M_AUDIO, Teddy::SysSupport::M_FFE, Teddy::SysSupport::M_GL, Teddy::SysSupport::M_INIT, Teddy::SysSupport::M_LWO, Teddy::SysSupport::M_LWS, Teddy::SysSupport::M_MAT, Teddy::SysSupport::M_MOD, Teddy::SysSupport::M_NET, Teddy::SysSupport::M_SCN, Teddy::SysSupport::M_TMAP, Teddy::SysSupport::M_VERT, Teddy::SysSupport::M_WM, Teddy::SysSupport::M_WMD, Teddy::SysSupport::M_WME, Teddy::SysSupport::M_WML, screen_height, screen_options, and screen_width.

Referenced by start.

void Teddy::Application::BaseRoot::setDefaultOptions   [virtual]
 

Definition at line 106 of file BaseRoot.cpp.

References audio_options, screen_height, screen_options, and screen_width.

Referenced by start.

void Teddy::Application::BaseRoot::start int    argc,
char **    argv
 

Definition at line 60 of file BaseRoot.cpp.

References argc, argv, Teddy::SysSupport::fmsg, hasOpt, Teddy::Graphics::View::init, Teddy::Materials::Material::init, Teddy::SysSupport::init_msg, Teddy::SysSupport::M_FATAL, MSG_HEAD, parseOptions, and setDefaultOptions.


Member Data Documentation

int Teddy::Application::BaseRoot::argc [protected]
 

Definition at line 58 of file BaseRoot.h.

Referenced by getArg, getOptFloat, getOptInt, getOptString, hasOpt, and start.

char** Teddy::Application::BaseRoot::argv [protected]
 

Definition at line 59 of file BaseRoot.h.

Referenced by getArg, getOptFloat, getOptInt, getOptString, hasOpt, and start.

Options Teddy::Application::BaseRoot::audio_options [protected]
 

Definition at line 61 of file BaseRoot.h.

Referenced by getAudioOptions, parseOptions, and setDefaultOptions.

int Teddy::Application::BaseRoot::screen_height [protected]
 

Definition at line 63 of file BaseRoot.h.

Referenced by getScreenHeight, parseOptions, and setDefaultOptions.

Options Teddy::Application::BaseRoot::screen_options [protected]
 

Definition at line 60 of file BaseRoot.h.

Referenced by getScreenOptions, parseOptions, and setDefaultOptions.

int Teddy::Application::BaseRoot::screen_width [protected]
 

Definition at line 62 of file BaseRoot.h.

Referenced by getScreenWidth, parseOptions, and setDefaultOptions.


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