comparison vamp-capnp/piper.capnp.h @ 127:5b113c87b6e6

Add and implement the "from" param for list request. The simple-server implementation is not yet correct.
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 02 Nov 2016 14:27:42 +0000
parents a0edd7c97d2d
children 3eb00e5c76c4
comparison
equal deleted inserted replaced
126:2004ec2b653e 127:5b113c87b6e6
267 class Reader; 267 class Reader;
268 class Builder; 268 class Builder;
269 class Pipeline; 269 class Pipeline;
270 270
271 struct _capnpPrivate { 271 struct _capnpPrivate {
272 CAPNP_DECLARE_STRUCT_HEADER(b54ff18dabd0d4e1, 0, 0) 272 CAPNP_DECLARE_STRUCT_HEADER(b54ff18dabd0d4e1, 0, 1)
273 #if !CAPNP_LITE 273 #if !CAPNP_LITE
274 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand; 274 static constexpr ::capnp::_::RawBrandedSchema const* brand = &schema->defaultBrand;
275 #endif // !CAPNP_LITE 275 #endif // !CAPNP_LITE
276 }; 276 };
277 }; 277 };
1862 inline ::kj::StringTree toString() const { 1862 inline ::kj::StringTree toString() const {
1863 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); 1863 return ::capnp::_::structString(_reader, *_capnpPrivate::brand);
1864 } 1864 }
1865 #endif // !CAPNP_LITE 1865 #endif // !CAPNP_LITE
1866 1866
1867 inline bool hasFrom() const;
1868 inline ::capnp::List< ::capnp::Text>::Reader getFrom() const;
1869
1867 private: 1870 private:
1868 ::capnp::_::StructReader _reader; 1871 ::capnp::_::StructReader _reader;
1869 template <typename, ::capnp::Kind> 1872 template <typename, ::capnp::Kind>
1870 friend struct ::capnp::ToDynamic_; 1873 friend struct ::capnp::ToDynamic_;
1871 template <typename, ::capnp::Kind> 1874 template <typename, ::capnp::Kind>
1889 1892
1890 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } 1893 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1891 #if !CAPNP_LITE 1894 #if !CAPNP_LITE
1892 inline ::kj::StringTree toString() const { return asReader().toString(); } 1895 inline ::kj::StringTree toString() const { return asReader().toString(); }
1893 #endif // !CAPNP_LITE 1896 #endif // !CAPNP_LITE
1897
1898 inline bool hasFrom();
1899 inline ::capnp::List< ::capnp::Text>::Builder getFrom();
1900 inline void setFrom( ::capnp::List< ::capnp::Text>::Reader value);
1901 inline void setFrom(::kj::ArrayPtr<const ::capnp::Text::Reader> value);
1902 inline ::capnp::List< ::capnp::Text>::Builder initFrom(unsigned int size);
1903 inline void adoptFrom(::capnp::Orphan< ::capnp::List< ::capnp::Text>>&& value);
1904 inline ::capnp::Orphan< ::capnp::List< ::capnp::Text>> disownFrom();
1894 1905
1895 private: 1906 private:
1896 ::capnp::_::StructBuilder _builder; 1907 ::capnp::_::StructBuilder _builder;
1897 template <typename, ::capnp::Kind> 1908 template <typename, ::capnp::Kind>
1898 friend struct ::capnp::ToDynamic_; 1909 friend struct ::capnp::ToDynamic_;
4837 inline void Configuration::PVPair::Builder::setValue(float value) { 4848 inline void Configuration::PVPair::Builder::setValue(float value) {
4838 _builder.setDataField<float>( 4849 _builder.setDataField<float>(
4839 0 * ::capnp::ELEMENTS, value); 4850 0 * ::capnp::ELEMENTS, value);
4840 } 4851 }
4841 4852
4853 inline bool ListRequest::Reader::hasFrom() const {
4854 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
4855 }
4856 inline bool ListRequest::Builder::hasFrom() {
4857 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
4858 }
4859 inline ::capnp::List< ::capnp::Text>::Reader ListRequest::Reader::getFrom() const {
4860 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::get(
4861 _reader.getPointerField(0 * ::capnp::POINTERS));
4862 }
4863 inline ::capnp::List< ::capnp::Text>::Builder ListRequest::Builder::getFrom() {
4864 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::get(
4865 _builder.getPointerField(0 * ::capnp::POINTERS));
4866 }
4867 inline void ListRequest::Builder::setFrom( ::capnp::List< ::capnp::Text>::Reader value) {
4868 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::set(
4869 _builder.getPointerField(0 * ::capnp::POINTERS), value);
4870 }
4871 inline void ListRequest::Builder::setFrom(::kj::ArrayPtr<const ::capnp::Text::Reader> value) {
4872 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::set(
4873 _builder.getPointerField(0 * ::capnp::POINTERS), value);
4874 }
4875 inline ::capnp::List< ::capnp::Text>::Builder ListRequest::Builder::initFrom(unsigned int size) {
4876 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::init(
4877 _builder.getPointerField(0 * ::capnp::POINTERS), size);
4878 }
4879 inline void ListRequest::Builder::adoptFrom(
4880 ::capnp::Orphan< ::capnp::List< ::capnp::Text>>&& value) {
4881 ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::adopt(
4882 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
4883 }
4884 inline ::capnp::Orphan< ::capnp::List< ::capnp::Text>> ListRequest::Builder::disownFrom() {
4885 return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Text>>::disown(
4886 _builder.getPointerField(0 * ::capnp::POINTERS));
4887 }
4888
4842 inline bool ListResponse::Reader::hasAvailable() const { 4889 inline bool ListResponse::Reader::hasAvailable() const {
4843 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull(); 4890 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
4844 } 4891 }
4845 inline bool ListResponse::Builder::hasAvailable() { 4892 inline bool ListResponse::Builder::hasAvailable() {
4846 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull(); 4893 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();