Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Friends | List of all members
ola::slp::URLEntry Class Reference

Detailed Description

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 string &url, uint16_t lifetime)
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
URLEntryoperator= (const URLEntry &other)
void ToStream (ostream *out) const
string ToString () const

Protected Attributes

string m_url
uint16_t m_lifetime

Friends

ostream & operator<< (ostream &out, const URLEntry &entry)

Constructor & Destructor Documentation

ola::slp::URLEntry::URLEntry ( const string &  url,
uint16_t  lifetime 
)
inline

Create a new URLEntry

Parameters
urlthe url string
lifetimethe lifetime in seconds.

The documentation for this class was generated from the following file: