JsonConverter.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Base Class
4 #include "../Converter.h"
5 
6 // Simox
7 #include <SimoxUtility/json.h>
8 
10 {
12  {
13  public:
14  JsonConverter() : ObjectConverter("dict", ".json")
15  {
16  }
17 
18  std::pair<std::vector<unsigned char>, std::string>
19  convert(const aron::type::ObjectPtr& data) final;
20  aron::type::ObjectPtr convert(const std::vector<unsigned char>& data,
21  const std::string&) final;
22  };
23 } // namespace armarx::armem::server::ltm::processor::converter::type::object
armarx::armem::server::ltm::processor::converter::type::object::JsonConverter::JsonConverter
JsonConverter()
Definition: JsonConverter.h:14
data
uint8_t data[1]
Definition: EtherCATFrame.h:68
armarx::armem::server::ltm::processor::converter::type::object::JsonConverter
Definition: JsonConverter.h:11
armarx::armem::server::ltm::processor::converter::type::object
Definition: JsonConverter.cpp:5
armarx::armem::server::ltm::processor::converter::type::ObjectConverter
Definition: Converter.h:16
armarx::armem::server::ltm::processor::converter::type::object::JsonConverter::convert
std::pair< std::vector< unsigned char >, std::string > convert(const aron::type::ObjectPtr &data) final
Definition: JsonConverter.cpp:8
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36