log_store.h
Go to the documentation of this file.
1 
28 #ifndef LOG_VIEW_LOG_STORE_H_
29 #define LOG_VIEW_LOG_STORE_H_
30 
31 #include <deque>
32 #include <mutex>
33 
34 #include <log_view/datatypes.h>
35 #include <rosgraph_msgs/Log.h>
36 
37 namespace log_view {
38 
39 class LogStore {
40 public:
41  LogStore() = default;
42 
43  const std::deque<LogEntry>& logs();
44  size_t size() const;
45 
46  void addEntry(const rosgraph_msgs::LogConstPtr& msg);
47 
48 private:
49  std::deque<LogEntry> logs_;
50  std::deque<LogEntry> new_logs_;
51 
52  std::mutex mutex_;
53 
54 };
55 typedef std::shared_ptr<LogStore> LogStorePtr;
56 
57 } // namespace log_view
58 
59 #endif // LOG_VIEW_LOG_STORE_H_
log_view::LogStore::new_logs_
std::deque< LogEntry > new_logs_
Definition: log_store.h:50
log_view::LogStore::LogStore
LogStore()=default
log_view
Definition: datatypes.h:35
log_view::LogStorePtr
std::shared_ptr< LogStore > LogStorePtr
Definition: log_store.h:55
log_view::LogStore::logs
const std::deque< LogEntry > & logs()
Definition: log_store.cpp:32
log_view::LogStore
Definition: log_store.h:39
datatypes.h
log_view::LogStore::size
size_t size() const
Definition: log_store.cpp:41
log_view::LogStore::mutex_
std::mutex mutex_
Definition: log_store.h:52
log_view::LogStore::logs_
std::deque< LogEntry > logs_
Definition: log_store.h:49
log_view::LogStore::addEntry
void addEntry(const rosgraph_msgs::LogConstPtr &msg)
Definition: log_store.cpp:45


log_view
Author(s): Marc Alban
autogenerated on Sat Sep 17 2022 02:22:53