interfaces.h
Go to the documentation of this file.
1 #pragma once
2 
3 
6 
8 {
10  {
11  public:
12  virtual ~ReaderInterface() = default;
13 
14  virtual bool synchronize(ArticulatedObject& obj,
15  const armem::Time& timestamp,
16  const std::optional<std::string>& providerName) const = 0;
17 
18  virtual ArticulatedObject get(const ArticulatedObjectDescription& description,
19  const armem::Time& timestamp,
20  const std::string& instanceName,
21  const std::optional<std::string>& providerName) const = 0;
22  virtual std::optional<ArticulatedObject>
23  get(const std::string& name,
24  const armem::Time& timestamp,
25  const std::optional<std::string>& providerName) const = 0;
26  };
27 
29  {
30  public:
31  virtual ~WriterInterface() = default;
32 
33  virtual bool store(const ArticulatedObject& obj) const = 0;
34  };
35 
36 } // namespace armarx::armem::articulated_object
armarx::armem::robot_state::description::RobotDescription
Definition: types.h:44
armarx::armem::robot_state::Robot
Definition: types.h:126
armarx::armem::articulated_object::ReaderInterface::get
virtual ArticulatedObject get(const ArticulatedObjectDescription &description, const armem::Time &timestamp, const std::string &instanceName, const std::optional< std::string > &providerName) const =0
armarx::armem::articulated_object::WriterInterface::~WriterInterface
virtual ~WriterInterface()=default
types.h
armarx::armem::articulated_object::ReaderInterface::synchronize
virtual bool synchronize(ArticulatedObject &obj, const armem::Time &timestamp, const std::optional< std::string > &providerName) const =0
armarx::armem::articulated_object::WriterInterface::store
virtual bool store(const ArticulatedObject &obj) const =0
armarx::armem::articulated_object::WriterInterface
Definition: interfaces.h:28
armarx::core::time::DateTime
Represents a point in time.
Definition: DateTime.h:24
armarx::armem::articulated_object
Definition: ArticulatedObjectReader.cpp:25
Time.h
armarx::armem::articulated_object::ReaderInterface::~ReaderInterface
virtual ~ReaderInterface()=default
armarx::armem::articulated_object::ReaderInterface
Definition: interfaces.h:9