Daniel Petti | dfc90ba | 2015-02-17 21:42:15 -0800 | [diff] [blame] | 1 | #ifndef FRC971_ACTORS_STACK_ACTOR_H_ |
| 2 | #define FRC971_ACTORS_STACK_ACTOR_H_ |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | #include <memory> |
| 7 | |
| 8 | #include "aos/common/actions/actions.h" |
| 9 | #include "aos/common/actions/actor.h" |
| 10 | #include "frc971/actors/stack_action.q.h" |
| 11 | |
| 12 | namespace frc971 { |
| 13 | namespace actors { |
| 14 | |
| 15 | class StackActor |
| 16 | : public aos::common::actions::ActorBase<StackActionQueueGroup> { |
| 17 | public: |
| 18 | explicit StackActor(StackActionQueueGroup *queues); |
| 19 | |
| 20 | bool RunAction(const uint32_t&) override; |
| 21 | }; |
| 22 | |
| 23 | typedef aos::common::actions::TypedAction<StackActionQueueGroup> StackAction; |
| 24 | |
| 25 | // Makes a new stackActor action. |
| 26 | ::std::unique_ptr<StackAction> MakeStackAction(); |
| 27 | |
| 28 | } // namespace actors |
| 29 | } // namespace frc971 |
| 30 | |
| 31 | #endif |