00001
00002
00003 #ifndef OSL_OSLCONFIG_H
00004 #define OSL_OSLCONFIG_H
00005
00006 #include <string>
00007
00008 namespace osl
00009 {
00011 struct OslConfig
00012 {
00013 static const int MaxThreads=16;
00015 static const std::string& home();
00016 static const char * home_c_str();
00017
00019 static const std::string test();
00020 static const char *testFile(const std::string& filename);
00021 static const char *testCsaFile(const std::string& filename);
00022
00027 static const char *openingBook(const std::string& filenamme="");
00028
00029 static void setVerbose(bool verbose);
00030 static bool verbose();
00031
00032 static void showOslHome();
00033 static void setNumCPUs(int ncpu);
00034 static int numCPUs();
00035 private:
00036 static const std::string makeHome();
00037 static const std::string makeTest();
00038 static bool isGoodDir(const std::string&);
00039 static void trySetDir(std::string&, const std::string&);
00040 static void showOslHome(const std::string&);
00041 };
00042 }
00043
00044 #endif
00045
00046
00047
00048