Open Lighting Architecture  0.9.0
 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 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
URLEntryoperator= (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)

Constructor & Destructor Documentation

ola::slp::URLEntry::URLEntry ( const std::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: