NLohmannJSONConverter.h
Go to the documentation of this file.
1 #pragma once
2 
3 // STD/STL
4 #include <memory>
5 #include <numeric>
6 #include <string>
7 
8 // Memory
22 
23 // JSON
24 #include <SimoxUtility/json/json.hpp>
25 
27 {
29  {
30  public:
31  AronNlohmannJSONConverter() = delete;
32 
33  static nlohmann::json ConvertToNlohmannJSON(const data::VariantPtr&);
34  static void ConvertToNlohmannJSON(const data::VariantPtr&, nlohmann::json&);
35 
36  static data::DictPtr ConvertFromNlohmannJSONObject(const nlohmann::json&,
37  const armarx::aron::Path& p = {});
39  const nlohmann::json&,
40  const aron::type::VariantPtr& = nullptr);
41  };
42 } // namespace armarx::aron::data::converter
43 
45 {
47  {
48  public:
49  AronNlohmannJSONConverter() = delete;
50 
51  static nlohmann::json ConvertToNlohmannJSON(const type::VariantPtr&);
52  static void ConvertToNlohmannJSON(const type::VariantPtr&, nlohmann::json&);
53 
54  static type::ObjectPtr ConvertFromNlohmannJSONTypeObject(const nlohmann::json& j,
55  const armarx::aron::Path& p = {});
56  static void ConvertFromNlohmannJSON(aron::type::VariantPtr& a, const nlohmann::json& e);
57  };
58 } // namespace armarx::aron::type::converter
59 
60 // legacy
62 {
64 }
armarx::aron::type::VariantPtr
std::shared_ptr< Variant > VariantPtr
Definition: forward_declarations.h:11
NlohmannJSONWriter.h
armarx::aron::type::converter::AronNlohmannJSONConverter
Definition: NLohmannJSONConverter.h:46
VariantWriter.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:76
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:28
NlohmannJSONConverter.h
VariantConverter.h
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:36
NlohmannJSONReader.h
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
VariantReader.h
All.h
armarx::aron::converter::AronNlohmannJSONConverter
::armarx::aron::data::converter::AronNlohmannJSONConverter AronNlohmannJSONConverter
Definition: NLohmannJSONConverter.h:63
armarx::aron::type::converter
Definition: aron_conversions.cpp:9
NlohmannJSONWriter.h
armarx::aron::data::converter::AronNlohmannJSONConverter::AronNlohmannJSONConverter
AronNlohmannJSONConverter()=delete
VariantConverter.h
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
VariantWriter.h
armarx::aron::data::converter::AronNlohmannJSONConverter::ConvertFromNlohmannJSON
static void ConvertFromNlohmannJSON(data::VariantPtr &, const nlohmann::json &, const aron::type::VariantPtr &=nullptr)
Definition: NLohmannJSONConverter.cpp:36
VariantReader.h
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
NlohmannJSONConverter.h
NlohmannJSONReader.h
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