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

Factory, that make clone of cookie entities prototypes. More...

#include <cookie_entity_factory.h>

Collaboration diagram for CookieEntityFactory:
Collaboration graph

Public Types

enum  EntityType { Default, HttpOnly, WeekExpires }
 

Public Member Functions

 CookieEntityFactory ()
 
std::unique_ptr< EntitycreateCookie (EntityType entityType, std::string &value)
 

Detailed Description

Factory, that make clone of cookie entities prototypes.

Helper class, which store only one example of concrete type of cookie entity, and then make clone of this prototypes.

Member Enumeration Documentation

Enumeration of all popular cookie types

Enumerator
Default 
HttpOnly 
WeekExpires 

Constructor & Destructor Documentation

CookieEntityFactory::CookieEntityFactory ( )

Create factory and initialize all default CookieEntity types.

Member Function Documentation

std::unique_ptr<Entity> CookieEntityFactory::createCookie ( EntityType  entityType,
std::string &  value 
)

Clone of existing cookie entity type with passed value

Parameters
entityTypetype from EntityType enumeration
valueserialized value of cookie
Returns
new CookieEntity object

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