HEBI C++ API  3.10.0
log_file.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "hebi.h"
4 
5 #include <memory>
6 
7 #include "group_feedback.hpp"
8 
9 namespace hebi {
10 
11 class LogFile final {
12  friend class Group;
13 
14 private:
15  HebiLogFilePtr internal_;
16  const int number_of_modules_;
17 
18  LogFile(HebiLogFilePtr internal, int number_of_modules);
19 
20 public:
28  static std::shared_ptr<LogFile> open(std::string file);
29 
33  int size() const;
34 
44  bool getNextFeedback(GroupFeedback& feedback);
45 
46  LogFile() = delete;
47  ~LogFile();
48 
50 };
51 
52 } // namespace hebi
~LogFile()
Definition: log_file.cpp:26
A list of Feedback objects that can be received from a Group of modules; the size() must match the nu...
Definition: group_feedback.hpp:18
Represents a group of physical HEBI modules, and allows Command, Feedback, and Info objects to be sen...
Definition: group.hpp:42
int size() const
Returns the number of modules in the log file.
Definition: log_file.cpp:17
LogFile()=delete
Definition: arm.cpp:10
#define HEBI_DISABLE_COPY_MOVE(Class)
Definition: util.hpp:6
Definition: log_file.hpp:11
bool getNextFeedback(GroupFeedback &feedback)
retrieves the next group feedback from the log file, if any exists
Definition: log_file.cpp:19
static std::shared_ptr< LogFile > open(std::string file)
Opens an existing log file.
Definition: log_file.cpp:8