Skip to content
Snippets Groups Projects

Draft: Adapt for renamed cpplib

Open Joscha Schmiedt requested to merge f-linkahead-rename into dev
Files
6
+ 16
16
/*
* This file is a part of the CaosDB Project.
* This file is a part of the LinkAhead Project.
*
* Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
* Copyright (C) 2021-2024 IndiScale GmbH <info@indiscale.com>
* Copyright (C) 2021 Daniel Hornung <d.hornung@indiscale.com>
*
* This program is free software: you can redistribute it and/or modify
@@ -18,18 +18,18 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#include "caosdb/connection.h" // for Connection, ConnectionManager
#include "caosdb/constants.h" // for LIBCAOSDB_VERSION_MAJOR, LIBCAOSDB_VE...
#include "caosdb/exceptions.h" // for all error handling
#include "caosdb/info.h" // for VersionInfo
#include "maoxdb.hpp" // caosDB utils for mex files
#include "mex.h" // for mxArray, mexFunction
#include <cstring> // for strcmp
#include <memory> // for unique_ptr, __shared_ptr_access, shar...
#include <string> // for allocator, char_traits, operator+
#include "linkahead/connection.h" // for Connection, ConnectionManager
#include "linkahead/constants.h" // for LIBLINKAHEAD_VERSION_MAJOR, LIBLINKAHEAD_VE...
#include "linkahead/exceptions.h" // for all error handling
#include "linkahead/info.h" // for VersionInfo
#include "../lib/maoxdb.hpp" // LinkAhead utils for mex files
#include "mex.h" // for mxArray, mexFunction
#include <cstring> // for strcmp
#include <memory> // for unique_ptr, __shared_ptr_access, shar...
#include <string> // for allocator, char_traits, operator+
using caosdb::connection::Connection;
using caosdb::connection::ConnectionManager;
using linkahead::connection::Connection;
using linkahead::connection::ConnectionManager;
using std::string;
const auto logger_name = "maox_info";
@@ -79,10 +79,10 @@ void mexFunction(int /*nlhs*/, mxArray *plhs[], int nrhs, const mxArray *prhs[])
try {
auto *info_struct = info(conn_name);
plhs[0] = info_struct;
} catch (const caosdb::exceptions::Exception &exc) {
} catch (const linkahead::exceptions::Exception &exc) {
mexPrintf(std::string(std::string("Exception: ") + std::string(exc.what())).c_str());
caosdb::utility::reset_arena();
linkahead::utility::reset_arena();
maoxdb::throwOctException(exc);
}
caosdb::utility::reset_arena();
linkahead::utility::reset_arena();
}
Loading