|
GKD.RoboCtrl
|
组合式解析器,可顺序堆叠多个数据解析单元。 更多...
组合式解析器,可顺序堆叠多个数据解析单元。
#include <base.hpp>
Public 类型 | |
| template<int N> | |
| using | parser_type = std::tuple_element_t< N, std::tuple< parser_types... > > |
| template<int N> | |
| using | data_type = typename parser_type< N >::data_type |
Public 成员函数 | |
| size_t | parse (byte_span data) |
| 依次执行所有解析器。 | |
| template<int N> | |
| auto | data () -> data_type< N > |
| 获取指定序号解析器的解析结果。 | |
Public 属性 | |
| std::tuple< parser_types... > | parsers |
| using roboctrl::io::combined_parser< parser_types >::data_type = typename parser_type<N>::data_type |
| using roboctrl::io::combined_parser< parser_types >::parser_type = std::tuple_element_t<N,std::tuple<parser_types...> > |
|
inline |
获取指定序号解析器的解析结果。
被这些函数引用 roboctrl::io::combined_parser< parser_types >::parse().
|
inline |
依次执行所有解析器。
| std::tuple<parser_types...> roboctrl::io::combined_parser< parser_types >::parsers |