COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
OSystemLayer Class Reference

#include <OSystemLayer.hpp>

Inherits OSystemLayer.

Public Member Functions

 OSystemLayer ()
 Constructor without arguments. More...
 
virtual ~OSystemLayer ()
 Destructor. More...
 
virtual std::string platform_name () const
 
virtual std::string back_trace () const
 
virtual Uint process_id () const
 
virtual double memory_usage () const
 
virtual void regist_os_signal_handlers ()
 Regists the signal handlers that will be handled by this class. More...
 
- Public Member Functions inherited from OSystemLayer
 OSystemLayer ()
 Constructor without arguments. More...
 
std::string memory_usage_str () const
 
void execute_command (const std::string &call)
 

Static Public Member Functions

static std::string dump_back_trace ()
 
- Static Public Member Functions inherited from OSystemLayer
static std::string type_name ()
 Gets the Class name. More...
 

Static Protected Member Functions

static int handleSIGFPE (int signal)
 SIGFPE signal handler. More...
 
static int handleSIGSEGV (int signal)
 SIGSEGV signal handler. More...
 

Additional Inherited Members

- Public Types inherited from OSystemLayer
typedef void(* sighandler_t) (int)
 signal function type More...
 

Detailed Description

This class represents the current information on the memory usage. Is is an implementation for the Linux operating system

Author
Tiago Quintino

Definition at line 27 of file OSystemLayer.hpp.

Constructor & Destructor Documentation

Constructor without arguments.

Definition at line 41 of file OSystemLayer.cpp.

~OSystemLayer ( )
virtual

Destructor.

Reimplemented from OSystemLayer.

Definition at line 47 of file OSystemLayer.cpp.

Member Function Documentation

std::string back_trace ( ) const
virtual

Dump backtrace

Returns
a string with the backtrace dump

Implements OSystemLayer.

Definition at line 53 of file OSystemLayer.cpp.

std::string dump_back_trace ( )
static
Returns
string with platform name

Definition at line 60 of file OSystemLayer.cpp.

int handleSIGFPE ( int  signal)
staticprotected

SIGFPE signal handler.

Definition at line 241 of file OSystemLayer.cpp.

int handleSIGSEGV ( int  signal)
staticprotected

SIGSEGV signal handler.

Definition at line 254 of file OSystemLayer.cpp.

double memory_usage ( ) const
virtual

Gets the memory usage

Returns
a double with the memory usage

Implements OSystemLayer.

Definition at line 137 of file OSystemLayer.cpp.

virtual std::string platform_name ( ) const
inlinevirtual
Returns
string with platform name

Implements OSystemLayer.

Definition at line 38 of file OSystemLayer.hpp.

Uint process_id ( ) const
virtual

Gets the current process ID

Returns
a integer witht he current process ID

Implements OSystemLayer.

Definition at line 129 of file OSystemLayer.cpp.

void regist_os_signal_handlers ( )
virtual

Regists the signal handlers that will be handled by this class.

Implements OSystemLayer.

Definition at line 212 of file OSystemLayer.cpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin