VideoTools
|
Represents a day span within the file store, used by Gv::Ribbon. More...
#include <gvribbon.h>
Public Member Functions | |
RibbonRange (const G::Path &trigger_path, size_t tpos, const Gv::Timezone &tz) | |
Constructor for the day span that includes the given timestamped trigger path. More... | |
RibbonRange () | |
Default constructor for an unusable object. | |
unsigned int | start () const |
Returns the timestamp() value for the start of the day. | |
unsigned int | end () const |
Returns the timestamp() value for the start of the next day. | |
G::Path | startpath () const |
Returns the directory path that is the start of the day at the minutes level (eg. More... | |
G::Path | endpath () const |
Returns the directory path that is the start of the next day at the minutes level. More... | |
RibbonRange | around (const G::Path &) const |
Returns a range includes the given timestamped trigger path. More... | |
RibbonRange | operator() (int offset) const |
Returns a range that is offset from the current range. | |
unsigned int | timestamp (const G::Path &) const |
Returns the time value for the given path, as seconds within some arbitrary epoch. More... | |
Represents a day span within the file store, used by Gv::Ribbon.
Definition at line 40 of file gvribbon.h.
Gv::RibbonRange::RibbonRange | ( | const G::Path & | trigger_path, |
size_t | tpos, | ||
const Gv::Timezone & | tz | ||
) |
Constructor for the day span that includes the given timestamped trigger path.
The root of the file store is given by the first tpos characters of the trigger path.
Definition at line 278 of file gvribbon.cpp.
Gv::RibbonRange Gv::RibbonRange::around | ( | const G::Path & | path | ) | const |
Returns a range includes the given timestamped trigger path.
The root directory and timezone carry over.
Definition at line 297 of file gvribbon.cpp.
G::Path Gv::RibbonRange::endpath | ( | ) | const |
Returns the directory path that is the start of the next day at the minutes level.
Definition at line 337 of file gvribbon.cpp.
G::Path Gv::RibbonRange::startpath | ( | ) | const |
Returns the directory path that is the start of the day at the minutes level (eg.
"/data/2000/01/01/00/00"), taking the timezone into account.
Definition at line 332 of file gvribbon.cpp.
unsigned int Gv::RibbonRange::timestamp | ( | const G::Path & | path | ) | const |
Returns the time value for the given path, as seconds within some arbitrary epoch.
Definition at line 342 of file gvribbon.cpp.