Lines Matching defs:ConfigMapper
55 struct ConfigMapper { struct
59 typedef std::function<C2Value(C2Value)> Mapper;
62 typedef CCodecConfig::Domain Domain;
64 ConfigMapper(std::string mediaKey, C2String c2struct, C2String c2field) in ConfigMapper() function
68 ConfigMapper &limitTo(uint32_t domain) { in limitTo()
75 ConfigMapper &withMapper(Mapper mapper) { in withMapper()
83 ConfigMapper &withMappers(Mapper mapper, Mapper reverse) { in withMappers()
93 ConfigMapper &withC2Mappers() { in withC2Mappers()
117 C2Value mapFromMessage(const AMessage::ItemData &item) const { in mapFromMessage()
139 AMessage::ItemData mapToMessage(C2Value value) const { in mapToMessage()
165 Domain domain() const { return mDomain; } in domain()
166 std::string mediaKey() const { return mMediaKey; } in mediaKey()
167 std::string path() const { return mField.size() ? mStruct + '.' + mField : mStruct; } in path()
168 Mapper mapper() const { return mMapper; } in mapper()
169 Mapper reverse() const { return mReverse; } in reverse()
172 Domain mDomain; ///< parameter domain (mask) containing port, kind and config domains
173 std::string mMediaKey; ///< SDK key
174 C2String mStruct; ///< Codec 2.0 struct name
175 C2String mField; ///< Codec 2.0 field name
176 Mapper mMapper; ///< optional SDK => Codec 2.0 value mapper
177 Mapper mReverse; ///< optional Codec 2.0 => SDK value mapper