This class is responsible for serializing and deserializing models in Canonical Form.
More...
#include <CanonicalSerializer.h>
|
| template<int INDENT = -1> |
| static VirgilByteArray | toCanonicalForm (const T &model) |
| | Serizalizes model to Canonical Form. More...
|
| |
| template<int FAKE = 0> |
| static T | fromCanonicalForm (const VirgilByteArray &data) |
| | Constructs object from its Canonical Form representation. More...
|
| |
template<typename T>
class virgil::sdk::serialization::CanonicalSerializer< T >
This class is responsible for serializing and deserializing models in Canonical Form.
- Template Parameters
-
- Note
- Supported classes: CreateCardSnapshotModel, RevokeCardSnapshotModel
template<typename T >
template<int FAKE = 0>
Constructs object from its Canonical Form representation.
- Template Parameters
-
| FAKE | fake argument to allow template implementation in source file. |
- Parameters
-
| data | Canonical representation of object |
- Returns
- Constructed object
template<typename T >
template<int INDENT = -1>
Serizalizes model to Canonical Form.
- Template Parameters
-
| INDENT | if > 0 - pretty print, 0 - only new lines, -1 - compact |
- Parameters
-
- Returns
- serialized representation of model
The documentation for this class was generated from the following file: