Lines Matching defs:ConfigMapper
84 struct ConfigMapper { struct
88 typedef std::function<C2Value(C2Value)> Mapper;
91 typedef CCodecConfig::Domain Domain;
93 ConfigMapper(std::string mediaKey, C2String c2struct, C2String c2field) in ConfigMapper() function
97 ConfigMapper &limitTo(uint32_t domain) { in limitTo()
104 ConfigMapper &withMapper(Mapper mapper) { in withMapper()
112 ConfigMapper &withMappers(Mapper mapper, Mapper reverse) { in withMappers()
122 ConfigMapper &withC2Mappers() { in withC2Mappers()
146 C2Value mapFromMessage(const AMessage::ItemData &item) const { in mapFromMessage()
168 AMessage::ItemData mapToMessage(C2Value value) const { in mapToMessage()
177 Domain domain() const { return mDomain; } in domain()
178 std::string mediaKey() const { return mMediaKey; } in mediaKey()
179 std::string path() const { return mField.size() ? mStruct + '.' + mField : mStruct; } in path()
180 Mapper mapper() const { return mMapper; } in mapper()
181 Mapper reverse() const { return mReverse; } in reverse()
184 Domain mDomain; ///< parameter domain (mask) containing port, kind and config domains
185 std::string mMediaKey; ///< SDK key
186 C2String mStruct; ///< Codec 2.0 struct name
187 C2String mField; ///< Codec 2.0 field name
188 Mapper mMapper; ///< optional SDK => Codec 2.0 value mapper
189 Mapper mReverse; ///< optional Codec 2.0 => SDK value mapper