00001
00002
00003
00004
00005 #ifndef IBIS_H
00006 #define IBIS_H
00016 #include "countQuery.h" // ibis::countQuery
00017 #include "meshQuery.h"
00018 #include "resource.h"
00019 #include "bundle.h"
00020 #include "query.h"
00021 #include "part.h"
00022 #include "join.h"
00023 #include "rids.h"
00024
00216
00217
00218
00219
00220 namespace ibis {
00266 inline void init(const int verbose=0, const char* rcfile=0,
00267 const char* mesgfile=0) {
00268 gVerbose = verbose;
00269 #if defined(DEBUG) || defined(_DEBUG)
00270 #if DEBUG + 0 > 10 || _DEBUG + 0 > 10
00271 gVerbose = INT_MAX;
00272 #elif DEBUG + 0 > 0
00273 gVerbose += 7 * DEBUG;
00274 #elif _DEBUG + 0 > 0
00275 gVerbose += 5 * _DEBUG;
00276 #else
00277 gVerbose += 3;
00278 #endif
00279 #endif
00280 if (mesgfile != 0 && *mesgfile != 0) {
00281 int ierr = ibis::util::setLogFileName(mesgfile);
00282 if (ierr < 0 && ibis::gVerbose >= 0) {
00283 std::cerr << "ibis::init failed to set log file to "
00284 << mesgfile << std::endl;
00285 }
00286 }
00287
00288 if (rcfile != 0 && *rcfile != 0)
00289 gParameters().read(rcfile);
00290 (void) ibis::fileManager::instance();
00291 }
00292 }
00293 #endif // IBIS_H