CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
Meta Types

Object serialization, deserialization and validation More...

Collaboration diagram for Meta Types:

Classes

class  JsonWriter
 Generate JSON representations of variant values. More...
 
class  MetaError
 Error thrown during object realization More...
 
class  MetaObject
 Duck-typed objects. More...
 
class  MetaProtocol
 Duck-typed protocol. More...
 
class  MetaPrototype
 Member definitions, default values and child protocol More...
 
class  YasonWriter
 Generate YASON representations of variant values. More...
 
class  YasonSyntax
 Yet another simple object notation More...
 

Functions

Variant jsonParse (const String &message)
 Convenience function to parse a JSON message.
 
String jsonStringify (const Variant &value)
 Convenience function to stringify a variant value.
 
Variant yasonParse (const String &message, const MetaProtocol &protocol=MetaProtocol{})
 Convenience function to parse a YASON message
 
String yasonStringify (const Variant &value)
 Convenience function to stringify a variant value.
 

Detailed Description

Object serialization, deserialization and validation

Function Documentation

◆ jsonParse()

Variant jsonParse ( const String & message)

Convenience function to parse a JSON message.

Parameters
messageJSON message
Returns
parsed value
Exceptions
TextError

◆ jsonStringify()

String jsonStringify ( const Variant & value)

Convenience function to stringify a variant value.

Parameters
valueVariant value
Returns
JSON message

◆ yasonParse()

Variant yasonParse ( const String & message,
const MetaProtocol & protocol = MetaProtocol{} )

Convenience function to parse a YASON message

Parameters
messageJSON message
protocolMessage protocol
Returns
parsed value
Exceptions
TextError

◆ yasonStringify()

String yasonStringify ( const Variant & value)

Convenience function to stringify a variant value.

Parameters
valueVariant value
Returns
YASON message