movie_playback_state.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-3-Clause
2 // SPDX-FileCopyrightText: Czech Technical University in Prague
3 
10 #pragma once
11 
12 #include <memory>
13 
14 #include <movie_publisher/types.h>
15 #include <ros/time.h>
16 
17 namespace movie_publisher
18 {
19 
24 {
29  MoviePlaybackState(MoviePlaybackState&& other) noexcept;
31 
35  void reset();
36 
40  size_t frameNum() const;
44  void setFrameNum(size_t num);
45 
49  size_t subclipFrameNum() const;
53  void setSubclipFrameNum(size_t num);
54 
58  StreamTime streamTime() const;
62  void setStreamTime(const StreamTime& time);
63 
67  StreamTime subclipTime() const;
71  void setSubclipTime(const StreamTime& time);
72 
76  ros::Time rosTime() const;
80  void setRosTime(const ros::Time& time);
81 
85  bool hasMovieStarted() const;
89  void setMovieStarted(bool started);
90 
94  bool hasMovieEnded() const;
98  void setMovieEnded(bool ended);
99 
100  using Ptr = std::shared_ptr<MoviePlaybackState>;
101  using ConstPtr = std::shared_ptr<const MoviePlaybackState>;
102 
103 private:
104  struct Impl;
105  std::unique_ptr<Impl> data;
106 };
107 
108 }
movie_publisher::MoviePlaybackState::frameNum
size_t frameNum() const
movie_publisher::MoviePlaybackState::setMovieEnded
void setMovieEnded(bool ended)
types.h
Custom movie_publisher datatypes.
time.h
movie_publisher::MoviePlaybackState::operator=
MoviePlaybackState & operator=(const MoviePlaybackState &other)
movie_publisher::MoviePlaybackState::reset
void reset()
Reset the playback state to uninitialized state.
movie_publisher::MoviePlaybackState
State of movie playback.
Definition: movie_playback_state.h:23
movie_publisher::MoviePlaybackState::~MoviePlaybackState
~MoviePlaybackState()
movie_publisher::MoviePlaybackState::setStreamTime
void setStreamTime(const StreamTime &time)
movie_publisher::MoviePlaybackState::setMovieStarted
void setMovieStarted(bool started)
movie_publisher::StreamTime
Time type denoting movie stream time.
Definition: types.h:115
movie_publisher::MoviePlaybackState::setFrameNum
void setFrameNum(size_t num)
movie_publisher::MoviePlaybackState::hasMovieStarted
bool hasMovieStarted() const
movie_publisher::MoviePlaybackState::Ptr
std::shared_ptr< MoviePlaybackState > Ptr
Definition: movie_playback_state.h:100
movie_publisher::MoviePlaybackState::streamTime
StreamTime streamTime() const
movie_publisher::MoviePlaybackState::subclipFrameNum
size_t subclipFrameNum() const
movie_publisher::MoviePlaybackState::setSubclipFrameNum
void setSubclipFrameNum(size_t num)
ros::Time
movie_publisher
Definition: ExifBaseMetadataExtractor.h:27
movie_publisher::MoviePlaybackState::rosTime
ros::Time rosTime() const
movie_publisher::MoviePlaybackState::ConstPtr
std::shared_ptr< const MoviePlaybackState > ConstPtr
Definition: movie_playback_state.h:101
movie_publisher::MoviePlaybackState::setRosTime
void setRosTime(const ros::Time &time)
movie_publisher::MoviePlaybackState::hasMovieEnded
bool hasMovieEnded() const
movie_publisher::MoviePlaybackState::MoviePlaybackState
MoviePlaybackState()
movie_publisher::MoviePlaybackState::setSubclipTime
void setSubclipTime(const StreamTime &time)
movie_publisher::MoviePlaybackState::data
std::unique_ptr< Impl > data
PIMPL.
Definition: movie_playback_state.h:104
movie_publisher::MoviePlaybackState::subclipTime
StreamTime subclipTime() const


movie_publisher
Author(s): Martin Pecka
autogenerated on Wed May 28 2025 02:07:22