+ ChanMapping(const ChanMapping&);
+ ChanMapping(const XMLNode& node);
+
+ uint32_t get(DataType t, uint32_t from, bool* valid) const;
+
+ /** reverse lookup
+ * @param type data type
+ * @param to pin
+ * @param valid pointer to a boolean. If not NULL it is set to true if the mapping is found, and false otherwise.
+ * @returns first "from" that matches given "to"
+ */
+ uint32_t get_src(DataType t, uint32_t to, bool* valid) const;
+
+ /** get buffer mapping for given data type and pin
+ * @param type data type
+ * @param from numeric source id
+ * @returns mapped buffer number (or ChanMapping::Invalid)
+ */
+ uint32_t get (DataType t, uint32_t from) const { return get (t, from, NULL); }
+
+ /** set buffer mapping for given data type
+ * @param type data type
+ * @param from numeric source id
+ * @param to buffer
+ */