OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
OPENTREP::FileManager Class Reference

Class wrapping utilities for file-system access. More...

#include <opentrep/command/FileManager.hpp>

Static Public Member Functions

static bool checkSQLiteDirectory (const std::string &iSQLDBConnStr)
 
static bool checkXapianDBOnFileSystem (const TravelDBFilePath_T &)
 
static void recreateXapianDirectory (const std::string &iTravelDBFilePath)
 

Detailed Description

Class wrapping utilities for file-system access.

Definition at line 15 of file FileManager.hpp.

Member Function Documentation

◆ checkSQLiteDirectory()

bool OPENTREP::FileManager::checkSQLiteDirectory ( const std::string & iSQLDBConnStr)
static

Check that the directory hosting the SQLite database exists and is accessible.

Definition at line 16 of file FileManager.cpp.

Referenced by OPENTREP::DBManager::initSQLDBSession().

◆ checkXapianDBOnFileSystem()

bool OPENTREP::FileManager::checkXapianDBOnFileSystem ( const TravelDBFilePath_T & iTravelDBFilePath)
static

Check that the directory hosting the Xapian database/index exists and is accessible.

Definition at line 35 of file FileManager.cpp.

Referenced by OPENTREP::OPENTREP_Service::checkXapianDBOnFileSystem().

◆ recreateXapianDirectory()

void OPENTREP::FileManager::recreateXapianDirectory ( const std::string & iTravelDBFilePath)
static

Delete and re-create the directory hosting the Xapian index (aka database)

Definition at line 51 of file FileManager.cpp.

References OPENTREP_LOG_DEBUG, and OPENTREP_LOG_ERROR.


The documentation for this class was generated from the following files: