00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef SEMAINE_CONFIG_H
00011 #define SEMAINE_CONFIG_H
00012
00013 #ifdef _MSC_VER
00014
00015
00016 #pragma warning( disable : 4290 4996 )
00017 #endif
00018
00019 #ifdef HAVE_CONFIG_H
00020
00021 #include <config.h>
00022 #endif
00023
00024
00025 #include <string>
00026 #include <stdlib.h>
00027 #include <cassert>
00028 #include <stdlib.h>
00029
00030 inline std::string _determine_CMS_URL()
00031 {
00032 const char * url = getenv("CMS_URL");
00033 if (url == NULL) url = "tcp://localhost:61616";
00034 return std::string(url);
00035 }
00036
00037 inline std::string _determine_CONFIG_STATEINFO()
00038 {
00039 const char * conf = getenv("CONFIG_STATEINFO");
00040 if (conf == NULL) conf = "stateinfo.config";
00041 return std::string(conf);
00042 }
00043
00044 const std::string DEFAULT_CMS_URL = _determine_CMS_URL();
00045 const std::string DEFAULT_CMS_USER = "";
00046 const std::string DEFAULT_CMS_PASSWORD = "";
00047
00048 const std::string CONFIG_STATEINFO = _determine_CONFIG_STATEINFO();
00049
00050
00051
00052 #endif
00053