Pottu
Classes | Public Member Functions | Friends | List of all members
pottu::ContextHandle Class Reference

Handle to context used by specific class. More...

#include <ContextBase.hpp>

Classes

class  ProcessInstance
 

Public Member Functions

 ContextHandle (ContextBase &ctx, const std::string &name)
 
void logDebug (const std::string &message, uint64_t token=0)
 
void logInfo (const std::string &message, uint64_t token=0)
 
void logWarning (const std::string &message, uint64_t token=0)
 
void logError (const std::string &message, uint64_t token=0)
 
void logCritical (const std::string &message, uint64_t token=0)
 
const std::string & getName () const noexcept
 
double getTotalRunTime () const noexcept
 
uint64_t getNumOfRuns () const noexcept
 
ProcessInstance processInstance () noexcept
 

Friends

class ProcessInstance
 

Detailed Description

Handle to context used by specific class.

Logmessages printed via this handle contains information about the sender. This handle also contains user class specific information. For example process() method should call "auto proci = handle->processInstance()". Then afterwards the context can print information about the time spent in execution of this particular user class.


The documentation for this class was generated from the following file: