#include <job_identifier.h>
Identification of a program run. JobIdentifier
determines the start time of a program run and stores it as a program identifier. There exists a library object dealjobid
of this class. This object can be accessed by all output functions to provide an id for the current job.
Definition at line 34 of file job_identifier.h.
JobIdentifier::JobIdentifier |
( |
| ) |
|
Constructor. Set program identifier to value of program_id
concatenated with the present time.
static const char* JobIdentifier::program_id |
( |
| ) |
|
|
static |
This function returns an identifier for the running program. Currently, the library provides a function returning "JobID".
The user may define a replacement of this function in his source code and avoid linking the library version. Unfortunately, this mechanism does not work with shared libraries.
static std::string JobIdentifier::base_name |
( |
const char * |
filename | ) |
|
|
static |
Obtain the base name of the file currently being compiled. That is, if the file is mypath/file.cc
return just file
. Typically, this can be called from a program with the argument __FILE__
and is used in the deal.II test suite.
const std::string JobIdentifier::operator() |
( |
| ) |
const |
std::string JobIdentifier::id |
|
private |
String holding the identifier of the presently running program.
Definition at line 87 of file job_identifier.h.
The documentation for this class was generated from the following file: