log_file.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "hebi.h"
4 #include "group_feedback.hpp"
5 
6 #include <memory>
7 
8 namespace hebi {
9 
10 class LogFile final {
11 
12  friend class Group;
13 
14 private:
15 
17  const int number_of_modules_;
18 
19  LogFile(HebiLogFilePtr internal, int number_of_modules);
20 
21 public:
22 
30  static std::shared_ptr<LogFile> open(std::string file);
31 
35  int size() const;
36 
46  bool getNextFeedback(GroupFeedback& feedback);
47 
48  LogFile() = delete;
49  ~LogFile();
50 
52 
53 };
54 
55 }
A list of Feedback objects that can be received from a Group of modules; the size() must match the nu...
Represents a group of physical HEBI modules, and allows Command, Feedback, and Info objects to be sen...
Definition: group.hpp:49
HEBI_DISABLE_COPY_MOVE(LogFile)
LogFile()=delete
Definition: color.hpp:5
HebiLogFilePtr internal_
Definition: log_file.hpp:16
const int number_of_modules_
Definition: log_file.hpp:17
bool getNextFeedback(GroupFeedback &feedback)
retrieves the next group feedback from the log file, if any exists
Definition: log_file.cpp:24
int size() const
Returns the number of modules in the log file.
Definition: log_file.cpp:20
static std::shared_ptr< LogFile > open(std::string file)
Opens an existing log file.
Definition: log_file.cpp:9
struct _HebiLogFile * HebiLogFilePtr
The C-style&#39;s API representation of a log file.
Definition: hebi.h:388


hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:08:21