.. index:: pair: class; gpr::track::JsonRecord .. _doxid-classgpr_1_1track_1_1_json_record: class gpr::track::JsonRecord ============================ .. toctree:: :hidden: Overview ~~~~~~~~ A JSON object assembled field by field; one line of a record stream. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class JsonRecord { public: // methods JsonRecord& :target:`add`(std::string_view key, double value); JsonRecord& :target:`add`(std::string_view key, long value); JsonRecord& :target:`add`(std::string_view key, int value); JsonRecord& :target:`add`(std::string_view key, bool value); JsonRecord& :target:`add`(std::string_view key, std::string_view value); JsonRecord& :target:`add`(std::string_view key, const char* value); JsonRecord& :target:`add`(std::string_view key, const Eigen::VectorXd& value); JsonRecord& :target:`add`(std::string_view key, const Eigen::MatrixXd& value); JsonRecord& :ref:`addRaw`(std::string_view key, std::string_view json); std::string :target:`str`() const; }; .. _details-classgpr_1_1track_1_1_json_record: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ A JSON object assembled field by field; one line of a record stream. Methods ------- .. index:: pair: function; addRaw .. _doxid-classgpr_1_1track_1_1_json_record_1a29d6ac5f8791cc3e02bfe4f5c5c68566: .. ref-code-block:: cpp :class: doxyrest-title-code-block JsonRecord& addRaw(std::string_view key, std::string_view json) A nested object, already rendered.