Austin Schuh | e1dafe4 | 2020-01-06 21:12:03 -0800 | [diff] [blame] | 1 | #ifndef AOS_EVENTS_SIMPLE_CHANNEL_H_ |
| 2 | #define AOS_EVENTS_SIMPLE_CHANNEL_H_ |
| 3 | |
| 4 | #include <string> |
| 5 | |
| 6 | #include "aos/configuration_generated.h" |
| 7 | |
| 8 | namespace aos { |
| 9 | |
| 10 | // Structure used to store both a name and a type and look it up in a map. |
| 11 | struct SimpleChannel { |
| 12 | SimpleChannel(const Channel *channel); |
| 13 | |
| 14 | std::string name; |
| 15 | std::string type; |
| 16 | |
| 17 | std::string DebugString() const; |
| 18 | |
| 19 | bool operator==(const SimpleChannel &other) const; |
| 20 | bool operator<(const SimpleChannel &other) const; |
| 21 | }; |
| 22 | |
| 23 | } // namespace aos |
| 24 | |
| 25 | #endif // AOS_EVENTS_SIMPLE_CHANNEL_H_ |