ADTF
Loading...
Searching...
No Matches
adtf::remote::wolverine Namespace Reference

Namespace for all functionality of the ADTF Remote SDK provided since v3.22. More...

Classes

class  IFileSystem
 
class  ISampleStreamTracer
 

Functions

tResult stream_type_to_json (adtf::base::IString &&strJson, const adtf::streaming::IStreamType &oType)
 Serializes the streamtype to a json string in format like: das.
 
tResult stream_type_from_json (adtf::ucom::iobject_ptr< adtf::streaming::IStreamType > &pType, const adtf::base::IString &strJson)
 Reads a json string and creates the corresponding streamtype and it properties. The json string must follw th format defined in stream_type_to_json.
 

Detailed Description

Namespace for all functionality of the ADTF Remote SDK provided since v3.22.

Function Documentation

◆ stream_type_from_json()

tResult adtf::remote::wolverine::stream_type_from_json ( adtf::ucom::iobject_ptr< adtf::streaming::IStreamType > & pType,
const adtf::base::IString & strJson )

Reads a json string and creates the corresponding streamtype and it properties. The json string must follw th format defined in stream_type_to_json.

See also
stream_type_to_json
Parameters
pTypeThe object pointer for resulting streamtype on success
strJsonThe json string to read
Return values
ERR_NOERRORsuccess
Returns
tResult failed parsing error with details if fails

◆ stream_type_to_json()

tResult adtf::remote::wolverine::stream_type_to_json ( adtf::base::IString && strJson,
const adtf::streaming::IStreamType & oType )

Serializes the streamtype to a json string in format like: das.

{
"meta_type": "adtf/substreams",
"properties": {
"substreams": {
"type": "tBool",
"value": "true"
"properties": {
// ...
}
}
}
Parameters
strJsonThe result json string
oTypeThe type to serialize
Return values
ERR_NOERRORsuccess
Returns
tResult failed result on json errors