|
Aria 2.0.0
C++23 MVVM framework (C++20 minimum) — reactive, coroutine-first, ABI-layered
|
Bidirectional converter between Model type T and View type U. More...
#include <converter.hpp>
Public Attributes | |
| std::function< U(const T &)> | to_view |
| std::function< T(const U &)> | to_model |
| std::function< std::optional< T >(const U &)> | try_to_model |
Bidirectional converter between Model type T and View type U.
Two parsing channels are supported on the View → Model direction:
User-defined converters MAY leave try_to_model empty; the engine then uses to_model only.
| std::function<U(const T&)> aria::binding::Converter< T, U >::to_view |
| std::function<T(const U&)> aria::binding::Converter< T, U >::to_model |
| std::function<std::optional<T>(const U&)> aria::binding::Converter< T, U >::try_to_model |