RTC Toolkit 6.0.0-pre2
Loading...
Searching...
No Matches
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)
 
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

      @param stop_token Indicates when activity is requested to stop.
      @param arg Provides arguments for measurement to be performed.
      @return JSON measurement result.

      \par Thread Safety
 \parblock \ref thread-safety "thread-safe" --  Method is invoked from unspecified thread and must be thread safe. \endparblock
      \par Exception Safety
 \parblock \ref 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: