RTC Toolkit 5.1.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rtctk::componentFramework::Measurable< Super >::BizLogicIf Class Reference

Business logic interface for Measurable mixin. More...

#include <rtctk/componentFramework/measurable.hpp>

Inheritance diagram for rtctk::componentFramework::Measurable< Super >::BizLogicIf:

Public Member Functions

virtual JsonPayload ActivityMeasuring (StopToken stop_token, const JsonPayload &arg)
 Activity executed in its own thread that peforms the requested measurement specified by JSON argument.
 
virtual bool GuardMeasuringAllowed (const JsonPayload &arg)
 Determines if measurement is possible at this time with the provided argument.
 

Detailed Description

template<typename Super>
class rtctk::componentFramework::Measurable< Super >::BizLogicIf

Business logic interface for Measurable mixin.

Member Function Documentation

◆ ActivityMeasuring()

template<typename Super >
virtual JsonPayload rtctk::componentFramework::Measurable< Super >::BizLogicIf::ActivityMeasuring ( StopToken stop_token,
const JsonPayload & arg )
inlinevirtual

Activity executed in its own thread that peforms the requested measurement specified by JSON argument.

Parameters
stop_tokenIndicates when activity is requested to stop.
argProvides arguments for measurement to be performed.
Returns
JSON measurement result.
Thread Safety
thread-safe – Method is invoked from unspecified thread and must be thread safe.
Exception Safety
basic – Method may throw exception. The exception message will returned to requestor.

◆ GuardMeasuringAllowed()

template<typename Super >
virtual bool rtctk::componentFramework::Measurable< Super >::BizLogicIf::GuardMeasuringAllowed ( const JsonPayload & arg)
inlinevirtual

Determines if measurement is possible at this time with the provided argument.

Parameters
argProvides arguments for measurement to be performed.
Returns
true if measurement is allowed.
false if measurement is disallowed. This results in the command being rejected.
Exception Safety
basic – Method may throw which will result in measure request being rejected.

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