39 #if !defined(TAWARA_SEGMENT_INFO_H_)
40 #define TAWARA_SEGMENT_INFO_H_
96 std::vector<char>
uid()
const {
return uid_.value(); }
102 void uid(std::vector<char>
const& uid);
105 std::string
filename()
const {
return seg_fn_.value(); }
112 void filename(std::string
const& filename);
125 std::vector<char>
prev_uid()
const {
return prev_uid_.value(); }
127 void prev_uid(std::vector<char>
const& uid);
139 void prev_filename(std::string
const& filename);
152 std::vector<char>
next_uid()
const {
return next_uid_.value(); }
158 void next_uid(std::vector<char>
const& uid);
166 void next_filename(std::string
const& filename);
170 {
return seg_fam_.value(); }
176 void segment_family(std::vector<char>
const& segment_family);
189 void timecode_scale(uint64_t scale);
201 double duration()
const {
return duration_.value(); }
203 void duration(
double duration);
211 int64_t
date()
const {
return date_.value(); }
213 void date(int64_t date);
220 std::string
title()
const {
return title_.value(); }
226 void title(std::string
const& title);
235 void muxing_app(std::string
const& muxing_app);
244 void writing_app(std::string
const& writing_app);
247 virtual std::streamsize write_body(std::ostream& output);
278 virtual std::streamsize body_size()
const;
281 virtual std::streamsize read_body(std::istream& input,
282 std::streamsize
size);
291 #endif // TAWARA_SEGMENT_INFO_H_
std::string next_filename() const
Get the next segment's file name.
int64_t date() const
Get the segment's date.
std::vector< char > prev_uid() const
Get the previous segment's UID.
std::vector< char > segment_family() const
Get the segment's family UID.
std::streamsize size(ID id)
Get the number of bytes required by an ID.
uint64_t timecode_scale() const
Get the timecode scale.
std::string muxing_app() const
Get the name of the muxing application/library.
std::string prev_filename() const
Get the previous segment's file name.
The MasterElement interface.
The SegmentInfo element, containing the meta-data for a segment.
Binary primitive element.
std::string writing_app() const
Get the name of the writing application.
std::vector< char > next_uid() const
Get the next segment's UID.
double duration() const
Get the segment's duration.
std::vector< char > uid() const
Get the UID of this segment.
Unsigned integer primitive element.
String primitive element.
std::string title() const
Get the segment's title.
std::string filename() const
Get the segment's file name.
virtual ~SegmentInfo()
Destructor.