Interval: Added accessor for Daterange

This commit is contained in:
Paul Beckingham 2016-04-16 15:17:48 -04:00
parent 288f911050
commit 041df5c77d
2 changed files with 7 additions and 0 deletions

View file

@ -89,6 +89,12 @@ bool Interval::empty () const
_tags.size () == 0; _tags.size () == 0;
} }
////////////////////////////////////////////////////////////////////////////////
Daterange Interval::range () const
{
return _range;
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
Datetime Interval::start () const Datetime Interval::start () const
{ {

View file

@ -37,6 +37,7 @@ public:
Interval () = default; Interval () = default;
void initialize (const std::string&); void initialize (const std::string&);
bool empty () const; bool empty () const;
Daterange range () const;
Datetime start () const; Datetime start () const;
void start (Datetime); void start (Datetime);