Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
cookie_entity_factory.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <unordered_map>
5 #include "entity.h"
6 
14 public:
18  enum EntityType {
22  };
23 
28 
39  std::unique_ptr<Entity> createCookie(EntityType entityType, std::string & value);
40 private:
41  std::unordered_map<EntityType, std::unique_ptr<Entity>> storage;
42 };
std::unique_ptr< Entity > createCookie(EntityType entityType, std::string &value)
Factory, that make clone of cookie entities prototypes.
Definition: cookie_entity_factory.h:13
Definition: cookie_entity_factory.h:19
Definition: cookie_entity_factory.h:21
Definition: cookie_entity_factory.h:20
EntityType
Definition: cookie_entity_factory.h:18