Open Lighting Architecture
0.9.2
|
Represents a URL with the an associated lifetime. The URL cannot be changed once the object is created. This object is cheap to copy so it can be used in STL containers. It doesn't have an ordering defined though.
Public Member Functions | |
URLEntry (const std::string &url, uint16_t lifetime) | |
std::string | url () const |
uint16_t | lifetime () const |
void | set_lifetime (uint16_t lifetime) |
bool | AgeLifetime (uint16_t seconds) |
unsigned int | PackedSize () const |
void | Write (ola::io::BigEndianOutputStreamInterface *output) const |
bool | operator== (const URLEntry &other) const |
bool | operator!= (const URLEntry &other) const |
URLEntry & | operator= (const URLEntry &other) |
void | ToStream (std::ostream *out) const |
std::string | ToString () const |
Protected Attributes | |
std::string | m_url |
uint16_t | m_lifetime |
Friends | |
std::ostream & | operator<< (std::ostream &out, const URLEntry &entry) |
|
inline |
Create a new URLEntry
url | the url string |
lifetime | the lifetime in seconds. |