Config Class Reference

#include <orsa_config.h>

List of all members.

Public Member Functions

 Config ()

Static Public Member Functions

static void read_from_file ()
static void write_to_file ()

Public Attributes

std::map< ConfigEnum, ConfigItem<
std::string > * > 
paths


Constructor & Destructor Documentation

Config  ) 
 

Definition at line 82 of file orsa_config.cc.

References orsa::ASTDYS_ALLNUM_CAT, orsa::ASTDYS_ALLNUM_CTC, orsa::ASTDYS_ALLNUM_CTM, orsa::ASTDYS_UFITOBS_CAT, orsa::ASTDYS_UFITOBS_CTC, orsa::ASTDYS_UFITOBS_CTM, orsa::JPL_DASTCOM_COMET, orsa::JPL_DASTCOM_NUM, orsa::JPL_DASTCOM_UNNUM, orsa::JPL_EPHEM_FILE, orsa::LOWELL_ASTORB, orsa::MPC_COMET, orsa::MPC_DAILY, orsa::MPC_DISTANT, orsa::MPC_MPCORB, orsa::MPC_NEA, orsa::MPC_PHA, orsa::MPC_UNUSUALS, orsa::NEODYS_CAT, orsa::NEODYS_CTC, orsa::OBSCODE, Config::paths, orsa::TEXTURE_EARTH, orsa::TEXTURE_JUPITER, orsa::TEXTURE_MARS, orsa::TEXTURE_MERCURY, orsa::TEXTURE_MOON, orsa::TEXTURE_NEPTUNE, orsa::TEXTURE_PLUTO, orsa::TEXTURE_SATURN, orsa::TEXTURE_SUN, orsa::TEXTURE_URANUS, orsa::TEXTURE_VENUS, orsa::TLE_GEO, orsa::TLE_GPS, orsa::TLE_ISS, orsa::TLE_KEPELE, orsa::TLE_NASA, orsa::TLE_VISUAL, and orsa::TLE_WEATHER.

00082                  {
00083     paths[JPL_EPHEM_FILE] =     new ConfigItem<string>("JPL_EPHEM_FILE");
00084     paths[JPL_DASTCOM_NUM] =    new ConfigItem<string>("JPL_DASTCOM_NUM");
00085     paths[JPL_DASTCOM_UNNUM] =  new ConfigItem<string>("JPL_DASTCOM_UNNUM");
00086     paths[JPL_DASTCOM_COMET] =  new ConfigItem<string>("JPL_DASTCOM_COMET");
00087     paths[LOWELL_ASTORB] =      new ConfigItem<string>("LOWELL_ASTORB");
00088     paths[MPC_MPCORB] =         new ConfigItem<string>("MPC_MPCORB");
00089     paths[MPC_COMET] =          new ConfigItem<string>("MPC_COMET");
00090     paths[MPC_NEA] =            new ConfigItem<string>("MPC_NEA");
00091     paths[MPC_DAILY] =          new ConfigItem<string>("MPC_DAILY");
00092     paths[MPC_DISTANT] =        new ConfigItem<string>("MPC_DISTANT");
00093     paths[MPC_PHA] =            new ConfigItem<string>("MPC_PHA");
00094     paths[MPC_UNUSUALS] =       new ConfigItem<string>("MPC_UNUSUALS");
00095     paths[ASTDYS_ALLNUM_CAT] =  new ConfigItem<string>("ASTDYS_ALLNUM_CAT");
00096     paths[ASTDYS_ALLNUM_CTC] =  new ConfigItem<string>("ASTDYS_ALLNUM_CTC");
00097     paths[ASTDYS_ALLNUM_CTM] =  new ConfigItem<string>("ASTDYS_ALLNUM_CTM");
00098     paths[ASTDYS_UFITOBS_CAT] = new ConfigItem<string>("ASTDYS_UFITOBS_CAT");
00099     paths[ASTDYS_UFITOBS_CTC] = new ConfigItem<string>("ASTDYS_UFITOBS_CTC");
00100     paths[ASTDYS_UFITOBS_CTM] = new ConfigItem<string>("ASTDYS_UFITOBS_CTM");
00101     paths[NEODYS_CAT] =         new ConfigItem<string>("NEODYS_CAT");
00102     paths[NEODYS_CTC] =         new ConfigItem<string>("NEODYS_CTC");
00103     paths[OBSCODE] =            new ConfigItem<string>("OBSCODE");
00104     // TLE
00105     paths[TLE_NASA] =    new ConfigItem<string>("TLE_NASA");
00106     paths[TLE_GEO] =     new ConfigItem<string>("TLE_GEO");
00107     paths[TLE_GPS] =     new ConfigItem<string>("TLE_GPS");
00108     paths[TLE_ISS] =     new ConfigItem<string>("TLE_ISS");
00109     paths[TLE_KEPELE] =  new ConfigItem<string>("TLE_KEPELE");
00110     paths[TLE_VISUAL] =  new ConfigItem<string>("TLE_VISUAL");
00111     paths[TLE_WEATHER] = new ConfigItem<string>("TLE_WEATHER");
00112     // textures
00113     paths[TEXTURE_SUN]     = new ConfigItem<string>("TEXTURE_SUN");
00114     paths[TEXTURE_MERCURY] = new ConfigItem<string>("TEXTURE_MERCURY");
00115     paths[TEXTURE_VENUS]   = new ConfigItem<string>("TEXTURE_VENUS");
00116     paths[TEXTURE_EARTH]   = new ConfigItem<string>("TEXTURE_EARTH");
00117     paths[TEXTURE_MOON]    = new ConfigItem<string>("TEXTURE_MOON");
00118     paths[TEXTURE_MARS]    = new ConfigItem<string>("TEXTURE_MARS");
00119     paths[TEXTURE_JUPITER] = new ConfigItem<string>("TEXTURE_JUPITER");
00120     paths[TEXTURE_SATURN]  = new ConfigItem<string>("TEXTURE_SATURN");
00121     paths[TEXTURE_URANUS]  = new ConfigItem<string>("TEXTURE_URANUS");
00122     paths[TEXTURE_NEPTUNE] = new ConfigItem<string>("TEXTURE_NEPTUNE");
00123     paths[TEXTURE_PLUTO]   = new ConfigItem<string>("TEXTURE_PLUTO");
00124     
00125     // DON'T READ HERE!!!
00126     // read_from_file();
00127   }


Member Function Documentation

void read_from_file  )  [static]
 

Definition at line 129 of file orsa_config.cc.

References File::Close(), and OrsaConfigFile::Read().

00129                               {
00130     OrsaConfigFile ocf;
00131     ocf.Read();
00132     ocf.Close();
00133   }

Here is the call graph for this function:

void write_to_file  )  [static]
 

Definition at line 135 of file orsa_config.cc.

References File::Close(), and OrsaConfigFile::Write().

00135                              {
00136     OrsaConfigFile ocf;
00137     ocf.Write();
00138     ocf.Close();
00139   }

Here is the call graph for this function:


Member Data Documentation

std::map< ConfigEnum, ConfigItem<std::string>* > paths
 

Definition at line 104 of file orsa_config.h.

Referenced by orsa::Compute_TestMethod(), Config::Config(), OrsaConfigFile::Read(), and OrsaConfigFile::Write().


The documentation for this class was generated from the following files:
Generated on Tue Jan 11 15:28:09 2005 for liborsa by  doxygen 1.4.0