Converter.h
Go to the documentation of this file.
1
#pragma once
2
3
// STD/STL
4
#include <memory>
5
6
// Simox
7
#include <SimoxUtility/json.h>
8
9
// ArmarX
10
#include <
RobotAPI/libraries/aron/core/data/variant/container/Dict.h
>
11
12
#include "../../extractor/Extractor.h"
13
14
namespace
armarx::armem::server::ltm::processor
15
{
16
class
TypeConverter
17
{
18
public
:
19
TypeConverter
(
const
std::string&
id
,
const
std::string&
s
) :
identifier
(id),
suffix
(
s
)
20
{
21
}
22
23
virtual
~TypeConverter
() =
default
;
24
25
virtual
std::pair<std::vector<unsigned char>, std::string>
26
convert
(
const
aron::type::ObjectPtr
&
data
) = 0;
27
virtual
aron::type::ObjectPtr
convert
(
const
std::vector<unsigned char>&
data
,
28
const
std::string&) = 0;
29
virtual
void
configure
(
const
nlohmann::json& json);
30
31
public
:
32
const
std::string
identifier
;
33
const
std::string
suffix
;
34
};
35
}
// namespace armarx::armem::server::ltm::processor
armarx::armem::server::ltm::processor
Definition:
Converter.cpp:3
armarx::armem::server::ltm::processor::TypeConverter
Definition:
Converter.h:16
Dict.h
armarx::armem::server::ltm::processor::TypeConverter::configure
virtual void configure(const nlohmann::json &json)
Definition:
Converter.cpp:6
armarx::armem::server::ltm::processor::TypeConverter::identifier
const std::string identifier
Definition:
Converter.h:32
data
uint8_t data[1]
Definition:
EtherCATFrame.h:68
armarx::armem::server::ltm::processor::TypeConverter::TypeConverter
TypeConverter(const std::string &id, const std::string &s)
Definition:
Converter.h:19
armarx::armem::server::ltm::processor::TypeConverter::convert
virtual std::pair< std::vector< unsigned char >, std::string > convert(const aron::type::ObjectPtr &data)=0
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition:
Object.h:36
armarx::armem::server::ltm::processor::TypeConverter::suffix
const std::string suffix
Definition:
Converter.h:33
armarx::armem::server::ltm::processor::TypeConverter::~TypeConverter
virtual ~TypeConverter()=default
armarx::ctrlutil::s
double s(double t, double s0, double v0, double a0, double j)
Definition:
CtrlUtil.h:33
RobotAPI
libraries
armem
server
ltm
processors
converter
type
Converter.h
Generated on Sat Sep 14 2024 09:13:47 for armarx_documentation by
1.8.17