OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::rec::SeriesPart

One part of a multipart recording, as found on disk.

Public attributes

part

uint32_t part = 0

Which part this is, counting from 0 for the recording's first file -- the same number as series.part in otc-meta.json and the same number as the _partNNN suffix. Since API version 24 part 0 carries _part000, so the three agree for every part; it used to be the file carrying the bare base name.

path

std::string path

Where it is. Empty when the part is missing, which is a hole rather than an error: a customer may delete one file of a long recording, and a series that refuses to open at all because of that is worse than one that reports what is gone.

present

bool present = false

Whether a file for this part was found.

from_us

std::optional< uint64_t > from_us

Capture time of its first frame, as the part itself states it. Absent for a part that was opened and never written to.

duration_us

uint64_t duration_us = 0

Its own length, read from its container's Duration by the same code that answers Player::GetDurationUs(). Zero for a hole.

Per part, and summed rather than taken from any one file: each part's Duration is its own length inclusive of its last frame's duration (measured in this tree as 31000 us for a one-frame 32 Hz take), so a sum double-counts nothing.