22
22
23
23
#pragma once
24
24
25
- #include < list> // for list<>
26
- #include < map> // for map<>
27
- #include < memory> // for unique_ptr<>, shared_ptr<>
28
- #include < mutex> // for mutex
29
- #include < queue> // for queue<>
30
- #include < string> // for string
31
- #include < vector> // for vector<>
25
+ #include < list> // for list<>
26
+ #include < map> // for map<>
27
+ #include < memory> // for unique_ptr<>, shared_ptr<>
28
+ #include < mutex> // for mutex
29
+ #include < queue> // for queue<>
30
+ #include < string> // for string
31
+ #include < vector> // for vector<>
32
32
33
33
#include < sol/state_view.hpp> // for state_view
34
34
#include < sol/table.hpp> // for table
35
35
36
- #include < cloe/cloe_fwd.hpp> // for Registrar, DataBroker
37
- #include < cloe/trigger.hpp> // for Trigger, Action, Event, ...
36
+ #include < cloe/cloe_fwd.hpp> // for Registrar, DataBroker
37
+ #include < cloe/trigger.hpp> // for Trigger, Action, Event, ...
38
38
39
39
namespace engine {
40
40
@@ -49,7 +49,7 @@ class TriggerUnknownAction : public cloe::TriggerInvalid {
49
49
public:
50
50
TriggerUnknownAction (const std::string& key, const cloe::Conf& c)
51
51
: TriggerInvalid(c, " unknown action: " + key), key_(key) {}
52
- ~TriggerUnknownAction () noexcept override = default ;
52
+ ~TriggerUnknownAction () noexcept override = default ;
53
53
54
54
/* *
55
55
* Return key that is unknown.
@@ -120,12 +120,12 @@ class Coordinator {
120
120
/* *
121
121
* Return a list of names of all available actions that have been enrolled.
122
122
*/
123
- [[nodiscard]] std::vector <std::string> trigger_action_names () const ;
123
+ [[nodiscard]] std::map <std::string, fable::Json> trigger_action_schemas () const ;
124
124
125
125
/* *
126
126
* Return a list of names of all available events that have been enrolled.
127
127
*/
128
- [[nodiscard]] std::vector <std::string> trigger_event_names () const ;
128
+ [[nodiscard]] std::map <std::string, fable::Json> trigger_event_schemas () const ;
129
129
130
130
/* *
131
131
* Process any incoming triggers, clear the buffer, and trigger time-based
0 commit comments