#include <cassert>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <string>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <boost/date_time/gregorian/gregorian.hpp>
#include <boost/program_options.hpp>
#include <opentrep/OPENTREP_Service.hpp>
#include <opentrep/basic/BasConst_OPENTREP_Service.hpp>
#include <opentrep/config/opentrep-paths.hpp>
Go to the source code of this file.
Typedefs | |
typedef std::vector< std::string > | WordList_T |
Functions | |
const std::string | K_OPENTREP_DEFAULT_LOG_FILENAME ("opentrep-dbmgr.log") |
int | readConfiguration (int argc, char *argv[], std::string &ioPORFilepath, std::string &ioXapianDBFilepath, std::string &ioSQLiteDBFilepath, std::string &ioLogFilename) |
int | main (int argc, char *argv[]) |
Variables | |
const int | K_OPENTREP_EARLY_RETURN_STATUS = 99 |
typedef std::vector<std::string> WordList_T |
Definition at line 19 of file opentrep-dbmgr.cpp.
const std::string K_OPENTREP_DEFAULT_LOG_FILENAME | ( | "opentrep-dbmgr.log" | ) |
Default name and location for the log file.
Referenced by readConfiguration().
int readConfiguration | ( | int | argc, |
char * | argv[], | ||
std::string & | ioPORFilepath, | ||
std::string & | ioXapianDBFilepath, | ||
std::string & | ioSQLiteDBFilepath, | ||
std::string & | ioLogFilename | ||
) |
Read and parse the command line options.
Definition at line 34 of file opentrep-dbmgr.cpp.
References OPENTREP::DEFAULT_OPENTREP_POR_FILEPATH, OPENTREP::DEFAULT_OPENTREP_SQLITE_DB_FILEPATH, OPENTREP::DEFAULT_OPENTREP_XAPIAN_DB_FILEPATH, K_OPENTREP_DEFAULT_LOG_FILENAME(), and K_OPENTREP_EARLY_RETURN_STATUS.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 137 of file opentrep-dbmgr.cpp.
References OPENTREP::OPENTREP_Service::buildSQLDB(), K_OPENTREP_EARLY_RETURN_STATUS, and readConfiguration().
const int K_OPENTREP_EARLY_RETURN_STATUS = 99 |
Early return status (so that it can be differentiated from an error).
Definition at line 31 of file opentrep-dbmgr.cpp.
Referenced by main(), and readConfiguration().