NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
AppEnvironment Class Reference

#include <AppEnvironment.h>

Inherits Environment.

Public Member Functions

 AppEnvironment ()
 Constructor. More...
 
virtual void RegisterOptions ()
 Registers all necessary environment variables. More...
 
- Public Member Functions inherited from Environment
virtual void PrintUsage (ostream &s) const
 
virtual void SetStaticOptions ()
 
void RegisterOption (const char *name, const OptionType type, const char *abbrev, const char *defValue=NULL)
 
void SetInt (const char *name, const int value)
 
void SetFloat (const char *name, const float value)
 
void SetBool (const char *name, const bool value)
 
void SetString (const char *name, const char *value)
 
bool GetBool (const char *name, const bool isFatal=false) const
 
int GetInt (const char *name, const bool isFatal=false) const
 
float GetFloat (const char *name, const bool isFatal=false) const
 
double GetDouble (const char *name, const bool isFatal=false) const
 
bool GetIntValue (const char *name, int &value, const bool isFatal=false) const
 
bool GetDoubleValue (const char *name, double &value, const bool isFatal=false) const
 
bool GetFloatValue (const char *name, float &value, const bool isFatal=false) const
 
bool GetBoolValue (const char *name, bool &value, const bool isFatal=false) const
 
bool GetStringValue (const char *name, char *value, const bool isFatal=false) const
 
bool GetStringValue (const char *name, string &value, const bool isFatal=false) const
 
bool CheckForSwitch (const int argc, char **argv, const char swtch) const
 
void ReadCmdlineParams (const int argc, char **argv, const char *optParams)
 
bool ReadEnvFile (const char *filename)
 
void ParseCmdline (const int argc, char **argv, const int index)
 
int GetParamNum () const
 
bool GetParam (const char name, const int index, char *value) const
 
 Environment ()
 
virtual ~Environment ()
 
bool OptionPresent (const char *name) const
 

Additional Inherited Members

- Static Public Member Functions inherited from Environment
static EnvironmentGetSingleton ()
 
static void SetSingleton (Environment *e)
 
static void DeleteSingleton ()
 
- Static Public Attributes inherited from Environment
static EnvironmentmEnvironment = NULL
 

Detailed Description

Definition at line 41 of file AppEnvironment.h.

Constructor & Destructor Documentation

AppEnvironment::AppEnvironment ( )
inline

Constructor.

Definition at line 47 of file AppEnvironment.h.

Member Function Documentation

void AppEnvironment::RegisterOptions ( )
virtual

Registers all necessary environment variables.

Returns
None.

Definition at line 39 of file AppEnvironment.cpp.


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