Loading...
Searching...
No Matches
AnySerialization.hpp File Reference
Serialization mechanism for ossia::any. More...
Detailed Description
Serialization mechanism for ossia::any.
This file provides a method to save data registered in a ossia::any. By default some types will be serialized / deserialized without problems.
For the others, one should register them in anySerializers()
- Todo:
- See the one used in boost.spirit which is said to be much faster.
Go to the source code of this file.
Classes | |
| struct | score::any_serializer |
| struct | score::any_serializer_t< T > |
| struct | TSerializer< DataStream, score::any_map > |
| struct | TSerializer< JSONObject, score::any_map > |
Namespaces | |
| namespace | score |
| Base toolkit upon which the software is built. | |
Typedefs | |
| using | score::any_map = ossia::any_map |
| using | score::any_serializer_map = score::hash_map< std::string, std::unique_ptr< any_serializer > > |
Functions | |
| score::hash_map< std::string, std::unique_ptr< any_serializer > > & | score::anySerializers () |
| The serializers for types that go in ossia::any should fit in here. | |
| SCORE_LIB_BASE_EXPORT void | apply (DataStreamReader &s, const std::string &key, const ossia::any &v) |
| SCORE_LIB_BASE_EXPORT void | apply (DataStreamWriter &s, const std::string &key, ossia::any &v) |
| SCORE_LIB_BASE_EXPORT void | apply (JSONReader &s, const std::string &key, const ossia::any &v) |
| SCORE_LIB_BASE_EXPORT void | apply (JSONWriter &s, const std::string &key, ossia::any &v) |