52 unsigned int start()
const ;
55 unsigned int end()
const ;
79 typedef G::DateTime::BrokenDownTime Tm ;
80 static g__constexpr std::time_t epoch_base = 946684800 ;
81 static unsigned int to_int(
char a ,
char b ,
unsigned int error = 100U ) ;
82 static Tm bdt(
const std::string & ,
size_t ) ;
83 static std::time_t daystamp( Tm ,
const Gv::Timezone & tz ) ;
110 unsigned int first_ts ;
111 unsigned int last_ts ;
115 bool includes(
const G::Path & )
const ;
116 void update(
const G::Path & ,
unsigned int ts ) ;
117 bool marked()
const ;
119 typedef std::vector<Item> List ;
152 G::Path find(
size_t offset ,
bool before =
false )
const ;
177 size_t size()
const ;
180 static size_t timepos(
const G::Path & path ,
const std::string & name ) ;
189 List::const_iterator
begin()
const ;
192 List::const_iterator
end()
const ;
207 size_t bucket(
unsigned int ts )
const ;
208 static size_t timeposImp(
const G::Path & path ,
const std::string & match1 ,
const std::string & match2 ) ;
216 static int m_height ;
218 std::string m_match1 ;
219 std::string m_match2 ;
A subsecond-resolution timestamp based on a time_t.
void scan(const G::Path &path, size_t tpos)
Does a complete scan for the day that encompases the given timestamped() file.
RibbonRange around(const G::Path &) const
Returns a range includes the given timestamped trigger path.
bool apply(const G::Path &)
Called when a possibly-new timestamped file is encountered, allowing the ribbon to update itself for ...
A class for walking files in a directory tree, with repositioning.
A representation of a timezone.
RibbonRange()
Default constructor for an unusable object.
G::Path last() const
Returns the last scanned path.
List::const_iterator begin() const
Returns the item list's begin iterator.
RibbonRange operator()(int offset) const
Returns a range that is offset from the current range.
void mark(const G::Path &)
Marks the bucket that contains the given path.
unsigned int end() const
Returns the timestamp() value for the start of the next day.
G::Path first() const
Returns the first scanned path.
Represents a day span within the file store, used by Gv::Ribbon.
const RibbonRange & range() const
Returns the current day range.
static int height()
Returns a suggested height of the ribbon, in pixels.
static size_t timepos(const G::Path &path, const std::string &name)
Returns the timestamp position within the given path, or zero if none.
size_t size() const
Returns the size of the list, as passed in to the constructor.
Holds ribbon data that can be used to add a ribbon widget to a video stream display.
unsigned int start() const
Returns the timestamp() value for the start of the day.
bool scanSome(G::FileTree &, G::EpochTime interval)
Does a partial scan, limited by the given time interval.
G::Path startpath() const
Returns the directory path that is the start of the day at the minutes level (eg. ...
List::const_iterator end() const
Returns the item list's end iterator.
unsigned int timestamp(const G::Path &) const
Returns the time value for the given path, as seconds within some arbitrary epoch.
bool scanStart(G::FileTree &, const RibbonRange &range)
Prepares for an iterative scan, with subsequent calls to scanSome().
G::Path find(size_t offset, bool before=false) const
Finds the first scanned path at-or-after the given bucket position, or returns the last() path if the...
bool timestamped(const G::Path &path) const
Returns true if the given absolute path has a non-zero timepos().
G::Path endpath() const
Returns the directory path that is the start of the next day at the minutes level.
A Path object represents a file system path.
A time bucket within a Gv::Ribbon.
Ribbon()
Default constructor for a zero-size() ribbon.