chrono::vehicle::ChJSONWriter Class Reference

Description

This is a helper class to generate serialized JSON messages that can be passed to/from Chrono.

The expectation the replciate class for this object should be used on the Chrono side

This works as follows:

  • The ChJSONWriter implements << operators that correspond to the types provided by rapidjson
  • The ChJSONWriter is responsible for interacting with rapidjson, generating JSON buffers that are suitable to be read on the other side

#include <ChExternalDriver.h>

Public Member Functions

ChJSONWriteroperator<< (bool v)
 
ChJSONWriteroperator<< (const int v)
 
ChJSONWriteroperator<< (const long int v)
 
ChJSONWriteroperator<< (const double v)
 
ChJSONWriteroperator<< (unsigned int v)
 
ChJSONWriteroperator<< (const char *v)
 
ChJSONWriteroperator<< (std::string &v)
 
ChJSONWriteroperator<< (const std::string &v)
 
ChJSONWriteroperator<< (unsigned long v)
 
ChJSONWriteroperator<< (unsigned long long v)
 
ChJSONWriteroperator<< (ChVector<> v)
 
ChJSONWriteroperator<< (ChQuaternion<> v)
 
ChJSONWriteroperator<< (ChJSONWriter &)
 
ChJSONWriterKey (const std::string &v)
 
ChJSONWriterPointerAsString (size_t v, unsigned int len)
 
ChJSONWriterStartObject (const std::string &type, const std::string &id)
 
ChJSONWriterEndObject ()
 
std::string Finish ()
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_vehicle/driver/ChExternalDriver.h
  • /builds/uwsbel/chrono/src/chrono_vehicle/driver/ChExternalDriver.cpp