Lines Matching defs:ConfigMapper
77 struct ConfigMapper { struct
81 typedef std::function<C2Value(C2Value)> Mapper;
84 typedef CCodecConfig::Domain Domain;
86 ConfigMapper(std::string mediaKey, C2String c2struct, C2String c2field) in ConfigMapper() function
90 ConfigMapper &limitTo(uint32_t domain) { in limitTo()
97 ConfigMapper &withMapper(Mapper mapper) { in withMapper()
105 ConfigMapper &withMappers(Mapper mapper, Mapper reverse) { in withMappers()
115 ConfigMapper &withC2Mappers() { in withC2Mappers()
139 C2Value mapFromMessage(const AMessage::ItemData &item) const { in mapFromMessage()
161 AMessage::ItemData mapToMessage(C2Value value) const { in mapToMessage()
170 Domain domain() const { return mDomain; } in domain()
171 std::string mediaKey() const { return mMediaKey; } in mediaKey()
172 std::string path() const { return mField.size() ? mStruct + '.' + mField : mStruct; } in path()
173 Mapper mapper() const { return mMapper; } in mapper()
174 Mapper reverse() const { return mReverse; } in reverse()
177 Domain mDomain; ///< parameter domain (mask) containing port, kind and config domains
178 std::string mMediaKey; ///< SDK key
179 C2String mStruct; ///< Codec 2.0 struct name
180 C2String mField; ///< Codec 2.0 field name
181 Mapper mMapper; ///< optional SDK => Codec 2.0 value mapper
182 Mapper mReverse; ///< optional Codec 2.0 => SDK value mapper