omni::structuredlog::serializeScalar
Defined in omni/structuredlog/JsonTreeSerializer.h
- 
template<bool validate = false, typename T, typename JsonSerializerType = JsonSerializer<false, false, ignoreJsonTreeSerializerValidationError>, typename JsonNodeType = JsonNode, typename BlobReaderType = BlobReader<false, ignoreJsonTreeSerializerValidationError>>
 static inline bool omni::structuredlog::serializeScalar(JsonSerializerType *serial, const JsonNodeType *root, T constVal, BlobReaderType *reader)
- Serialize a scalar type from a JSON tree. - Parameters
- serial – [inout] The JSON serializer to serialize the data into. 
- root – [in] The node in the schema that represents this scalar value. 
- constVal – [in] The constant value from the data union of - root. This is only read if root is marked as constant.
- reader – [inout] The blob reader, which will be read if - rootis not marked as constant.
 
- Returns
- trueif no validation error occurred.
- Returns
- falseif any form of validation error occurred.