11 #include <SpaceVecAlg/SpaceVecAlg>
15 #include <unordered_map>
29 template<
int N,
int _Options,
int _MaxRows,
int _MaxCols>
32 using type = std::conditional_t<N == 2 || N == 3 || N == 6,
33 Eigen::Matrix<double, N, 1, _Options, _MaxRows, _MaxCols>,
58 void load(
const std::string & fpath);
61 void append(
const std::string & fpath);
73 std::set<LogType>
types(
const std::string &
entry)
const;
90 std::vector<const get_raw_return_t<T> *>
getRaw(
const std::string &
entry)
const;
104 std::vector<get_raw_return_t<T>>
get(
const std::string &
entry,
const T & def)
const;
116 std::vector<get_raw_return_t<T>>
get(
const std::string &
entry)
const;
146 inline const std::vector<std::vector<Logger::GUIEvent>> &
guiEvents() const noexcept {
return gui_events_; }
152 inline const std::optional<Logger::Meta> &
meta() const noexcept {
return meta_; }
173 std::vector<entry> data_;
174 std::vector<std::vector<Logger::GUIEvent>> gui_events_;
175 std::optional<Logger::Meta> meta_;
178 const std::vector<record> & at(
const std::string &
entry)
const;
181 size_t index(
const std::string &
entry,
size_t size);
184 void appendFlat(
const std::string & fpath);
187 void appendBin(
const std::string & fpath);
192 #include "FlatLog.hpp"
Definition: deprecated.h:16
LogType
Definition: utils.h:13
Definition: FlatLog.h:167
std::string name
Definition: FlatLog.h:168
std::vector< record > records
Definition: FlatLog.h:169
Definition: FlatLog.h:155
record & operator=(const record &)=delete
std::unique_ptr< void, void(*)(void const *)> unique_void_ptr
Definition: FlatLog.h:156
record(LogType t, unique_void_ptr &&d)
Definition: FlatLog.h:158
unique_void_ptr data
Definition: FlatLog.h:164
record(const record &)=delete
record & operator=(record &&)=default
record(record &&)=default
FlatLog(const std::string &fpath)
get_raw_return_t< T > get(const std::string &entry, size_t i, const T &def) const
FlatLog(FlatLog &&)=default
std::vector< get_raw_return_t< T > > get(const std::string &entry, const T &def) const
const get_raw_return_t< T > * getRaw(const std::string &entry, size_t i) const
FlatLog & operator=(const FlatLog &)=delete
void append(const std::string &fpath)
const std::optional< Logger::Meta > & meta() const noexcept
Definition: FlatLog.h:152
std::vector< const get_raw_return_t< T > * > getRaw(const std::string &entry) const
std::set< LogType > types(const std::string &entry) const
bool has(const std::string &entry) const
std::set< std::string > entries() const
LogType type(const std::string &entry, size_t i) const
FlatLog & operator=(FlatLog &&)=default
void load(const std::string &fpath)
std::vector< get_raw_return_t< T > > get(const std::string &entry) const
typename details::GetRawReturnType< T >::type get_raw_return_t
Definition: FlatLog.h:43
FlatLog(const FlatLog &)=delete
const std::vector< std::vector< Logger::GUIEvent > > & guiEvents() const noexcept
Definition: FlatLog.h:146
LogType type(const std::string &entry) const
std::conditional_t< N==2||N==3||N==6, Eigen::Matrix< double, N, 1, _Options, _MaxRows, _MaxCols >, Eigen::VectorXd > type
Definition: FlatLog.h:34
T type
Definition: FlatLog.h:26
#define MC_RTC_UTILS_DLLAPI
Definition: utils_api.h:50