|
Web framework C++
2.0.0
Simple web framework on c++ designed to easily create web pages, etc
|
Factory, that make clone of cookie entities prototypes. More...
#include <cookie_entity_factory.h>

Public Types | |
| enum | EntityType { Default, HttpOnly, WeekExpires } |
Public Member Functions | |
| CookieEntityFactory () | |
| std::unique_ptr< Entity > | createCookie (EntityType entityType, std::string &value) |
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.
| CookieEntityFactory::CookieEntityFactory | ( | ) |
Create factory and initialize all default CookieEntity types.
| std::unique_ptr<Entity> CookieEntityFactory::createCookie | ( | EntityType | entityType, |
| std::string & | value | ||
| ) |
Clone of existing cookie entity type with passed value
| entityType | type from EntityType enumeration |
| value | serialized value of cookie |
1.8.11