Skip to content
Snippets Groups Projects
Commit 4721d1e6 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

WIP Reader writer headers

parent ccb2ce7f
No related branches found
No related tags found
1 merge request!127Implements #196 stream capturing
#ifndef _FTL_CODECS_READER_HPP_
#define _FTL_CODECS_READER_HPP_
namespace ftl {
namespace codecs {
class Reader {
public:
Reader();
~Reader();
bool open(const std::string &filename);
bool start(const std::function<void(const ftl::codecs::StreamPacket &, const ftl::codecs::Packet &)> &);
void stop();
void pause(bool);
bool paused();
void loop(bool);
bool looping();
};
}
}
#endif // _FTL_CODECS_READER_HPP_
#ifndef _FTL_CODECS_WRITER_HPP_
#define _FTL_CODECS_WRITER_HPP_
namespace ftl {
namespace codecs {
class Writer {
public:
Writer();
~Writer();
bool open(const std::string &filename);
bool write(const ftl::codecs::StreamPacket &, const ftl::codecs::Packet &);
bool write(const ftl::codecs::StreamPacket &, const std::string &json);
bool write(const ftl::codecs::StreamPacket &, const Eigen::Matrix4d &m);
private:
std::ofstream file_;
};
}
}
#endif // _FTL_CODECS_WRITER_HPP_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment