Elements  6.2
A C++ base framework for the Euclid Software.
Namespaces | Functions
ModuleInfo.cpp File Reference

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 <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"
Include dependency graph for ModuleInfo.cpp:

Go to the source code of this file.

Namespaces

 Elements
 
 Elements::System
 

Functions

const ELEMENTS_API std::stringElements::System::moduleName ()
 Get the name of the (executable/DLL) file without file-type. More...
 
const ELEMENTS_API std::stringElements::System::moduleNameFull ()
 Get the full name of the (executable/DLL) file. More...
 
ELEMENTS_API ModuleType Elements::System::moduleType ()
 Get type of the module. More...
 
ELEMENTS_API ProcessHandle Elements::System::processHandle ()
 Handle to running process. More...
 
ELEMENTS_API void Elements::System::setModuleHandle (ImageHandle handle)
 Attach module handle. More...
 
ELEMENTS_API ImageHandle Elements::System::moduleHandle ()
 Handle to currently executed module. More...
 
ELEMENTS_API ImageHandle Elements::System::exeHandle ()
 Handle to the executable file running. More...
 
const ELEMENTS_API std::stringElements::System::exeName ()
 Name of the executable file running. More...
 
ELEMENTS_API Path::Item Elements::System::getSelfProc ()
 Get the path to the /proc directory of the process. More...
 
ELEMENTS_API std::vector< Path::Item > Elements::System::linkedModulePaths ()
 
const ELEMENTS_API std::vector< std::stringElements::System::linkedModules ()
 Vector of names of linked modules. More...
 
ELEMENTS_API Path::Item Elements::System::getExecutablePath ()
 Get the full executable path. More...
 

Detailed Description

OS specific details to access at run-time the module configuration of the process.

Date
Dec 1, 2014
Author
hubert

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.