OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | Public Attributes | List of all members
OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand Struct Reference
Inheritance diagram for OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand:
Collaboration graph
[legend]

Public Member Functions

 ScheduleEnableCommand (WeakRcHandle< PeriodicTask > hb, bool reenable, const TimeDuration &period)
 
virtual void execute ()
 
- Public Member Functions inherited from OpenDDS::DCPS::ReactorInterceptor::Command
 Command ()
 
virtual ~Command ()
 
- Public Member Functions inherited from OpenDDS::DCPS::RcObject
virtual ~RcObject ()
 
virtual void _add_ref ()
 
virtual void _remove_ref ()
 
long ref_count () const
 
WeakObject_get_weak_object () const
 

Public Attributes

WeakRcHandle< PeriodicTask > const periodic_task_
 
const bool reenable_
 
const TimeDuration period_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenDDS::DCPS::ReactorInterceptor::Command
const ACE_Reactorreactor () const
 
ACE_Reactorreactor ()
 
- Protected Member Functions inherited from OpenDDS::DCPS::RcObject
 RcObject ()
 

Detailed Description

Definition at line 69 of file PeriodicTask.h.

Constructor & Destructor Documentation

◆ ScheduleEnableCommand()

OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand::ScheduleEnableCommand ( WeakRcHandle< PeriodicTask hb,
bool  reenable,
const TimeDuration period 
)
inline

Definition at line 70 of file PeriodicTask.h.

Member Function Documentation

◆ execute()

virtual void OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand::execute ( void  )
inlinevirtual

Implements OpenDDS::DCPS::ReactorInterceptor::Command.

Definition at line 74 of file PeriodicTask.h.

References period_, periodic_task_, and reenable_.

Referenced by OpenDDS::DCPS::PeriodicTask::handle_timeout().

75  {
76  RcHandle<PeriodicTask> periodic_task = periodic_task_.lock();
77  if (periodic_task) {
78  periodic_task->enable_i(reenable_, period_);
79  }
80  }
WeakRcHandle< PeriodicTask > const periodic_task_
Definition: PeriodicTask.h:82

Member Data Documentation

◆ period_

const TimeDuration OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand::period_

Definition at line 84 of file PeriodicTask.h.

Referenced by execute().

◆ periodic_task_

WeakRcHandle<PeriodicTask> const OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand::periodic_task_

◆ reenable_

const bool OpenDDS::DCPS::PeriodicTask::ScheduleEnableCommand::reenable_

Definition at line 83 of file PeriodicTask.h.

Referenced by execute().


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