BsonConverter.h
Go to the documentation of this file.
1 #pragma once
2 
3 // Base Class
4 #include "../Converter.h"
5 
6 // ArmarX
7 #include "../json/JsonConverter.h"
8 
10 {
11  class BsonConverter;
12  using BsonConverterPtr = std::shared_ptr<BsonConverter>;
13 
15  {
16  public:
17  BsonConverter() : ObjectConverter(ConverterType::Binary, "dict", ".bson")
18  {
19  }
20 
21  protected:
22  ConversionResult _convert(const aron::data::DictPtr& data) final;
23  aron::data::DictPtr _convert(const ConversionResult& data,
24  const armarx::aron::Path& p) final;
25 
26  private:
27  JsonConverter jsonConverter;
28  };
29 } // namespace armarx::armem::server::ltm::processor::converter::data::object
armarx::armem::server::ltm::processor::converter::data::object::JsonConverter
Definition: JsonConverter.h:11
armarx::armem::server::ltm::processor::converter::data::ObjectConverter
Definition: Converter.h:14
armarx::aron::Path
The Path class.
Definition: Path.h:36
armarx::armem::server::ltm::processor::converter::data::object::BsonConverterPtr
std::shared_ptr< BsonConverter > BsonConverterPtr
Definition: BsonConverter.h:12
data
uint8_t data[1]
Definition: EtherCATFrame.h:68
armarx::armem::server::ltm::processor::converter::data::object::BsonConverter::_convert
ConversionResult _convert(const aron::data::DictPtr &data) final
Definition: BsonConverter.cpp:14
armarx::armem::server::ltm::processor::converter::data::object::BsonConverter::BsonConverter
BsonConverter()
Definition: BsonConverter.h:17
armarx::aron::data::DictPtr
std::shared_ptr< Dict > DictPtr
Definition: Dict.h:41
armarx::armem::server::ltm::processor::converter::data::object
Definition: BsonConverter.cpp:8
armarx::armem::server::ltm::processor::converter::data::object::BsonConverter
Definition: BsonConverter.h:14
armarx::armem::server::ltm::processor::DataConverter::ConverterType
ConverterType
Definition: Converter.h:19