Elements 6.1.2
A C++ base framework for the Euclid Software.
|
#include "ElementsKernel/System.h"
#include <cxxabi.h>
#include <dlfcn.h>
#include <execinfo.h>
#include <sys/utsname.h>
#include <unistd.h>
#include <array>
#include <cstdlib>
#include <iomanip>
#include <iostream>
#include <new>
#include <sstream>
#include <string>
#include <typeinfo>
#include <vector>
#include <cerrno>
#include <climits>
#include <cstddef>
#include <cstring>
#include "ElementsKernel/FuncPtrCast.h"
#include "ElementsKernel/ModuleInfo.h"
#include "ElementsKernel/Unused.h"
Go to the source code of this file.
Namespaces | |
namespace | Elements |
namespace | Elements::System |
Functions | |
ELEMENTS_API unsigned long | Elements::System::loadDynamicLib (const std::string &name, ImageHandle *handle) |
Load dynamic link library. | |
ELEMENTS_API unsigned long | Elements::System::unloadDynamicLib (ImageHandle handle) |
unload dynamic link library | |
ELEMENTS_API unsigned long | Elements::System::getProcedureByName (ImageHandle handle, const std::string &name, EntryPoint *pFunction) |
Get a specific function defined in the DLL. | |
ELEMENTS_API unsigned long | Elements::System::getProcedureByName (ImageHandle handle, const std::string &name, Creator *pFunction) |
Get a specific function defined in the DLL. | |
ELEMENTS_API unsigned long | Elements::System::getLastError () |
Get last system known error. | |
ELEMENTS_API const std::string | Elements::System::getLastErrorString () |
Get last system error as string. | |
ELEMENTS_API const std::string | Elements::System::getErrorString (unsigned long error) |
Retrieve error code as string for a given error. | |
ELEMENTS_API const std::string | Elements::System::typeinfoName (const std::type_info &) |
Get platform independent information about the class type. | |
ELEMENTS_API const std::string | Elements::System::typeinfoName (const char *) |
ELEMENTS_API const std::string & | Elements::System::hostName () |
Host name. | |
ELEMENTS_API const std::string & | Elements::System::osName () |
OS name. | |
ELEMENTS_API const std::string & | Elements::System::osVersion () |
OS version. | |
ELEMENTS_API const std::string & | Elements::System::machineType () |
Machine type. | |
ELEMENTS_API std::string | Elements::System::getEnv (const std::string &var) |
get a particular environment variable | |
ELEMENTS_API bool | Elements::System::getEnv (const string &var, string &value) |
get a particular env var, storing the value in the passed string (if set) | |
ELEMENTS_API bool | Elements::System::isEnvSet (const std::string &var) |
Check if an environment variable is set or not. | |
ELEMENTS_API std::vector< std::string > | Elements::System::getEnv () |
get all environment variables | |
ELEMENTS_API int | Elements::System::setEnv (const string &name, const string &value, bool overwrite) |
set an environment variables. | |
ELEMENTS_API int | Elements::System::unSetEnv (const std::string &name) |
Simple wrap around unsetenv for strings. | |
Elements::System::__attribute__ ((noinline)) int backTrace(ELEMENTS_UNUSED std | |
ELEMENTS_API const std::vector< std::string > | Elements::System::backTrace (const int depth, const int offset=0) |
bool | Elements::System::getStackLevel (void *addresses ELEMENTS_UNUSED, void *&addr ELEMENTS_UNUSED, string &fnc ELEMENTS_UNUSED, string &lib ELEMENTS_UNUSED) |
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3.0 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file System.cpp.