Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
Public Member Functions | List of all members
Entity Class Referenceabstract

Cloneable interface of object wth value and serializable method. More...

#include <entity.h>

Inheritance diagram for Entity:
Inheritance graph
Collaboration diagram for Entity:
Collaboration graph

Public Member Functions

virtual ~Entity ()=default
 
virtual void setValue (std::string value)=0
 
virtual std::string toString ()=0
 
virtual std::unique_ptr< Entityclone ()=0
 

Detailed Description

Cloneable interface of object wth value and serializable method.

Abstract class with value and some methods. Could be cloned by method clone

Constructor & Destructor Documentation

virtual Entity::~Entity ( )
virtualdefault

default destructor

Member Function Documentation

virtual std::unique_ptr<Entity> Entity::clone ( )
pure virtual

Clone this object

Returns
new Entity object

Implemented in CookieEntity, CookieEntityWeek, CookieEntityHttp, and CookieEntityDefault.

virtual void Entity::setValue ( std::string  value)
pure virtual

Set serialized value

Parameters
valueserialized value

Implemented in CookieEntity, CookieEntityWeek, CookieEntityHttp, and CookieEntityDefault.

virtual std::string Entity::toString ( )
pure virtual

Serialize current entity

Returns
get string representation

Implemented in CookieEntity, CookieEntityDefault, CookieEntityWeek, and CookieEntityHttp.


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