libcex  1.0.0
Modern C++11 embedded webserver library
Public Member Functions | List of all members
cex::Property Class Reference

Describes a single property containing one or more typed values. More...

#include <plist.hpp>

Public Member Functions

 Property (std::string value)
 Constructs a new property with a string value.
 
 Property (std::string &&value)
 Constructs a new property with a string value (moving the value)
 
 Property (long value)
 Constructs a new property with a long value.
 
 Property (double value)
 Constructs a new property with a double value.
 
 Property (void *value)
 Constructs a new property with a void* value.
 
std::string & getStringValue ()
 Retrieves the string value of the property. If no string value was set, returns an empty string object.
 
long getLongValue ()
 Retrieves the long value of the property. If no long value was set, returns 0.
 
double getDoubleValue ()
 Retrieves the double value of the property. If no double value was set, returns 0.
 
template<typename T >
T * getObjectValue ()
 Retrieves the void* value casted to the template type. If no void* was set, returns a null-pointer.
 

Detailed Description

Describes a single property containing one or more typed values.

A property can have several values, one for each of the types (string, long, double, void*)


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