MCPcopy Create free account
hub / github.com/JosephP91/curlcpp / cookie_datetime

Class cookie_datetime

include/cookie_datetime.h:36–75  ·  view source on GitHub ↗

* This class provide an easy way to specify the date and the time of cooking expiration. */

Source from the content-addressed store, hash-verified

34 * This class provide an easy way to specify the date and the time of cooking expiration.
35 */
36 class cookie_datetime {
37 public:
38 /**
39 * Default constructor.
40 */
41 cookie_datetime() = default;
42 /**
43 * The constructor with parameters allows to specify a time and a date for cookie expiration.
44 */
45 cookie_datetime(const cookie_time &, const cookie_date &) NOEXCEPT;
46 /**
47 * This method allows to set the expiration time.
48 */
49 cookie_datetime *set_time(const cookie_time &) NOEXCEPT;
50 /**
51 * This method allows to set the expiration date.
52 */
53 cookie_datetime *set_date(const cookie_date &) NOEXCEPT;
54 /**
55 * This method returns the time object.
56 */
57 cookie_time get_time() const NOEXCEPT;
58 /**
59 * This method returns the date object.
60 */
61 cookie_date get_date() const NOEXCEPT;
62 /**
63 * This method returns the cookie_datetime as a string.
64 */
65 std::string get_formatted() NOEXCEPT;
66 private:
67 /**
68 * Time object.
69 */
70 cookie_time time;
71 /**
72 * Date object.
73 */
74 cookie_date date;
75 };
76}
77
78#endif //CURLCPP_COOKIE_DATETIME_H

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected