comparison vamp-capnp/piper.capnp.h @ 247:8a031eb9a25f

Merge branch 'output-type-uri'
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 15 Jun 2017 09:52:01 +0100
parents 02de5df3a884
children
comparison
equal deleted inserted replaced
219:db929669e7d3 247:8a031eb9a25f
4 #ifndef CAPNP_INCLUDED_c4b1c6c44c999206_ 4 #ifndef CAPNP_INCLUDED_c4b1c6c44c999206_
5 #define CAPNP_INCLUDED_c4b1c6c44c999206_ 5 #define CAPNP_INCLUDED_c4b1c6c44c999206_
6 6
7 #include <capnp/generated-header-support.h> 7 #include <capnp/generated-header-support.h>
8 8
9 #if CAPNP_VERSION != 6000 9 #if CAPNP_VERSION != 7000
10 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library." 10 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
11 #endif 11 #endif
12 12
13 13
14 namespace capnp { 14 namespace capnp {
21 ONE_SAMPLE_PER_STEP, 21 ONE_SAMPLE_PER_STEP,
22 FIXED_SAMPLE_RATE, 22 FIXED_SAMPLE_RATE,
23 VARIABLE_SAMPLE_RATE, 23 VARIABLE_SAMPLE_RATE,
24 }; 24 };
25 CAPNP_DECLARE_ENUM(SampleType, eca23e4a04bdfeb2); 25 CAPNP_DECLARE_ENUM(SampleType, eca23e4a04bdfeb2);
26 CAPNP_DECLARE_SCHEMA(a88eab3ec4264cba);
26 CAPNP_DECLARE_SCHEMA(b2d0c825aac8249c); 27 CAPNP_DECLARE_SCHEMA(b2d0c825aac8249c);
27 CAPNP_DECLARE_SCHEMA(902c6065e1be824a); 28 CAPNP_DECLARE_SCHEMA(902c6065e1be824a);
28 CAPNP_DECLARE_SCHEMA(f50fb3b9c1bf75f4); 29 CAPNP_DECLARE_SCHEMA(f50fb3b9c1bf75f4);
29 enum class InputDomain_f50fb3b9c1bf75f4: uint16_t { 30 enum class InputDomain_f50fb3b9c1bf75f4: uint16_t {
30 TIME_DOMAIN, 31 TIME_DOMAIN,
31 FREQUENCY_DOMAIN, 32 FREQUENCY_DOMAIN,
32 }; 33 };
33 CAPNP_DECLARE_ENUM(InputDomain, f50fb3b9c1bf75f4); 34 CAPNP_DECLARE_ENUM(InputDomain, f50fb3b9c1bf75f4);
34 CAPNP_DECLARE_SCHEMA(b83ac85463e6caa1); 35 CAPNP_DECLARE_SCHEMA(b83ac85463e6caa1);
36 CAPNP_DECLARE_SCHEMA(c4c9a0371fe76e1c);
35 CAPNP_DECLARE_SCHEMA(84d515888a427d07); 37 CAPNP_DECLARE_SCHEMA(84d515888a427d07);
36 CAPNP_DECLARE_SCHEMA(c6f3f05f2bc614ba); 38 CAPNP_DECLARE_SCHEMA(c6f3f05f2bc614ba);
37 CAPNP_DECLARE_SCHEMA(d6a172208c9a1760); 39 CAPNP_DECLARE_SCHEMA(d6a172208c9a1760);
38 CAPNP_DECLARE_SCHEMA(ffa3fccceb684869); 40 CAPNP_DECLARE_SCHEMA(ffa3fccceb684869);
39 CAPNP_DECLARE_SCHEMA(ab2572c346316b24); 41 CAPNP_DECLARE_SCHEMA(ab2572c346316b24);
102 }; 104 };
103 }; 105 };
104 106
105 typedef ::capnp::schemas::SampleType_eca23e4a04bdfeb2 SampleType; 107 typedef ::capnp::schemas::SampleType_eca23e4a04bdfeb2 SampleType;
106 108
109 struct StaticOutputDescriptor {
110 StaticOutputDescriptor() = delete;
111
112 class Reader;
113 class Builder;
114 class Pipeline;
115
116 struct _capnpPrivate {
117 CAPNP_DECLARE_STRUCT_HEADER(a88eab3ec4264cba, 0, 1)
118 #if !CAPNP_LITE
119 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
120 #endif // !CAPNP_LITE
121 };
122 };
123
107 struct ConfiguredOutputDescriptor { 124 struct ConfiguredOutputDescriptor {
108 ConfiguredOutputDescriptor() = delete; 125 ConfiguredOutputDescriptor() = delete;
109 126
110 class Reader; 127 class Reader;
111 class Builder; 128 class Builder;
125 class Reader; 142 class Reader;
126 class Builder; 143 class Builder;
127 class Pipeline; 144 class Pipeline;
128 145
129 struct _capnpPrivate { 146 struct _capnpPrivate {
130 CAPNP_DECLARE_STRUCT_HEADER(902c6065e1be824a, 0, 2) 147 CAPNP_DECLARE_STRUCT_HEADER(902c6065e1be824a, 0, 3)
131 #if !CAPNP_LITE 148 #if !CAPNP_LITE
132 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 149 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
133 #endif // !CAPNP_LITE 150 #endif // !CAPNP_LITE
134 }; 151 };
135 }; 152 };
140 ExtractorStaticData() = delete; 157 ExtractorStaticData() = delete;
141 158
142 class Reader; 159 class Reader;
143 class Builder; 160 class Builder;
144 class Pipeline; 161 class Pipeline;
162 struct SOPair;
145 163
146 struct _capnpPrivate { 164 struct _capnpPrivate {
147 CAPNP_DECLARE_STRUCT_HEADER(b83ac85463e6caa1, 2, 8) 165 CAPNP_DECLARE_STRUCT_HEADER(b83ac85463e6caa1, 2, 9)
166 #if !CAPNP_LITE
167 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
168 #endif // !CAPNP_LITE
169 };
170 };
171
172 struct ExtractorStaticData::SOPair {
173 SOPair() = delete;
174
175 class Reader;
176 class Builder;
177 class Pipeline;
178
179 struct _capnpPrivate {
180 CAPNP_DECLARE_STRUCT_HEADER(c4c9a0371fe76e1c, 0, 2)
148 #if !CAPNP_LITE 181 #if !CAPNP_LITE
149 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; } 182 static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
150 #endif // !CAPNP_LITE 183 #endif // !CAPNP_LITE
151 }; 184 };
152 }; 185 };
790 template <typename, ::capnp::Kind> 823 template <typename, ::capnp::Kind>
791 friend struct ::capnp::ToDynamic_; 824 friend struct ::capnp::ToDynamic_;
792 }; 825 };
793 #endif // !CAPNP_LITE 826 #endif // !CAPNP_LITE
794 827
828 class StaticOutputDescriptor::Reader {
829 public:
830 typedef StaticOutputDescriptor Reads;
831
832 Reader() = default;
833 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
834
835 inline ::capnp::MessageSize totalSize() const {
836 return _reader.totalSize().asPublic();
837 }
838
839 #if !CAPNP_LITE
840 inline ::kj::StringTree toString() const {
841 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
842 }
843 #endif // !CAPNP_LITE
844
845 inline bool hasTypeURI() const;
846 inline ::capnp::Text::Reader getTypeURI() const;
847
848 private:
849 ::capnp::_::StructReader _reader;
850 template <typename, ::capnp::Kind>
851 friend struct ::capnp::ToDynamic_;
852 template <typename, ::capnp::Kind>
853 friend struct ::capnp::_::PointerHelpers;
854 template <typename, ::capnp::Kind>
855 friend struct ::capnp::List;
856 friend class ::capnp::MessageBuilder;
857 friend class ::capnp::Orphanage;
858 };
859
860 class StaticOutputDescriptor::Builder {
861 public:
862 typedef StaticOutputDescriptor Builds;
863
864 Builder() = delete; // Deleted to discourage incorrect usage.
865 // You can explicitly initialize to nullptr instead.
866 inline Builder(decltype(nullptr)) {}
867 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
868 inline operator Reader() const { return Reader(_builder.asReader()); }
869 inline Reader asReader() const { return *this; }
870
871 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
872 #if !CAPNP_LITE
873 inline ::kj::StringTree toString() const { return asReader().toString(); }
874 #endif // !CAPNP_LITE
875
876 inline bool hasTypeURI();
877 inline ::capnp::Text::Builder getTypeURI();
878 inline void setTypeURI( ::capnp::Text::Reader value);
879 inline ::capnp::Text::Builder initTypeURI(unsigned int size);
880 inline void adoptTypeURI(::capnp::Orphan< ::capnp::Text>&& value);
881 inline ::capnp::Orphan< ::capnp::Text> disownTypeURI();
882
883 private:
884 ::capnp::_::StructBuilder _builder;
885 template <typename, ::capnp::Kind>
886 friend struct ::capnp::ToDynamic_;
887 friend class ::capnp::Orphanage;
888 template <typename, ::capnp::Kind>
889 friend struct ::capnp::_::PointerHelpers;
890 };
891
892 #if !CAPNP_LITE
893 class StaticOutputDescriptor::Pipeline {
894 public:
895 typedef StaticOutputDescriptor Pipelines;
896
897 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
898 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
899 : _typeless(kj::mv(typeless)) {}
900
901 private:
902 ::capnp::AnyPointer::Pipeline _typeless;
903 friend class ::capnp::PipelineHook;
904 template <typename, ::capnp::Kind>
905 friend struct ::capnp::ToDynamic_;
906 };
907 #endif // !CAPNP_LITE
908
795 class ConfiguredOutputDescriptor::Reader { 909 class ConfiguredOutputDescriptor::Reader {
796 public: 910 public:
797 typedef ConfiguredOutputDescriptor Reads; 911 typedef ConfiguredOutputDescriptor Reads;
798 912
799 Reader() = default; 913 Reader() = default;
955 inline ::piper::Basic::Reader getBasic() const; 1069 inline ::piper::Basic::Reader getBasic() const;
956 1070
957 inline bool hasConfigured() const; 1071 inline bool hasConfigured() const;
958 inline ::piper::ConfiguredOutputDescriptor::Reader getConfigured() const; 1072 inline ::piper::ConfiguredOutputDescriptor::Reader getConfigured() const;
959 1073
1074 inline bool hasStatic() const;
1075 inline ::piper::StaticOutputDescriptor::Reader getStatic() const;
1076
960 private: 1077 private:
961 ::capnp::_::StructReader _reader; 1078 ::capnp::_::StructReader _reader;
962 template <typename, ::capnp::Kind> 1079 template <typename, ::capnp::Kind>
963 friend struct ::capnp::ToDynamic_; 1080 friend struct ::capnp::ToDynamic_;
964 template <typename, ::capnp::Kind> 1081 template <typename, ::capnp::Kind>
997 inline void setConfigured( ::piper::ConfiguredOutputDescriptor::Reader value); 1114 inline void setConfigured( ::piper::ConfiguredOutputDescriptor::Reader value);
998 inline ::piper::ConfiguredOutputDescriptor::Builder initConfigured(); 1115 inline ::piper::ConfiguredOutputDescriptor::Builder initConfigured();
999 inline void adoptConfigured(::capnp::Orphan< ::piper::ConfiguredOutputDescriptor>&& value); 1116 inline void adoptConfigured(::capnp::Orphan< ::piper::ConfiguredOutputDescriptor>&& value);
1000 inline ::capnp::Orphan< ::piper::ConfiguredOutputDescriptor> disownConfigured(); 1117 inline ::capnp::Orphan< ::piper::ConfiguredOutputDescriptor> disownConfigured();
1001 1118
1119 inline bool hasStatic();
1120 inline ::piper::StaticOutputDescriptor::Builder getStatic();
1121 inline void setStatic( ::piper::StaticOutputDescriptor::Reader value);
1122 inline ::piper::StaticOutputDescriptor::Builder initStatic();
1123 inline void adoptStatic(::capnp::Orphan< ::piper::StaticOutputDescriptor>&& value);
1124 inline ::capnp::Orphan< ::piper::StaticOutputDescriptor> disownStatic();
1125
1002 private: 1126 private:
1003 ::capnp::_::StructBuilder _builder; 1127 ::capnp::_::StructBuilder _builder;
1004 template <typename, ::capnp::Kind> 1128 template <typename, ::capnp::Kind>
1005 friend struct ::capnp::ToDynamic_; 1129 friend struct ::capnp::ToDynamic_;
1006 friend class ::capnp::Orphanage; 1130 friend class ::capnp::Orphanage;
1017 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1141 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1018 : _typeless(kj::mv(typeless)) {} 1142 : _typeless(kj::mv(typeless)) {}
1019 1143
1020 inline ::piper::Basic::Pipeline getBasic(); 1144 inline ::piper::Basic::Pipeline getBasic();
1021 inline ::piper::ConfiguredOutputDescriptor::Pipeline getConfigured(); 1145 inline ::piper::ConfiguredOutputDescriptor::Pipeline getConfigured();
1146 inline ::piper::StaticOutputDescriptor::Pipeline getStatic();
1022 private: 1147 private:
1023 ::capnp::AnyPointer::Pipeline _typeless; 1148 ::capnp::AnyPointer::Pipeline _typeless;
1024 friend class ::capnp::PipelineHook; 1149 friend class ::capnp::PipelineHook;
1025 template <typename, ::capnp::Kind> 1150 template <typename, ::capnp::Kind>
1026 friend struct ::capnp::ToDynamic_; 1151 friend struct ::capnp::ToDynamic_;
1073 1198
1074 inline ::piper::InputDomain getInputDomain() const; 1199 inline ::piper::InputDomain getInputDomain() const;
1075 1200
1076 inline bool hasBasicOutputInfo() const; 1201 inline bool hasBasicOutputInfo() const;
1077 inline ::capnp::List< ::piper::Basic>::Reader getBasicOutputInfo() const; 1202 inline ::capnp::List< ::piper::Basic>::Reader getBasicOutputInfo() const;
1203
1204 inline bool hasStaticOutputInfo() const;
1205 inline ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Reader getStaticOutputInfo() const;
1078 1206
1079 private: 1207 private:
1080 ::capnp::_::StructReader _reader; 1208 ::capnp::_::StructReader _reader;
1081 template <typename, ::capnp::Kind> 1209 template <typename, ::capnp::Kind>
1082 friend struct ::capnp::ToDynamic_; 1210 friend struct ::capnp::ToDynamic_;
1172 inline void setBasicOutputInfo( ::capnp::List< ::piper::Basic>::Reader value); 1300 inline void setBasicOutputInfo( ::capnp::List< ::piper::Basic>::Reader value);
1173 inline ::capnp::List< ::piper::Basic>::Builder initBasicOutputInfo(unsigned int size); 1301 inline ::capnp::List< ::piper::Basic>::Builder initBasicOutputInfo(unsigned int size);
1174 inline void adoptBasicOutputInfo(::capnp::Orphan< ::capnp::List< ::piper::Basic>>&& value); 1302 inline void adoptBasicOutputInfo(::capnp::Orphan< ::capnp::List< ::piper::Basic>>&& value);
1175 inline ::capnp::Orphan< ::capnp::List< ::piper::Basic>> disownBasicOutputInfo(); 1303 inline ::capnp::Orphan< ::capnp::List< ::piper::Basic>> disownBasicOutputInfo();
1176 1304
1305 inline bool hasStaticOutputInfo();
1306 inline ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Builder getStaticOutputInfo();
1307 inline void setStaticOutputInfo( ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Reader value);
1308 inline ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Builder initStaticOutputInfo(unsigned int size);
1309 inline void adoptStaticOutputInfo(::capnp::Orphan< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>&& value);
1310 inline ::capnp::Orphan< ::capnp::List< ::piper::ExtractorStaticData::SOPair>> disownStaticOutputInfo();
1311
1177 private: 1312 private:
1178 ::capnp::_::StructBuilder _builder; 1313 ::capnp::_::StructBuilder _builder;
1179 template <typename, ::capnp::Kind> 1314 template <typename, ::capnp::Kind>
1180 friend struct ::capnp::ToDynamic_; 1315 friend struct ::capnp::ToDynamic_;
1181 friend class ::capnp::Orphanage; 1316 friend class ::capnp::Orphanage;
1191 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {} 1326 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1192 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless) 1327 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1193 : _typeless(kj::mv(typeless)) {} 1328 : _typeless(kj::mv(typeless)) {}
1194 1329
1195 inline ::piper::Basic::Pipeline getBasic(); 1330 inline ::piper::Basic::Pipeline getBasic();
1331 private:
1332 ::capnp::AnyPointer::Pipeline _typeless;
1333 friend class ::capnp::PipelineHook;
1334 template <typename, ::capnp::Kind>
1335 friend struct ::capnp::ToDynamic_;
1336 };
1337 #endif // !CAPNP_LITE
1338
1339 class ExtractorStaticData::SOPair::Reader {
1340 public:
1341 typedef SOPair Reads;
1342
1343 Reader() = default;
1344 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1345
1346 inline ::capnp::MessageSize totalSize() const {
1347 return _reader.totalSize().asPublic();
1348 }
1349
1350 #if !CAPNP_LITE
1351 inline ::kj::StringTree toString() const {
1352 return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1353 }
1354 #endif // !CAPNP_LITE
1355
1356 inline bool hasOutput() const;
1357 inline ::capnp::Text::Reader getOutput() const;
1358
1359 inline bool hasStatic() const;
1360 inline ::piper::StaticOutputDescriptor::Reader getStatic() const;
1361
1362 private:
1363 ::capnp::_::StructReader _reader;
1364 template <typename, ::capnp::Kind>
1365 friend struct ::capnp::ToDynamic_;
1366 template <typename, ::capnp::Kind>
1367 friend struct ::capnp::_::PointerHelpers;
1368 template <typename, ::capnp::Kind>
1369 friend struct ::capnp::List;
1370 friend class ::capnp::MessageBuilder;
1371 friend class ::capnp::Orphanage;
1372 };
1373
1374 class ExtractorStaticData::SOPair::Builder {
1375 public:
1376 typedef SOPair Builds;
1377
1378 Builder() = delete; // Deleted to discourage incorrect usage.
1379 // You can explicitly initialize to nullptr instead.
1380 inline Builder(decltype(nullptr)) {}
1381 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1382 inline operator Reader() const { return Reader(_builder.asReader()); }
1383 inline Reader asReader() const { return *this; }
1384
1385 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1386 #if !CAPNP_LITE
1387 inline ::kj::StringTree toString() const { return asReader().toString(); }
1388 #endif // !CAPNP_LITE
1389
1390 inline bool hasOutput();
1391 inline ::capnp::Text::Builder getOutput();
1392 inline void setOutput( ::capnp::Text::Reader value);
1393 inline ::capnp::Text::Builder initOutput(unsigned int size);
1394 inline void adoptOutput(::capnp::Orphan< ::capnp::Text>&& value);
1395 inline ::capnp::Orphan< ::capnp::Text> disownOutput();
1396
1397 inline bool hasStatic();
1398 inline ::piper::StaticOutputDescriptor::Builder getStatic();
1399 inline void setStatic( ::piper::StaticOutputDescriptor::Reader value);
1400 inline ::piper::StaticOutputDescriptor::Builder initStatic();
1401 inline void adoptStatic(::capnp::Orphan< ::piper::StaticOutputDescriptor>&& value);
1402 inline ::capnp::Orphan< ::piper::StaticOutputDescriptor> disownStatic();
1403
1404 private:
1405 ::capnp::_::StructBuilder _builder;
1406 template <typename, ::capnp::Kind>
1407 friend struct ::capnp::ToDynamic_;
1408 friend class ::capnp::Orphanage;
1409 template <typename, ::capnp::Kind>
1410 friend struct ::capnp::_::PointerHelpers;
1411 };
1412
1413 #if !CAPNP_LITE
1414 class ExtractorStaticData::SOPair::Pipeline {
1415 public:
1416 typedef SOPair Pipelines;
1417
1418 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1419 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1420 : _typeless(kj::mv(typeless)) {}
1421
1422 inline ::piper::StaticOutputDescriptor::Pipeline getStatic();
1196 private: 1423 private:
1197 ::capnp::AnyPointer::Pipeline _typeless; 1424 ::capnp::AnyPointer::Pipeline _typeless;
1198 friend class ::capnp::PipelineHook; 1425 friend class ::capnp::PipelineHook;
1199 template <typename, ::capnp::Kind> 1426 template <typename, ::capnp::Kind>
1200 friend struct ::capnp::ToDynamic_; 1427 friend struct ::capnp::ToDynamic_;
3837 inline ::capnp::Orphan< ::capnp::List< ::capnp::Text>> ParameterDescriptor::Builder::disownValueNames() { 4064 inline ::capnp::Orphan< ::capnp::List< ::capnp::Text>> ParameterDescriptor::Builder::disownValueNames() {
3838 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::disown(_builder.getPointerField( 4065 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::disown(_builder.getPointerField(
3839 ::capnp::bounded<2>() * ::capnp::POINTERS)); 4066 ::capnp::bounded<2>() * ::capnp::POINTERS));
3840 } 4067 }
3841 4068
4069 inline bool StaticOutputDescriptor::Reader::hasTypeURI() const {
4070 return !_reader.getPointerField(
4071 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4072 }
4073 inline bool StaticOutputDescriptor::Builder::hasTypeURI() {
4074 return !_builder.getPointerField(
4075 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4076 }
4077 inline ::capnp::Text::Reader StaticOutputDescriptor::Reader::getTypeURI() const {
4078 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
4079 ::capnp::bounded<0>() * ::capnp::POINTERS));
4080 }
4081 inline ::capnp::Text::Builder StaticOutputDescriptor::Builder::getTypeURI() {
4082 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
4083 ::capnp::bounded<0>() * ::capnp::POINTERS));
4084 }
4085 inline void StaticOutputDescriptor::Builder::setTypeURI( ::capnp::Text::Reader value) {
4086 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
4087 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4088 }
4089 inline ::capnp::Text::Builder StaticOutputDescriptor::Builder::initTypeURI(unsigned int size) {
4090 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
4091 ::capnp::bounded<0>() * ::capnp::POINTERS), size);
4092 }
4093 inline void StaticOutputDescriptor::Builder::adoptTypeURI(
4094 ::capnp::Orphan< ::capnp::Text>&& value) {
4095 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
4096 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4097 }
4098 inline ::capnp::Orphan< ::capnp::Text> StaticOutputDescriptor::Builder::disownTypeURI() {
4099 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
4100 ::capnp::bounded<0>() * ::capnp::POINTERS));
4101 }
4102
3842 inline bool ConfiguredOutputDescriptor::Reader::hasUnit() const { 4103 inline bool ConfiguredOutputDescriptor::Reader::hasUnit() const {
3843 return !_reader.getPointerField( 4104 return !_reader.getPointerField(
3844 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4105 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
3845 } 4106 }
3846 inline bool ConfiguredOutputDescriptor::Builder::hasUnit() { 4107 inline bool ConfiguredOutputDescriptor::Builder::hasUnit() {
4129 inline ::capnp::Orphan< ::piper::ConfiguredOutputDescriptor> OutputDescriptor::Builder::disownConfigured() { 4390 inline ::capnp::Orphan< ::piper::ConfiguredOutputDescriptor> OutputDescriptor::Builder::disownConfigured() {
4130 return ::capnp::_::PointerHelpers< ::piper::ConfiguredOutputDescriptor>::disown(_builder.getPointerField( 4391 return ::capnp::_::PointerHelpers< ::piper::ConfiguredOutputDescriptor>::disown(_builder.getPointerField(
4131 ::capnp::bounded<1>() * ::capnp::POINTERS)); 4392 ::capnp::bounded<1>() * ::capnp::POINTERS));
4132 } 4393 }
4133 4394
4395 inline bool OutputDescriptor::Reader::hasStatic() const {
4396 return !_reader.getPointerField(
4397 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
4398 }
4399 inline bool OutputDescriptor::Builder::hasStatic() {
4400 return !_builder.getPointerField(
4401 ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
4402 }
4403 inline ::piper::StaticOutputDescriptor::Reader OutputDescriptor::Reader::getStatic() const {
4404 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::get(_reader.getPointerField(
4405 ::capnp::bounded<2>() * ::capnp::POINTERS));
4406 }
4407 inline ::piper::StaticOutputDescriptor::Builder OutputDescriptor::Builder::getStatic() {
4408 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::get(_builder.getPointerField(
4409 ::capnp::bounded<2>() * ::capnp::POINTERS));
4410 }
4411 #if !CAPNP_LITE
4412 inline ::piper::StaticOutputDescriptor::Pipeline OutputDescriptor::Pipeline::getStatic() {
4413 return ::piper::StaticOutputDescriptor::Pipeline(_typeless.getPointerField(2));
4414 }
4415 #endif // !CAPNP_LITE
4416 inline void OutputDescriptor::Builder::setStatic( ::piper::StaticOutputDescriptor::Reader value) {
4417 ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::set(_builder.getPointerField(
4418 ::capnp::bounded<2>() * ::capnp::POINTERS), value);
4419 }
4420 inline ::piper::StaticOutputDescriptor::Builder OutputDescriptor::Builder::initStatic() {
4421 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::init(_builder.getPointerField(
4422 ::capnp::bounded<2>() * ::capnp::POINTERS));
4423 }
4424 inline void OutputDescriptor::Builder::adoptStatic(
4425 ::capnp::Orphan< ::piper::StaticOutputDescriptor>&& value) {
4426 ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::adopt(_builder.getPointerField(
4427 ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value));
4428 }
4429 inline ::capnp::Orphan< ::piper::StaticOutputDescriptor> OutputDescriptor::Builder::disownStatic() {
4430 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::disown(_builder.getPointerField(
4431 ::capnp::bounded<2>() * ::capnp::POINTERS));
4432 }
4433
4134 inline bool ExtractorStaticData::Reader::hasKey() const { 4434 inline bool ExtractorStaticData::Reader::hasKey() const {
4135 return !_reader.getPointerField( 4435 return !_reader.getPointerField(
4136 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull(); 4436 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4137 } 4437 }
4138 inline bool ExtractorStaticData::Builder::hasKey() { 4438 inline bool ExtractorStaticData::Builder::hasKey() {
4468 ::capnp::bounded<7>() * ::capnp::POINTERS), kj::mv(value)); 4768 ::capnp::bounded<7>() * ::capnp::POINTERS), kj::mv(value));
4469 } 4769 }
4470 inline ::capnp::Orphan< ::capnp::List< ::piper::Basic>> ExtractorStaticData::Builder::disownBasicOutputInfo() { 4770 inline ::capnp::Orphan< ::capnp::List< ::piper::Basic>> ExtractorStaticData::Builder::disownBasicOutputInfo() {
4471 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::Basic>>::disown(_builder.getPointerField( 4771 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::Basic>>::disown(_builder.getPointerField(
4472 ::capnp::bounded<7>() * ::capnp::POINTERS)); 4772 ::capnp::bounded<7>() * ::capnp::POINTERS));
4773 }
4774
4775 inline bool ExtractorStaticData::Reader::hasStaticOutputInfo() const {
4776 return !_reader.getPointerField(
4777 ::capnp::bounded<8>() * ::capnp::POINTERS).isNull();
4778 }
4779 inline bool ExtractorStaticData::Builder::hasStaticOutputInfo() {
4780 return !_builder.getPointerField(
4781 ::capnp::bounded<8>() * ::capnp::POINTERS).isNull();
4782 }
4783 inline ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Reader ExtractorStaticData::Reader::getStaticOutputInfo() const {
4784 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>::get(_reader.getPointerField(
4785 ::capnp::bounded<8>() * ::capnp::POINTERS));
4786 }
4787 inline ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Builder ExtractorStaticData::Builder::getStaticOutputInfo() {
4788 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>::get(_builder.getPointerField(
4789 ::capnp::bounded<8>() * ::capnp::POINTERS));
4790 }
4791 inline void ExtractorStaticData::Builder::setStaticOutputInfo( ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Reader value) {
4792 ::capnp::_::PointerHelpers< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>::set(_builder.getPointerField(
4793 ::capnp::bounded<8>() * ::capnp::POINTERS), value);
4794 }
4795 inline ::capnp::List< ::piper::ExtractorStaticData::SOPair>::Builder ExtractorStaticData::Builder::initStaticOutputInfo(unsigned int size) {
4796 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>::init(_builder.getPointerField(
4797 ::capnp::bounded<8>() * ::capnp::POINTERS), size);
4798 }
4799 inline void ExtractorStaticData::Builder::adoptStaticOutputInfo(
4800 ::capnp::Orphan< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>&& value) {
4801 ::capnp::_::PointerHelpers< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>::adopt(_builder.getPointerField(
4802 ::capnp::bounded<8>() * ::capnp::POINTERS), kj::mv(value));
4803 }
4804 inline ::capnp::Orphan< ::capnp::List< ::piper::ExtractorStaticData::SOPair>> ExtractorStaticData::Builder::disownStaticOutputInfo() {
4805 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::ExtractorStaticData::SOPair>>::disown(_builder.getPointerField(
4806 ::capnp::bounded<8>() * ::capnp::POINTERS));
4807 }
4808
4809 inline bool ExtractorStaticData::SOPair::Reader::hasOutput() const {
4810 return !_reader.getPointerField(
4811 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4812 }
4813 inline bool ExtractorStaticData::SOPair::Builder::hasOutput() {
4814 return !_builder.getPointerField(
4815 ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4816 }
4817 inline ::capnp::Text::Reader ExtractorStaticData::SOPair::Reader::getOutput() const {
4818 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
4819 ::capnp::bounded<0>() * ::capnp::POINTERS));
4820 }
4821 inline ::capnp::Text::Builder ExtractorStaticData::SOPair::Builder::getOutput() {
4822 return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
4823 ::capnp::bounded<0>() * ::capnp::POINTERS));
4824 }
4825 inline void ExtractorStaticData::SOPair::Builder::setOutput( ::capnp::Text::Reader value) {
4826 ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
4827 ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4828 }
4829 inline ::capnp::Text::Builder ExtractorStaticData::SOPair::Builder::initOutput(unsigned int size) {
4830 return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
4831 ::capnp::bounded<0>() * ::capnp::POINTERS), size);
4832 }
4833 inline void ExtractorStaticData::SOPair::Builder::adoptOutput(
4834 ::capnp::Orphan< ::capnp::Text>&& value) {
4835 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
4836 ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4837 }
4838 inline ::capnp::Orphan< ::capnp::Text> ExtractorStaticData::SOPair::Builder::disownOutput() {
4839 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
4840 ::capnp::bounded<0>() * ::capnp::POINTERS));
4841 }
4842
4843 inline bool ExtractorStaticData::SOPair::Reader::hasStatic() const {
4844 return !_reader.getPointerField(
4845 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4846 }
4847 inline bool ExtractorStaticData::SOPair::Builder::hasStatic() {
4848 return !_builder.getPointerField(
4849 ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4850 }
4851 inline ::piper::StaticOutputDescriptor::Reader ExtractorStaticData::SOPair::Reader::getStatic() const {
4852 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::get(_reader.getPointerField(
4853 ::capnp::bounded<1>() * ::capnp::POINTERS));
4854 }
4855 inline ::piper::StaticOutputDescriptor::Builder ExtractorStaticData::SOPair::Builder::getStatic() {
4856 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::get(_builder.getPointerField(
4857 ::capnp::bounded<1>() * ::capnp::POINTERS));
4858 }
4859 #if !CAPNP_LITE
4860 inline ::piper::StaticOutputDescriptor::Pipeline ExtractorStaticData::SOPair::Pipeline::getStatic() {
4861 return ::piper::StaticOutputDescriptor::Pipeline(_typeless.getPointerField(1));
4862 }
4863 #endif // !CAPNP_LITE
4864 inline void ExtractorStaticData::SOPair::Builder::setStatic( ::piper::StaticOutputDescriptor::Reader value) {
4865 ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::set(_builder.getPointerField(
4866 ::capnp::bounded<1>() * ::capnp::POINTERS), value);
4867 }
4868 inline ::piper::StaticOutputDescriptor::Builder ExtractorStaticData::SOPair::Builder::initStatic() {
4869 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::init(_builder.getPointerField(
4870 ::capnp::bounded<1>() * ::capnp::POINTERS));
4871 }
4872 inline void ExtractorStaticData::SOPair::Builder::adoptStatic(
4873 ::capnp::Orphan< ::piper::StaticOutputDescriptor>&& value) {
4874 ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::adopt(_builder.getPointerField(
4875 ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
4876 }
4877 inline ::capnp::Orphan< ::piper::StaticOutputDescriptor> ExtractorStaticData::SOPair::Builder::disownStatic() {
4878 return ::capnp::_::PointerHelpers< ::piper::StaticOutputDescriptor>::disown(_builder.getPointerField(
4879 ::capnp::bounded<1>() * ::capnp::POINTERS));
4473 } 4880 }
4474 4881
4475 inline ::int32_t RealTime::Reader::getSec() const { 4882 inline ::int32_t RealTime::Reader::getSec() const {
4476 return _reader.getDataField< ::int32_t>( 4883 return _reader.getDataField< ::int32_t>(
4477 ::capnp::bounded<0>() * ::capnp::ELEMENTS); 4884 ::capnp::bounded<0>() * ::capnp::ELEMENTS);