Go to the documentation of this file. 1 #ifndef _OME_PROC_INFO_H
2 #define _OME_PROC_INFO_H "$Id: OMEprocInfo.h 312 2020-03-21 21:25:35Z geoff $"
49 template <
typename STREAMTYPE> STREAMTYPE &
outputOnStream(STREAMTYPE &outputStream, int_fast16_t indent = 0)
const
51 outputStream <<
"(" << bootTime <<
"|" << processID <<
"|" << hostNameHash <<
")";
52 return (outputStream);
59 return (outputStream);
80 #define OMEgetCPUticks() get_CPU_ticks()
Uniquely identifies an OME process.
Definition: OMEprocInfo.h:64
OME process information implementation.
OMEthisProcessInfo()
Definition: OMEprocInfo.cpp:231
Base class for application profiling counters or numerical system information.
Definition: OMEdebugInfo.h:146
uint32_t hostNameHash
Definition: OMEprocInfo.h:24
STREAMTYPE & outputOnStream(STREAMTYPE &outputStream, int_fast16_t indent=0) const
Definition: OMEprocInfo.h:49
uint32_t bootTime
Definition: OMEprocInfo.h:22
uint32_t processID
Definition: OMEprocInfo.h:23
OME string implementation.
bool operator<(const OMEentityID &arg) const
Definition: OMEprocInfo.h:41
Convenience template for creating shared memory variables of one of the supported numeric types....
Definition: shared_variable.hpp:436
Implements text and binary string storage.
Definition: OMEstring.h:305
bool operator==(const OMEentityID &arg) const
Definition: OMEprocInfo.h:26
Fundamental ANY type for FARGOS/VISTA Object Management Environment.
Definition: OMEbaseType.h:250
OME_DLL_EXPORT uint32_t OMEhash(const unsigned char *data, const uint32_t len) NONNULL_PARAMETERS(1)
Fast 32-bit hash over a buffer.
Definition: OMEhash.cpp:13
virtual const OMEtype getValue() const override
Retrieve the variable's value.
Definition: OMEdebugInfo.h:193
int64_t OMEticksSinceBoot()
Obtain the number of CPU ticks since boot of local FARGOS/VISTA Object Management Environment process...
Definition: OMEprocInfo.cpp:103
OMEstring hostName
Definition: OMEprocInfo.h:67
bool operator!=(const OMEentityID &arg) const
Definition: OMEprocInfo.h:34
#define OMEgetCPUticks()
Definition: OMEprocInfo.h:80
Convenience class for string variables that can be also be used if a shared memory segment is never a...
Definition: shared_variable.hpp:608
Base type for system information represented as strings.
Definition: OMEdebugInfo.h:222
char * crypt(const char *, const char *)
virtual void setValue(const OMEtype &newV) override
Definition: OMEdebugInfo.h:281
Identifies an instance of an OME process.
Definition: OMEprocInfo.h:19
const char srcID[]
Definition: catSym.c:17
STREAMTYPE & operator<<(STREAMTYPE &outputStream, const OMEentityID &data)
Definition: OMEprocInfo.h:56
int64_t OMEmillisecondsSinceBoot()
Obtain the number of milliseconds since boot of local FARGOS/VISTA Object Management Environment proc...
Definition: OMEprocInfo.cpp:93
OMEthisProcessInfo OMEcurrentProcessInfo
Automatic instantiation of OMEthisProcessInfo. When properly linked, the C++ static constructor mecha...
Definition: OMEprocInfo.cpp:217
const char srcID[] OME_USED
Definition: tick_time.cpp:24
OMEstring * OMEgetUserName()
Return the name of the user associated with the process.
Definition: OMEprocInfo.cpp:285
~OMEthisProcessInfo()
Definition: OMEprocInfo.h:72
OMEentityID id
Definition: OMEprocInfo.h:68
virtual const OMEtype getValue() const override
Definition: OMEdebugInfo.h:269
virtual void setValue(const OMEtype &newV) override
Set the variable's value.
Definition: OMEdebugInfo.h:200
char * malloc(unsigned int bytes)
Definition: test_malloc.c:441
OME debug and profiling interfaces.
FARGOS CPU tick routines.
int pamConvFunc(int numMess, struct pam_message **msg, struct pam_response **pam_resp, void *appData)
Definition: pamtest.c:10
#define VISTA_HOSTNAME
Definition: OMEprocInfo.cpp:29
#define OME_DLL_EXPORT
Definition: compiler_hints.h:464
OMEprofileCounter< NUMTYPE > & operator=(const NUMTYPE v)
Definition: OMEdebugInfo.h:188
bool OMEverifyUserPassword(const char *userName, const char *password)
Definition: OMEpassword.cpp:63
#define _OME_PROC_INFO_H
Definition: tmp.o.cpp:973
int64_t OMErelativeMilliseconds()
Return a monotonically-increasing count of elapsed milliseconds.
Definition: OMEprocInfo.cpp:59