Elements 6.1.2
A C++ base framework for the Euclid Software.
|
OS specific details to access at run-time the module configuration of the process. More...
#include "ElementsKernel/ModuleInfo.h"
#include <dlfcn.h>
#include <libgen.h>
#include <sys/param.h>
#include <sys/times.h>
#include <unistd.h>
#include <array>
#include <cerrno>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <boost/filesystem/operations.hpp>
#include "ElementsKernel/FuncPtrCast.h"
#include "ElementsKernel/Path.h"
Go to the source code of this file.
Namespaces | |
namespace | Elements |
namespace | Elements::System |
Functions | |
ELEMENTS_API const std::string & | Elements::System::moduleName () |
Get the name of the (executable/DLL) file without file-type. | |
ELEMENTS_API const std::string & | Elements::System::moduleNameFull () |
Get the full name of the (executable/DLL) file. | |
ELEMENTS_API ModuleType | Elements::System::moduleType () |
Get type of the module. | |
ELEMENTS_API ProcessHandle | Elements::System::processHandle () |
Handle to running process. | |
ELEMENTS_API void | Elements::System::setModuleHandle (ImageHandle handle) |
Attach module handle. | |
ELEMENTS_API ImageHandle | Elements::System::moduleHandle () |
Handle to currently executed module. | |
ELEMENTS_API ImageHandle | Elements::System::exeHandle () |
Handle to the executable file running. | |
ELEMENTS_API const std::string & | Elements::System::exeName () |
Name of the executable file running. | |
ELEMENTS_API Path::Item | Elements::System::getSelfProc () |
Get the path to the /proc directory of the process. | |
ELEMENTS_API std::vector< Path::Item > | Elements::System::linkedModulePaths () |
ELEMENTS_API const std::vector< std::string > | Elements::System::linkedModules () |
Vector of names of linked modules. | |
ELEMENTS_API Path::Item | Elements::System::getExecutablePath () |
Get the full executable path. | |
OS specific details to access at run-time the module configuration of the process.
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 ModuleInfo.cpp.