NLohmannJSONConverter.h
Go to the documentation of this file.
1#pragma once
2
3#include <SimoxUtility/json/json.hpp>
4
8
10{
12 {
13 public:
15
16 static nlohmann::json ConvertToNlohmannJSON(const data::VariantPtr&);
17 static void ConvertToNlohmannJSON(const data::VariantPtr&, nlohmann::json&);
18
19 static data::DictPtr ConvertFromNlohmannJSONObject(const nlohmann::json&,
20 const armarx::aron::Path& p = {});
22 const nlohmann::json&,
23 const aron::type::VariantPtr& = nullptr);
24 };
25} // namespace armarx::aron::data::converter
26
28{
30 {
31 public:
33
34 static nlohmann::json ConvertToNlohmannJSON(const type::VariantPtr&);
35 static void ConvertToNlohmannJSON(const type::VariantPtr&, nlohmann::json&);
36
37 static type::ObjectPtr ConvertFromNlohmannJSONTypeObject(const nlohmann::json& j,
38 const armarx::aron::Path& p = {});
39 static void ConvertFromNlohmannJSON(aron::type::VariantPtr& a, const nlohmann::json& e);
40 };
41} // namespace armarx::aron::type::converter
42
43// legacy
45{
47}
The Path class.
Definition Path.h:36
static data::DictPtr ConvertFromNlohmannJSONObject(const nlohmann::json &, const armarx::aron::Path &p={})
static void ConvertFromNlohmannJSON(data::VariantPtr &, const nlohmann::json &, const aron::type::VariantPtr &=nullptr)
static nlohmann::json ConvertToNlohmannJSON(const data::VariantPtr &)
static type::ObjectPtr ConvertFromNlohmannJSONTypeObject(const nlohmann::json &j, const armarx::aron::Path &p={})
static void ConvertFromNlohmannJSON(aron::type::VariantPtr &a, const nlohmann::json &e)
static nlohmann::json ConvertToNlohmannJSON(const type::VariantPtr &)
::armarx::aron::data::converter::AronNlohmannJSONConverter AronNlohmannJSONConverter
std::shared_ptr< Dict > DictPtr
Definition Dict.h:42
std::shared_ptr< Variant > VariantPtr
std::shared_ptr< Object > ObjectPtr
Definition Object.h:36
std::shared_ptr< Variant > VariantPtr