// =================================================================== // $Id: environ.h,v 1.1 2004/02/16 14:46:00 bittner Exp $ // // environ.h // Header file for environment operations, i.e.. reading // environment file, reading command line parameters etc. // // Class: CEnvironment // /// Initial coding by /// @author Tomas Kopal #ifndef __ENVIRONMENT_H__ #define __ENVIRONMENT_H__ // forward declarations #include "common.h" namespace GtpVisibilityPreprocessor { class Vector3; /// Enumeration type used to distinguish the type of the environment variable enum EOptType { /// the integer variable optInt, /// the Real variable optFloat, /// the bool variable optBool, /// the vector variable optVector, /// the string variable optString }; class COption { public: COption() { name = NULL; value = NULL; abbrev = NULL; defaultValue = NULL; description = NULL; pointer = NULL; } virtual ~COption() { if (name) delete name; if (value) delete value; if (abbrev) delete abbrev; if (defaultValue) delete defaultValue; if (description) delete description; } EOptType type; char *name; char *value; char *abbrev; char *defaultValue; char *description; void *pointer; friend ostream &operator <<(ostream &s, const COption &o) { s<