#include <SysCatalog.h>
Definition at line 147 of file SysCatalog.h.
Catalog_Namespace::CommonFileOperations::CommonFileOperations |
( |
std::string const & |
base_path | ) |
|
|
inline |
Definition at line 149 of file SysCatalog.h.
std::string const & base_path_
auto Catalog_Namespace::CommonFileOperations::assembleCatalogName |
( |
std::string const & |
name | ) |
|
|
inline |
auto Catalog_Namespace::CommonFileOperations::duplicateAndRenameCatalog |
( |
std::string const & |
current_name, |
|
|
std::string const & |
new_name |
|
) |
| |
|
inline |
Definition at line 174 of file SysCatalog.cpp.
References logger::ERROR, and LOG.
Referenced by Catalog_Namespace::SysCatalog::renameDatabase().
180 boost::filesystem::copy_file(full_current_path, full_new_path);
181 }
catch (std::exception& e) {
182 std::string err_message{
"Could not copy file " + full_current_path +
" to " +
183 full_new_path +
" exception was " + e.what()};
185 throw std::runtime_error(err_message);
188 return std::make_pair(full_current_path, full_new_path);
auto assembleCatalogName(std::string const &name)
void Catalog_Namespace::CommonFileOperations::removeCatalogByFullPath |
( |
std::string const & |
full_path | ) |
|
|
inline |
void Catalog_Namespace::CommonFileOperations::removeCatalogByName |
( |
std::string const & |
name | ) |
|
|
inline |
Definition at line 170 of file SysCatalog.cpp.
auto assembleCatalogName(std::string const &name)
std::string const& Catalog_Namespace::CommonFileOperations::base_path_ |
|
private |
The documentation for this class was generated from the following files:
- /home/jenkins-slave/workspace/core-os-doxygen/Catalog/SysCatalog.h
- /home/jenkins-slave/workspace/core-os-doxygen/Catalog/SysCatalog.cpp