Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
ftl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas Pope
ftl
Commits
4721d1e6
Commit
4721d1e6
authored
5 years ago
by
Nicolas Pope
Browse files
Options
Downloads
Patches
Plain Diff
WIP Reader writer headers
parent
ccb2ce7f
No related branches found
No related tags found
1 merge request
!127
Implements #196 stream capturing
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/codecs/include/ftl/codecs/reader.hpp
+28
-0
28 additions, 0 deletions
components/codecs/include/ftl/codecs/reader.hpp
components/codecs/include/ftl/codecs/writer.hpp
+26
-0
26 additions, 0 deletions
components/codecs/include/ftl/codecs/writer.hpp
with
54 additions
and
0 deletions
components/codecs/include/ftl/codecs/reader.hpp
0 → 100644
+
28
−
0
View file @
4721d1e6
#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_
This diff is collapsed.
Click to expand it.
components/codecs/include/ftl/codecs/writer.hpp
0 → 100644
+
26
−
0
View file @
4721d1e6
#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_
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment