api/convert.h¶
Namespaces¶
| Name |
|---|
| cvedia |
| cvedia::rt API for controlling the server and lifecycle management of runtime instances. |
| cvedia::rt::api |
| cvedia::rt::api::convert |
Classes¶
| Name | |
|---|---|
| struct | cvedia::rt::api::convert::CValueStats |
Functions¶
| Name | |
|---|---|
| CValueStats | calculateCValueStats(pCValue const & root) |
| NODISCARD nlohmann::json | cvalueToJson(CValue const & cv, bool hideRuntimeVars =false, bool hideEmptyEntries =false, bool encodeBuffers =true) |
| NODISCARD std::string | cvalueToJsonString(CValue const & cv, bool hideRuntimeVars, bool hideEmptyEntries, bool encodeBuffers, int indent) |
| NODISCARD pCValue | cvalueFromJson(nlohmann::json const & obj) |
| NODISCARD expected< pCValue > | cvalueFromJsonString(std::string const & data) |
| bool | checkForCyclicDependencies(pCValue const & node, std::unordered_set< pCValue > & visited) |
Functions Documentation¶
function calculateCValueStats¶
CValueStats calculateCValueStats(
pCValue const & root
)
function cvalueToJson¶
NODISCARD nlohmann::json cvalueToJson(
CValue const & cv,
bool hideRuntimeVars =false,
bool hideEmptyEntries =false,
bool encodeBuffers =true
)
function cvalueToJsonString¶
NODISCARD std::string cvalueToJsonString(
CValue const & cv,
bool hideRuntimeVars,
bool hideEmptyEntries,
bool encodeBuffers,
int indent
)
function cvalueFromJson¶
NODISCARD pCValue cvalueFromJson(
nlohmann::json const & obj
)
function cvalueFromJsonString¶
NODISCARD expected< pCValue > cvalueFromJsonString(
std::string const & data
)
function checkForCyclicDependencies¶
bool checkForCyclicDependencies(
pCValue const & node,
std::unordered_set< pCValue > & visited
)