Lines Matching defs:ConfigMapper
79 struct ConfigMapper { struct
83 typedef std::function<C2Value(C2Value)> Mapper;
86 typedef CCodecConfig::Domain Domain;
88 ConfigMapper(std::string mediaKey, C2String c2struct, C2String c2field) in ConfigMapper() function
92 ConfigMapper &limitTo(uint32_t domain) { in limitTo()
99 ConfigMapper &withMapper(Mapper mapper) { in withMapper()
107 ConfigMapper &withMappers(Mapper mapper, Mapper reverse) { in withMappers()
117 ConfigMapper &withC2Mappers() { in withC2Mappers()
141 C2Value mapFromMessage(const AMessage::ItemData &item) const { in mapFromMessage()
163 AMessage::ItemData mapToMessage(C2Value value) const { in mapToMessage()
172 Domain domain() const { return mDomain; } in domain()
173 std::string mediaKey() const { return mMediaKey; } in mediaKey()
174 std::string path() const { return mField.size() ? mStruct + '.' + mField : mStruct; } in path()
175 Mapper mapper() const { return mMapper; } in mapper()
176 Mapper reverse() const { return mReverse; } in reverse()
179 Domain mDomain; ///< parameter domain (mask) containing port, kind and config domains
180 std::string mMediaKey; ///< SDK key
181 C2String mStruct; ///< Codec 2.0 struct name
182 C2String mField; ///< Codec 2.0 field name
183 Mapper mMapper; ///< optional SDK => Codec 2.0 value mapper
184 Mapper mReverse; ///< optional Codec 2.0 => SDK value mapper