deal.II version GIT relicensing-2289-g1e5549a87a 2024-12-21 21:30:00+00:00
|
#include <deal.II/base/job_identifier.h>
Public Member Functions | |
JobIdentifier () | |
std::string | operator() () const |
Static Public Member Functions | |
static const char * | program_id () |
static std::string | base_name (const std::string &filename) |
static const JobIdentifier & | get_dealjobid () |
Private Attributes | |
std::string | id |
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 32 of file job_identifier.h.
JobIdentifier::JobIdentifier | ( | ) |
Constructor. Set program identifier to value of program_id
concatenated with the present time.
Definition at line 35 of file job_identifier.cc.
|
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 their source code and avoid linking the library version. Unfortunately, this mechanism does not work with shared libraries.
|
static |
Obtain the base name of the filename passed as argument. That is, if the file is mypath/file.cc
return just file
. For example, this function can be called from a user program with argument FILE
to create an identifier for the program being run.
Definition at line 60 of file job_identifier.cc.
std::string JobIdentifier::operator() | ( | ) | const |
Return the value of id
.
Definition at line 53 of file job_identifier.cc.
|
static |
Function to identify the presently running program.
Definition at line 27 of file job_identifier.cc.
|
private |
String holding the identifier of the presently running program.
Definition at line 78 of file job_identifier.h.