Mercurial > hg > piper-cpp
comparison vamp-capnp/piper.capnp.h @ 216:328ffacfc70e
Copyright -> rights
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Fri, 10 Feb 2017 17:22:09 +0000 |
parents | 3eb00e5c76c4 |
children | ea8994465322 |
comparison
equal
deleted
inserted
replaced
215:8dff3213f77c | 216:328ffacfc70e |
---|---|
1051 inline ::piper::Basic::Reader getBasic() const; | 1051 inline ::piper::Basic::Reader getBasic() const; |
1052 | 1052 |
1053 inline bool hasMaker() const; | 1053 inline bool hasMaker() const; |
1054 inline ::capnp::Text::Reader getMaker() const; | 1054 inline ::capnp::Text::Reader getMaker() const; |
1055 | 1055 |
1056 inline bool hasCopyright() const; | 1056 inline bool hasRights() const; |
1057 inline ::capnp::Text::Reader getCopyright() const; | 1057 inline ::capnp::Text::Reader getRights() const; |
1058 | 1058 |
1059 inline ::int32_t getVersion() const; | 1059 inline ::int32_t getVersion() const; |
1060 | 1060 |
1061 inline bool hasCategory() const; | 1061 inline bool hasCategory() const; |
1062 inline ::capnp::List< ::capnp::Text>::Reader getCategory() const; | 1062 inline ::capnp::List< ::capnp::Text>::Reader getCategory() const; |
1123 inline void setMaker( ::capnp::Text::Reader value); | 1123 inline void setMaker( ::capnp::Text::Reader value); |
1124 inline ::capnp::Text::Builder initMaker(unsigned int size); | 1124 inline ::capnp::Text::Builder initMaker(unsigned int size); |
1125 inline void adoptMaker(::capnp::Orphan< ::capnp::Text>&& value); | 1125 inline void adoptMaker(::capnp::Orphan< ::capnp::Text>&& value); |
1126 inline ::capnp::Orphan< ::capnp::Text> disownMaker(); | 1126 inline ::capnp::Orphan< ::capnp::Text> disownMaker(); |
1127 | 1127 |
1128 inline bool hasCopyright(); | 1128 inline bool hasRights(); |
1129 inline ::capnp::Text::Builder getCopyright(); | 1129 inline ::capnp::Text::Builder getRights(); |
1130 inline void setCopyright( ::capnp::Text::Reader value); | 1130 inline void setRights( ::capnp::Text::Reader value); |
1131 inline ::capnp::Text::Builder initCopyright(unsigned int size); | 1131 inline ::capnp::Text::Builder initRights(unsigned int size); |
1132 inline void adoptCopyright(::capnp::Orphan< ::capnp::Text>&& value); | 1132 inline void adoptRights(::capnp::Orphan< ::capnp::Text>&& value); |
1133 inline ::capnp::Orphan< ::capnp::Text> disownCopyright(); | 1133 inline ::capnp::Orphan< ::capnp::Text> disownRights(); |
1134 | 1134 |
1135 inline ::int32_t getVersion(); | 1135 inline ::int32_t getVersion(); |
1136 inline void setVersion( ::int32_t value); | 1136 inline void setVersion( ::int32_t value); |
1137 | 1137 |
1138 inline bool hasCategory(); | 1138 inline bool hasCategory(); |
1686 inline ::kj::StringTree toString() const { | 1686 inline ::kj::StringTree toString() const { |
1687 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); | 1687 return ::capnp::_::structString(_reader, *_capnpPrivate::brand); |
1688 } | 1688 } |
1689 #endif // !CAPNP_LITE | 1689 #endif // !CAPNP_LITE |
1690 | 1690 |
1691 inline ::int32_t getBlockSize() const; | |
1692 | |
1691 inline ::int32_t getStepSize() const; | 1693 inline ::int32_t getStepSize() const; |
1692 | |
1693 inline ::int32_t getBlockSize() const; | |
1694 | 1694 |
1695 private: | 1695 private: |
1696 ::capnp::_::StructReader _reader; | 1696 ::capnp::_::StructReader _reader; |
1697 template <typename, ::capnp::Kind> | 1697 template <typename, ::capnp::Kind> |
1698 friend struct ::capnp::ToDynamic_; | 1698 friend struct ::capnp::ToDynamic_; |
1718 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } | 1718 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); } |
1719 #if !CAPNP_LITE | 1719 #if !CAPNP_LITE |
1720 inline ::kj::StringTree toString() const { return asReader().toString(); } | 1720 inline ::kj::StringTree toString() const { return asReader().toString(); } |
1721 #endif // !CAPNP_LITE | 1721 #endif // !CAPNP_LITE |
1722 | 1722 |
1723 inline ::int32_t getBlockSize(); | |
1724 inline void setBlockSize( ::int32_t value); | |
1725 | |
1723 inline ::int32_t getStepSize(); | 1726 inline ::int32_t getStepSize(); |
1724 inline void setStepSize( ::int32_t value); | 1727 inline void setStepSize( ::int32_t value); |
1725 | |
1726 inline ::int32_t getBlockSize(); | |
1727 inline void setBlockSize( ::int32_t value); | |
1728 | 1728 |
1729 private: | 1729 private: |
1730 ::capnp::_::StructBuilder _builder; | 1730 ::capnp::_::StructBuilder _builder; |
1731 template <typename, ::capnp::Kind> | 1731 template <typename, ::capnp::Kind> |
1732 friend struct ::capnp::ToDynamic_; | 1732 friend struct ::capnp::ToDynamic_; |
4210 inline ::capnp::Orphan< ::capnp::Text> ExtractorStaticData::Builder::disownMaker() { | 4210 inline ::capnp::Orphan< ::capnp::Text> ExtractorStaticData::Builder::disownMaker() { |
4211 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 4211 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( |
4212 _builder.getPointerField(2 * ::capnp::POINTERS)); | 4212 _builder.getPointerField(2 * ::capnp::POINTERS)); |
4213 } | 4213 } |
4214 | 4214 |
4215 inline bool ExtractorStaticData::Reader::hasCopyright() const { | 4215 inline bool ExtractorStaticData::Reader::hasRights() const { |
4216 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4216 return !_reader.getPointerField(3 * ::capnp::POINTERS).isNull(); |
4217 } | 4217 } |
4218 inline bool ExtractorStaticData::Builder::hasCopyright() { | 4218 inline bool ExtractorStaticData::Builder::hasRights() { |
4219 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); | 4219 return !_builder.getPointerField(3 * ::capnp::POINTERS).isNull(); |
4220 } | 4220 } |
4221 inline ::capnp::Text::Reader ExtractorStaticData::Reader::getCopyright() const { | 4221 inline ::capnp::Text::Reader ExtractorStaticData::Reader::getRights() const { |
4222 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4222 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( |
4223 _reader.getPointerField(3 * ::capnp::POINTERS)); | 4223 _reader.getPointerField(3 * ::capnp::POINTERS)); |
4224 } | 4224 } |
4225 inline ::capnp::Text::Builder ExtractorStaticData::Builder::getCopyright() { | 4225 inline ::capnp::Text::Builder ExtractorStaticData::Builder::getRights() { |
4226 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( | 4226 return ::capnp::_::PointerHelpers< ::capnp::Text>::get( |
4227 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4227 _builder.getPointerField(3 * ::capnp::POINTERS)); |
4228 } | 4228 } |
4229 inline void ExtractorStaticData::Builder::setCopyright( ::capnp::Text::Reader value) { | 4229 inline void ExtractorStaticData::Builder::setRights( ::capnp::Text::Reader value) { |
4230 ::capnp::_::PointerHelpers< ::capnp::Text>::set( | 4230 ::capnp::_::PointerHelpers< ::capnp::Text>::set( |
4231 _builder.getPointerField(3 * ::capnp::POINTERS), value); | 4231 _builder.getPointerField(3 * ::capnp::POINTERS), value); |
4232 } | 4232 } |
4233 inline ::capnp::Text::Builder ExtractorStaticData::Builder::initCopyright(unsigned int size) { | 4233 inline ::capnp::Text::Builder ExtractorStaticData::Builder::initRights(unsigned int size) { |
4234 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( | 4234 return ::capnp::_::PointerHelpers< ::capnp::Text>::init( |
4235 _builder.getPointerField(3 * ::capnp::POINTERS), size); | 4235 _builder.getPointerField(3 * ::capnp::POINTERS), size); |
4236 } | 4236 } |
4237 inline void ExtractorStaticData::Builder::adoptCopyright( | 4237 inline void ExtractorStaticData::Builder::adoptRights( |
4238 ::capnp::Orphan< ::capnp::Text>&& value) { | 4238 ::capnp::Orphan< ::capnp::Text>&& value) { |
4239 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( | 4239 ::capnp::_::PointerHelpers< ::capnp::Text>::adopt( |
4240 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); | 4240 _builder.getPointerField(3 * ::capnp::POINTERS), kj::mv(value)); |
4241 } | 4241 } |
4242 inline ::capnp::Orphan< ::capnp::Text> ExtractorStaticData::Builder::disownCopyright() { | 4242 inline ::capnp::Orphan< ::capnp::Text> ExtractorStaticData::Builder::disownRights() { |
4243 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( | 4243 return ::capnp::_::PointerHelpers< ::capnp::Text>::disown( |
4244 _builder.getPointerField(3 * ::capnp::POINTERS)); | 4244 _builder.getPointerField(3 * ::capnp::POINTERS)); |
4245 } | 4245 } |
4246 | 4246 |
4247 inline ::int32_t ExtractorStaticData::Reader::getVersion() const { | 4247 inline ::int32_t ExtractorStaticData::Reader::getVersion() const { |
4805 inline ::capnp::Orphan< ::capnp::List< ::piper::Feature>> FeatureSet::FSPair::Builder::disownFeatures() { | 4805 inline ::capnp::Orphan< ::capnp::List< ::piper::Feature>> FeatureSet::FSPair::Builder::disownFeatures() { |
4806 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::Feature>>::disown( | 4806 return ::capnp::_::PointerHelpers< ::capnp::List< ::piper::Feature>>::disown( |
4807 _builder.getPointerField(1 * ::capnp::POINTERS)); | 4807 _builder.getPointerField(1 * ::capnp::POINTERS)); |
4808 } | 4808 } |
4809 | 4809 |
4810 inline ::int32_t Framing::Reader::getBlockSize() const { | |
4811 return _reader.getDataField< ::int32_t>( | |
4812 0 * ::capnp::ELEMENTS); | |
4813 } | |
4814 | |
4815 inline ::int32_t Framing::Builder::getBlockSize() { | |
4816 return _builder.getDataField< ::int32_t>( | |
4817 0 * ::capnp::ELEMENTS); | |
4818 } | |
4819 inline void Framing::Builder::setBlockSize( ::int32_t value) { | |
4820 _builder.setDataField< ::int32_t>( | |
4821 0 * ::capnp::ELEMENTS, value); | |
4822 } | |
4823 | |
4810 inline ::int32_t Framing::Reader::getStepSize() const { | 4824 inline ::int32_t Framing::Reader::getStepSize() const { |
4811 return _reader.getDataField< ::int32_t>( | 4825 return _reader.getDataField< ::int32_t>( |
4812 0 * ::capnp::ELEMENTS); | 4826 1 * ::capnp::ELEMENTS); |
4813 } | 4827 } |
4814 | 4828 |
4815 inline ::int32_t Framing::Builder::getStepSize() { | 4829 inline ::int32_t Framing::Builder::getStepSize() { |
4816 return _builder.getDataField< ::int32_t>( | 4830 return _builder.getDataField< ::int32_t>( |
4817 0 * ::capnp::ELEMENTS); | 4831 1 * ::capnp::ELEMENTS); |
4818 } | 4832 } |
4819 inline void Framing::Builder::setStepSize( ::int32_t value) { | 4833 inline void Framing::Builder::setStepSize( ::int32_t value) { |
4820 _builder.setDataField< ::int32_t>( | |
4821 0 * ::capnp::ELEMENTS, value); | |
4822 } | |
4823 | |
4824 inline ::int32_t Framing::Reader::getBlockSize() const { | |
4825 return _reader.getDataField< ::int32_t>( | |
4826 1 * ::capnp::ELEMENTS); | |
4827 } | |
4828 | |
4829 inline ::int32_t Framing::Builder::getBlockSize() { | |
4830 return _builder.getDataField< ::int32_t>( | |
4831 1 * ::capnp::ELEMENTS); | |
4832 } | |
4833 inline void Framing::Builder::setBlockSize( ::int32_t value) { | |
4834 _builder.setDataField< ::int32_t>( | 4834 _builder.setDataField< ::int32_t>( |
4835 1 * ::capnp::ELEMENTS, value); | 4835 1 * ::capnp::ELEMENTS, value); |
4836 } | 4836 } |
4837 | 4837 |
4838 inline bool Configuration::Reader::hasParameterValues() const { | 4838 inline bool Configuration::Reader::hasParameterValues() const { |