|
qtty-cpp 0.4.5
Header-only C++ wrapper for qtty
|
Functions | |
| template<typename Tag > | |
| std::string | to_json (const Quantity< Tag > &q) |
| Serialize a compound quantity as JSON. | |
| template<typename T > | |
| Quantity< typename ExtractTag< T >::type > | from_json (std::string_view json) |
| Deserialize a JSON string into a compound quantity. | |
| Quantity< typename ExtractTag< T >::type > qtty::derived_serialization::from_json | ( | std::string_view | json | ) |
Deserialize a JSON string into a compound quantity.
| T | CompoundTag or Quantity<CompoundTag> type. |
| json | JSON input string view. |
Definition at line 173 of file serialization.hpp.
References qtty::check_status(), qtty::is_angular_v, and qtty_derived_from_json().
Serialize a compound quantity as JSON.
| Tag | CompoundTag type of the quantity. |
| q | Source compound quantity. |
Definition at line 154 of file serialization.hpp.
References qtty::check_status(), qtty::serialization::from_owned_c(), qtty::is_angular_v, and qtty_derived_to_json().