Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
cookie_entity_week.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <ctime>
5 #include "entity.h"
6 
13 class CookieEntityWeek : public Entity {
14  std::string value;
15  std::time_t expires;
16 public:
23  explicit CookieEntityWeek(const char * value);
24 
31  std::string toString() override;
32 
39  void setValue(std::string value) override;
40 
47  std::unique_ptr<Entity> clone() override;
48 };
std::unique_ptr< Entity > clone() override
Default CookieEntity which expires in a week since created.
Definition: cookie_entity_week.h:13
void setValue(std::string value) override
CookieEntityWeek(const char *value)
Cloneable interface of object wth value and serializable method.
Definition: entity.h:10
std::string toString() override