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:
14  AronNlohmannJSONConverter() = delete;
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:
32  AronNlohmannJSONConverter() = delete;
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 }
armarx::aron::type::VariantPtr
std::shared_ptr< Variant > VariantPtr
Definition: forward_declarations.h:11
armarx::aron::type::converter::AronNlohmannJSONConverter
Definition: NLohmannJSONConverter.h:29
Path.h
armarx::aron::data::converter::AronNlohmannJSONConverter::ConvertToNlohmannJSON
static nlohmann::json ConvertToNlohmannJSON(const data::VariantPtr &)
Definition: NLohmannJSONConverter.cpp:10
armarx::aron::type::converter::AronNlohmannJSONConverter::ConvertFromNlohmannJSON
static void ConvertFromNlohmannJSON(aron::type::VariantPtr &a, const nlohmann::json &e)
Definition: NLohmannJSONConverter.cpp:75
armarx::aron::data::converter::AronNlohmannJSONConverter::ConvertFromNlohmannJSONObject
static data::DictPtr ConvertFromNlohmannJSONObject(const nlohmann::json &, const armarx::aron::Path &p={})
Definition: NLohmannJSONConverter.cpp:25
armarx::aron::data::converter::AronNlohmannJSONConverter
Definition: NLohmannJSONConverter.h:11
armarx::aron::type::converter::AronNlohmannJSONConverter::AronNlohmannJSONConverter
AronNlohmannJSONConverter()=delete
armarx::aron::type::converter::AronNlohmannJSONConverter::ConvertFromNlohmannJSONTypeObject
static type::ObjectPtr ConvertFromNlohmannJSONTypeObject(const nlohmann::json &j, const armarx::aron::Path &p={})
Definition: NLohmannJSONConverter.cpp:66
armarx::aron::Path
The Path class.
Definition: Path.h:35
armarx::aron::data::VariantPtr
std::shared_ptr< Variant > VariantPtr
Definition: forward_declarations.h:11
armarx::ctrlutil::a
double a(double t, double a0, double j)
Definition: CtrlUtil.h:45
armarx::aron::converter
Definition: EigenConverter.h:235
forward_declarations.h
armarx::aron::converter::AronNlohmannJSONConverter
::armarx::aron::data::converter::AronNlohmannJSONConverter AronNlohmannJSONConverter
Definition: NLohmannJSONConverter.h:46
armarx::aron::type::converter
Definition: aron_conversions.cpp:9
forward_declarations.h
armarx::aron::data::converter::AronNlohmannJSONConverter::AronNlohmannJSONConverter
AronNlohmannJSONConverter()=delete
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::aron::data::converter::AronNlohmannJSONConverter::ConvertFromNlohmannJSON
static void ConvertFromNlohmannJSON(data::VariantPtr &, const nlohmann::json &, const aron::type::VariantPtr &=nullptr)
Definition: NLohmannJSONConverter.cpp:36
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
armarx::aron::type::converter::AronNlohmannJSONConverter::ConvertToNlohmannJSON
static nlohmann::json ConvertToNlohmannJSON(const type::VariantPtr &)
Definition: NLohmannJSONConverter.cpp:51
armarx::aron::data::converter
Definition: aron_conversions.cpp:3