DataConverter Class Referenceabstract

#include <RobotAPI/libraries/armem/server/ltm/processors/converter/data/Converter.h>

+ Inheritance diagram for DataConverter:

Classes

struct  ConversionResult
 

Public Types

enum  ConverterType { Str, Binary }
 

Public Member Functions

virtual void configure (const nlohmann::json &json)
 
virtual ConversionResult convert (const aron::data::VariantPtr &data)=0
 
virtual aron::data::VariantPtr convert (const ConversionResult &, const armarx::aron::Path &p)=0
 
 DataConverter (const ConverterType t, const std::string &id, const std::string &s, const aron::type::Descriptor c, std::unique_ptr< Extractor > &&ex)
 
virtual ~DataConverter ()=default
 

Public Attributes

const aron::type::Descriptor convertsType
 
const std::unique_ptr< Extractorextractor
 
const std::string identifier
 
const std::string suffix
 
const ConverterType type
 

Detailed Description

Definition at line 16 of file Converter.h.

Member Enumeration Documentation

◆ ConverterType

enum ConverterType
strong
Enumerator
Str 
Binary 

Definition at line 19 of file Converter.h.

Constructor & Destructor Documentation

◆ DataConverter()

DataConverter ( const ConverterType  t,
const std::string &  id,
const std::string &  s,
const aron::type::Descriptor  c,
std::unique_ptr< Extractor > &&  ex 
)
inline

Definition at line 31 of file Converter.h.

◆ ~DataConverter()

virtual ~DataConverter ( )
virtualdefault

Member Function Documentation

◆ configure()

void configure ( const nlohmann::json &  json)
virtual

Reimplemented in ImageConverter, and PngConverter.

Definition at line 6 of file Converter.cpp.

◆ convert() [1/2]

virtual ConversionResult convert ( const aron::data::VariantPtr data)
pure virtual

Implemented in ImageConverter, and ObjectConverter.

◆ convert() [2/2]

virtual aron::data::VariantPtr convert ( const ConversionResult ,
const armarx::aron::Path p 
)
pure virtual

Implemented in ImageConverter, and ObjectConverter.

Member Data Documentation

◆ convertsType

const aron::type::Descriptor convertsType

Definition at line 52 of file Converter.h.

◆ extractor

const std::unique_ptr<Extractor> extractor

Definition at line 54 of file Converter.h.

◆ identifier

const std::string identifier

Definition at line 50 of file Converter.h.

◆ suffix

const std::string suffix

Definition at line 51 of file Converter.h.

◆ type

const ConverterType type

Definition at line 49 of file Converter.h.


The documentation for this class was generated from the following files: