CTRE Phoenix C++ 5.33.1
ILoopable.h
Go to the documentation of this file.
1/* Copyright (C) Cross The Road Electronics 2024 */
2#pragma once
3
4namespace ctre { namespace phoenix { namespace tasking {
5
6/**
7 * Interface for loopable objects
8 */
10public:
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}}}
Interface for loopable objects.
Definition: ILoopable.h:9
virtual void OnLoop()=0
Function called every loop.
virtual void OnStop()=0
Function called when object stops.
virtual ~ILoopable()
Definition: ILoopable.h:11
virtual void OnStart()=0
Function called when object starts.
namespace ctre
Definition: paramEnum.h:5