[Avida-cvs] [avida3-svn] r45 - trunk

kaben@myxo.css.msu.edu kaben at myxo.css.msu.edu
Sat Apr 8 23:37:20 PDT 2006


Author: kaben
Date: 2006-04-09 02:37:20 -0400 (Sun, 09 Apr 2006)
New Revision: 45

Added:
   trunk/cConfigOverrides.h
Log:

Added default cConfigOverrides.h file.



Added: trunk/cConfigOverrides.h
===================================================================
--- trunk/cConfigOverrides.h	2006-04-09 06:36:49 UTC (rev 44)
+++ trunk/cConfigOverrides.h	2006-04-09 06:37:20 UTC (rev 45)
@@ -0,0 +1,260 @@
+/****************************************************************************
+ * This is an automatically generated file.  This file will overide any     *
+ * values set by the user at runtime.  When Avida is compiled using these   *
+ * overides, it will reduce the flexibility of the user, but will increase  *
+ * the speed at which Avida runs.                                           *
+ *                                                                          *
+ * To use this file, include the compiler option -DOVERIDE_CONFIGS          *
+ ***************************************************************************/
+
+/**********************************************
+ * Group: TEST_GROUP
+ * Description: This is my test group.
+ **********************************************/
+
+class cGroup_TEST_GROUP : public cBaseConfigGroup {
+public:
+  cGroup_TEST_GROUP()
+    : cBaseConfigGroup("TEST_GROUP", "This is my test group.") { ; }
+};
+tConfigGroupInstantiator<cGroup_TEST_GROUP > TEST_GROUP;
+
+// Entry: TEST_VAR
+// Description: decription
+class cEntry_TEST_VAR : public cBaseConfigEntry {
+private:
+  int value;
+public:
+  typedef int entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_TEST_VAR() : cBaseConfigEntry("TEST_VAR", "int", "17", "decription") {
+    LoadString(GetDefault());
+  }
+  int Get() const { return 17; }
+  void Set(int in_value) { cerr << "ERROR: resetting value for constant setting 'TEST_VAR'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_TEST_VAR> TEST_VAR;
+
+// Entry: TEST_VAR2
+// Description: decription2
+class cEntry_TEST_VAR2 : public cBaseConfigEntry {
+private:
+  int value;
+public:
+  typedef int entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_TEST_VAR2() : cBaseConfigEntry("TEST_VAR2", "int", "91", "decription2") {
+    LoadString(GetDefault());
+  }
+  int Get() const { return 91; }
+  void Set(int in_value) { cerr << "ERROR: resetting value for constant setting 'TEST_VAR2'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_TEST_VAR2> TEST_VAR2;
+
+
+/**********************************************
+ * Group: WEIRDO_FUNCTION_GROUP
+ * Description: This is a group where particularly odd functions are placed.
+It also has two lines in its desciption.
+ **********************************************/
+
+class cGroup_WEIRDO_FUNCTION_GROUP : public cBaseConfigGroup {
+public:
+  cGroup_WEIRDO_FUNCTION_GROUP()
+    : cBaseConfigGroup("WEIRDO_FUNCTION_GROUP", "This is a group where particularly odd functions are placed.\nIt also has two lines in its desciption.") { ; }
+};
+tConfigGroupInstantiator<cGroup_WEIRDO_FUNCTION_GROUP > WEIRDO_FUNCTION_GROUP;
+
+// Entry: NUM_NOSES
+// Description: How many noses should an org have?
+class cEntry_NUM_NOSES : public cBaseConfigEntry {
+private:
+  int value;
+public:
+  typedef int entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_NUM_NOSES() : cBaseConfigEntry("NUM_NOSES", "int", "42", "How many noses should an org have?") {
+    LoadString(GetDefault());
+  }
+  int Get() const { return 42; }
+  void Set(int in_value) { cerr << "ERROR: resetting value for constant setting 'NUM_NOSES'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_NUM_NOSES> NUM_NOSES;
+
+// Entry: DEFAULT_DOG_NAME
+// Description: What should we call the pets?
+class cEntry_DEFAULT_DOG_NAME : public cBaseConfigEntry {
+private:
+  cString value;
+public:
+  typedef cString entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_DEFAULT_DOG_NAME() : cBaseConfigEntry("DEFAULT_DOG_NAME", "cString", "Spike", "What should we call the pets?") {
+    LoadString(GetDefault());
+  }
+  cString Get() const { return "Spike"; }
+  void Set(cString in_value) { cerr << "ERROR: resetting value for constant setting 'DEFAULT_DOG_NAME'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_DEFAULT_DOG_NAME> DEFAULT_DOG_NAME;
+
+// Entry: PI
+// Description: This will change the universe!
+//              (at least the virtual universe!)
+//              ((Or maybe nothing if I don't implement it))
+class cEntry_PI : public cBaseConfigEntry {
+private:
+  double value;
+public:
+  typedef double entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_PI() : cBaseConfigEntry("PI", "double", "3.141592", "This will change the universe!\n(at least the virtual universe!)\n((Or maybe nothing if I don't implement it))") {
+    LoadString(GetDefault());
+  }
+  double Get() const { return 3.141592; }
+  void Set(double in_value) { cerr << "ERROR: resetting value for constant setting 'PI'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_PI> PI;
+
+// Entry: DEFAULT_DIR
+// Description: This is the default place we will look for files.
+class cEntry_DEFAULT_DIR : public cBaseConfigEntry {
+private:
+  cString value;
+public:
+  typedef cString entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_DEFAULT_DIR() : cBaseConfigEntry("DEFAULT_DIR", "cString", "/disk/scratch/", "This is the default place we will look for files.") {
+    LoadString(GetDefault());
+  }
+  cString Get() const { return "/disk/scratch/"; }
+  void Set(cString in_value) { cerr << "ERROR: resetting value for constant setting 'DEFAULT_DIR'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_DEFAULT_DIR> DEFAULT_DIR;
+
+
+/**********************************************
+ * Group: MATH_GROUP
+ * Description: This group is for mathematical tests.
+ **********************************************/
+
+class cGroup_MATH_GROUP : public cBaseConfigGroup {
+public:
+  cGroup_MATH_GROUP()
+    : cBaseConfigGroup("MATH_GROUP", "This group is for mathematical tests.") { ; }
+};
+tConfigGroupInstantiator<cGroup_MATH_GROUP > MATH_GROUP;
+
+// Entry: VAR1
+// Description: This if our first variable.
+class cEntry_VAR1 : public cBaseConfigEntry {
+private:
+  double value;
+public:
+  typedef double entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_VAR1() : cBaseConfigEntry("VAR1", "double", "1.0", "This if our first variable.") {
+    LoadString(GetDefault());
+  }
+  double Get() const { return 1.000000; }
+  void Set(double in_value) { cerr << "ERROR: resetting value for constant setting 'VAR1'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_VAR1> VAR1;
+
+// Entry: VAR2
+// Description: This if our second variable.
+class cEntry_VAR2 : public cBaseConfigEntry {
+private:
+  double value;
+public:
+  typedef double entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_VAR2() : cBaseConfigEntry("VAR2", "double", "2.0", "This if our second variable.") {
+    LoadString(GetDefault());
+  }
+  double Get() const { return 2.000000; }
+  void Set(double in_value) { cerr << "ERROR: resetting value for constant setting 'VAR2'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_VAR2> VAR2;
+
+// Entry: VAR3
+// Description: This if our third variable.
+class cEntry_VAR3 : public cBaseConfigEntry {
+private:
+  double value;
+public:
+  typedef double entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_VAR3() : cBaseConfigEntry("VAR3", "double", "3.0", "This if our third variable.") {
+    LoadString(GetDefault());
+  }
+  double Get() const { return 3.000000; }
+  void Set(double in_value) { cerr << "ERROR: resetting value for constant setting 'VAR3'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_VAR3> VAR3;
+
+// Entry: VAR4
+// Description: This if our fourth variable.
+class cEntry_VAR4 : public cBaseConfigEntry {
+private:
+  double value;
+public:
+  typedef double entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_VAR4() : cBaseConfigEntry("VAR4", "double", "4.0", "This if our fourth variable.") {
+    LoadString(GetDefault());
+  }
+  double Get() const { return 4.000000; }
+  void Set(double in_value) { cerr << "ERROR: resetting value for constant setting 'VAR4'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_VAR4> VAR4;
+
+// Entry: VAR5
+// Description: This if our fifth variable.
+class cEntry_VAR5 : public cBaseConfigEntry {
+private:
+  double value;
+public:
+  typedef double entry_type;
+  void LoadString(const cString & str_value) {
+    value = cStringUtil::Convert(str_value, value);
+  }
+  cEntry_VAR5() : cBaseConfigEntry("VAR5", "double", "5.0", "This if our fifth variable.") {
+    LoadString(GetDefault());
+  }
+  double Get() const { return 5.000000; }
+  void Set(double in_value) { cerr << "ERROR: resetting value for constant setting 'VAR5'" << endl; }
+  cString AsString() { return cStringUtil::Convert(value); }
+};
+tConfigEntryInstantiator<cEntry_VAR5> VAR5;
+
+




More information about the Avida-cvs mailing list