Comran Morshed | 2f7b467 | 2016-01-23 14:27:34 +0000 | [diff] [blame^] | 1 | #ifndef Y2016_ACTORS_SUPERSTRUCTURE_ACTOR_H_ |
| 2 | #define Y2016_ACTORS_SUPERSTRUCTURE_ACTOR_H_ |
| 3 | |
| 4 | #include <memory> |
| 5 | |
| 6 | #include "aos/common/actions/actor.h" |
| 7 | #include "aos/common/actions/actions.h" |
| 8 | #include "y2016/actors/superstructure_action.q.h" |
| 9 | |
| 10 | namespace y2016 { |
| 11 | namespace actors { |
| 12 | |
| 13 | class SuperstructureActor |
| 14 | : public ::aos::common::actions::ActorBase<SuperstructureActionQueueGroup> { |
| 15 | public: |
| 16 | explicit SuperstructureActor(SuperstructureActionQueueGroup* s); |
| 17 | |
| 18 | bool RunAction(const actors::SuperstructureActionParams& params) override; |
| 19 | }; |
| 20 | |
| 21 | using SuperstructureAction = |
| 22 | ::aos::common::actions::TypedAction<SuperstructureActionQueueGroup>; |
| 23 | |
| 24 | // Makes a new SuperstructureActor action. |
| 25 | ::std::unique_ptr<SuperstructureAction> MakeSuperstructureAction( |
| 26 | const ::y2016::actors::SuperstructureActionParams& params); |
| 27 | |
| 28 | } // namespace actors |
| 29 | } // namespace y2016 |
| 30 | |
| 31 | #endif // Y2016_ACTORS_SUPERSTRUCTURE_ACTOR_H_ |