378 inline void init(
const char* rcfile=0,
379 const char* mesgfile=0) {
380 #if defined(DEBUG) || defined(_DEBUG)
382 #if DEBUG + 0 > 10 || _DEBUG + 0 > 10
385 gVerbose += 7 * DEBUG;
387 gVerbose += 5 * _DEBUG;
394 #if defined(PTW32_STATIC_LIB)
398 throw "ibis::init failed to initialize ibis::util::envLock";
401 if (mesgfile != 0 && *mesgfile != 0) {
403 if (ierr < 0 && ibis::gVerbose >= 0) {
404 std::cerr <<
"ibis::init failed to set log file to "
405 << mesgfile << std::endl;
410 if (ibis::gVerbose >= 0)
411 std::cerr <<
"ibis::init failed to register the function "
412 "ibis::util::closeLogFile with atexit" << std::endl;
422 std::cerr <<
"ibis::init failed to open configuration file \""
423 << (rcfile!=0&&*rcfile!=0 ? rcfile :
"") <<
'"'
428 if (ibis::gVerbose > 0 && ierr > 0)
429 std::cerr <<
"ibis::init found " << ierr <<
" data partition"
430 << (ierr > 1 ?
"s" :
"") << std::endl;
432 #if defined(_WIN32) && defined(_MSC_VER) && (defined(_DEBUG) || defined(DEBUG))
433 std::cerr <<
"DEBUG - WIN32 related macros";
435 std::cerr <<
"\nNTDDI_VERSION=" << std::hex << NTDDI_VERSION
438 #ifdef NTDDI_WINVISTA
439 std::cerr <<
"\nNTDDI_WINVISTA=" << std::hex << NTDDI_WINVISTA
443 std::cerr <<
"\nWINVER=" << std::hex << WINVER << std::dec;
445 #if defined(HAVE_WIN_ATOMIC32)
446 std::cerr <<
"\nHAVE_WIN_ATOMIC32 true";
448 std::cerr <<
"\nHAVE_WIN_ATOMIC32 flase";
450 #if defined(HAVE_WIN_ATOMIC64)
451 std::cerr <<
"\nHAVE_WIN_ATOMIC64 true";
453 std::cerr <<
"\nHAVE_WIN_ATOMIC64 flase";
455 std::cerr << std::endl;
int read(const char *fn=0)
Read a configuration file.
Definition: resource.cpp:44
Classes to store selected values.
partList datasets
!< Select clause.
Definition: util.cpp:83
unsigned int gatherParts(ibis::partList &parts, const char *adir, const char *bdir, bool ro=false)
Look for data partitions in the given pair of directories.
Definition: part.cpp:20692
pthread_mutex_t envLock
A mutex for serialize operations FastBit wide.
Definition: util.cpp:49
void closeLogFile()
Close the log file.
Definition: util.cpp:2120
The current implementation of FastBit is code named IBIS; most data structures and functions are in t...
Definition: bord.h:16
FastBit Quaere Interface.
The header file defining the individual query objects.
ibis::resource & gParameters()
List of in-memory data.
Definition: resource.cpp:545
The header file defining an extension of query on mesh data.
void init(const char *rcfile=0, const char *mesgfile=0)
Initializes the memory manager of FastBit.
Definition: ibis.h:378
Defines a class to hold name-value pairs.
static fileManager & instance()
Returns a pointer to the one and only file manager.
Definition: fileManager.cpp:507
The header file defining the individual countQuery objects.
Define the class ibis::blob.
Define simple IO functions for ibis::rid_t.
int setLogFileName(const char *filename)
Change the current log file to the named file.
Definition: util.cpp:1952
Define the class ibis::part.