Lines Matching defs:ConfigMapper
86 struct ConfigMapper { struct
90 typedef std::function<C2Value(C2Value)> Mapper;
93 typedef CCodecConfig::Domain Domain;
95 ConfigMapper(std::string mediaKey, C2String c2struct, C2String c2field) in ConfigMapper() function
99 ConfigMapper &limitTo(uint32_t domain) { in limitTo()
106 ConfigMapper &withMapper(Mapper mapper) { in withMapper()
114 ConfigMapper &withMappers(Mapper mapper, Mapper reverse) { in withMappers()
124 ConfigMapper &withC2Mappers() { in withC2Mappers()
148 C2Value mapFromMessage(const AMessage::ItemData &item) const { in mapFromMessage()
170 AMessage::ItemData mapToMessage(C2Value value) const { in mapToMessage()
179 Domain domain() const { return mDomain; } in domain()
180 std::string mediaKey() const { return mMediaKey; } in mediaKey()
181 std::string path() const { return mField.size() ? mStruct + '.' + mField : mStruct; } in path()
182 Mapper mapper() const { return mMapper; } in mapper()
183 Mapper reverse() const { return mReverse; } in reverse()
186 Domain mDomain; ///< parameter domain (mask) containing port, kind and config domains
187 std::string mMediaKey; ///< SDK key
188 C2String mStruct; ///< Codec 2.0 struct name
189 C2String mField; ///< Codec 2.0 field name
190 Mapper mMapper; ///< optional SDK => Codec 2.0 value mapper
191 Mapper mReverse; ///< optional Codec 2.0 => SDK value mapper