Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Context Class Reference
Inheritance diagram for Context:
Inheritance graph
[legend]
Collaboration diagram for Context:
Collaboration graph
[legend]

Public Member Functions

 Context (const std::string &basename=__FUNCTION__)
 
 Context (const Context &ctx)
 
long int getId () const
 
const std::string & getName () const
 
virtual drain::VariableMapgetStatusMap (bool update=true)
 A long description of context variables and other resources. More...
 
const VariablegetStatus (const std::string &key, bool update) const
 
template<class T >
void setStatus (const std::string &key, const T &value)
 
virtual void report (StatusFlags &flags)
 Report status. Typically, report final status of a thread to its base context. More...
 

Public Attributes

const std::string basename
 Used by copy const.
 
Log log
 
StatusFlags statusFlags
 Optional log filename (syntax): when defined, automatically opened by CommandBank::run() More...
 
bool SCRIPT_DEFINED
 

Protected Member Functions

void init ()
 
virtual void updateStatus () const
 

Protected Attributes

const long int id
 
const std::string name
 
drain::VariableMap statusMap
 

Member Function Documentation

◆ getStatusMap()

virtual drain::VariableMap& getStatusMap ( bool  update = true)
inlinevirtual

A long description of context variables and other resources.

The basic version saves id, status flags and (expanded) logFile name

◆ report()

virtual void report ( StatusFlags flags)
inlinevirtual

Report status. Typically, report final status of a thread to its base context.

Derived classes may handle and reset some flags before reporting.

Member Data Documentation

◆ statusFlags

StatusFlags statusFlags

Optional log filename (syntax): when defined, automatically opened by CommandBank::run()

Optional facility for compact bookkeeping of issues, also in running a thread.


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