CTRE Phoenix C++
5.35.1
Loading...
Searching...
No Matches
ILoopable.h
Go to the documentation of this file.
1
/* Copyright (C) Cross The Road Electronics 2024 */
2
#pragma once
3
4
namespace
ctre
{
namespace
phoenix {
namespace
tasking {
5
6
/**
7
* Interface for loopable objects
8
*/
9
class
ILoopable
{
10
public
:
11
virtual
~ILoopable
(){}
12
/**
13
* Function called when object starts
14
*/
15
virtual
void
OnStart
() = 0;
16
/**
17
* Function called every loop
18
*/
19
virtual
void
OnLoop
() = 0;
20
/**
21
* @return true if object is done
22
*/
23
virtual
bool
IsDone
() = 0;
24
/**
25
* Function called when object stops
26
*/
27
virtual
void
OnStop
() = 0;
28
};
29
}}}
ctre::phoenix::tasking::ILoopable
Interface for loopable objects.
Definition
ILoopable.h:9
ctre::phoenix::tasking::ILoopable::OnLoop
virtual void OnLoop()=0
Function called every loop.
ctre::phoenix::tasking::ILoopable::OnStop
virtual void OnStop()=0
Function called when object stops.
ctre::phoenix::tasking::ILoopable::~ILoopable
virtual ~ILoopable()
Definition
ILoopable.h:11
ctre::phoenix::tasking::ILoopable::IsDone
virtual bool IsDone()=0
ctre::phoenix::tasking::ILoopable::OnStart
virtual void OnStart()=0
Function called when object starts.
ctre
WPI Compliant CANcoder class.
Definition
CANCoderStatusFrame.h:4
ctre
phoenix
tasking
ILoopable.h
Generated by
1.12.0