Program: bbtk
Module: $RCSfile: bbtkConfigurationFile.cxx,v $
Language: C++
- Date: $Date: 2011/03/08 11:32:02 $
- Version: $Revision: 1.36 $
+ Date: $Date: 2011/03/08 16:56:13 $
+ Version: $Revision: 1.37 $
=========================================================================*/
/* ---------------------------------------------------------------------
#endif
-
-
namespace bbtk
{
-
//====================================================================
/// Constructor
ConfigurationFile::ConfigurationFile()
{
-
- mFile_separator = VALID_FILE_SEPARATOR;
+ mFile_separator = VALID_FILE_SEPARATOR;
// ==> Set system paths
mBin_path = Utilities::GetExecutablePath();
-
-
-
/* EED 23 Mars 2009
#ifdef MACOSX
mInstall_path = mBin_path + "/../../../..";
#endif
*/
#ifdef MACOSX
-
std::string macPath("Contents/MacOS");
int sbp = mBin_path.length();
int smp = macPath.length();
{
mBin_path = mBin_path + "/../../..";
}
-
-
#endif
- mInstall_path = mBin_path + "/..";
-
+///\TODO : better use ??
+ mInstall_path = mBin_path + "/..";
// The relative path to the doc folder (=BBTK_DOC_REL_PATH)
// mDoc_rel_path = BBTK_STRINGIFY_SYMBOL(BBTK_DOC_REL_PATH);
bbtkMessage("config",1," ==> bbs : '"<<mBbs_path<<"'"<<std::endl);
bbtkMessage("config",1," ==> data : '"<<mData_path<<"'"<<std::endl);
-
-
-
// bbs_paths
// always add "." (current working directory) at the begining
mBbs_paths.push_back( "." );
mPackage_paths.push_back(mBin_path);
// add system lib path (for install tree)
//EED mPackage_paths.push_back(mInstall_path + mFile_separator + "lib");
- mPackage_paths.push_back(mInstall_path + "/lib");
- mPackage_paths.push_back(mInstall_path + "/lib64");
+
+ //mPackage_paths.push_back(mInstall_path + "/lib"); // JPR
+ //mPackage_paths.push_back(mInstall_path + "/lib64");// JPR
+
+ ///\TODO : better use BBTK_PACKAGE_LIB_PATH // JPR
+
mPackage_paths.push_back(mInstall_path + "/lib/creatools");
mPackage_paths.push_back(mInstall_path + "/lib64/creatools");
#ifdef WIN32
Utilities::replace( mPackage_paths[iStrVec] , INVALID_FILE_SEPARATOR , VALID_FILE_SEPARATOR);
}
-
-
GetHelp(2);
// ==> First we look for bbtk_config.xml in "."
+ BBTK_STRINGIFY_SYMBOL(BBTK_DOC_REL_PATH) + "/";
Utilities::MakeValidFileName(doc_path);
-
std::ofstream f;
f.open(filename.c_str(), std::ios::out );
f << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD "