25#define _HTTPCOOKIE_H_ 1
80 const std::string& value);
99 const std::string& value,
101 const std::string& domain,
102 unsigned long maxAge,
103 const std::string& path,
149 {
return ! operator==(cookie); }
179 { fRemoved = removed; }
201 const std::string& domain,
202 const std::string& path,
315 { fDomain = domain; }
325 { fMaxAge = maxAge; }
345 { fSecure = secure; }
359 std::string fComment;
361 unsigned long fMaxAge;
Platform and operating system specific macro definitions.
Abstract base class for all streamable objects.
void setName(const std::string &name)
Set the name of this cookie.
void setPath(const std::string &path)
Set the path of this cookie.
void setSecure(bool secure)
Mark this cookie as secure or unsecure.
void setRemoved(bool removed)
Mark this cookie as secure or unsecure.
std::string getValue() const
Get the value of this cookie.
std::string getComment() const
Get the comment of this cookie.
HTTPCookie()
Default Constructor.
std::string getPath() const
Get the path of this cookie.
virtual ~HTTPCookie()
Destructor.
void setMaxAge(unsigned long maxAge)
Set the lifetime of this cookie, in seconds.
HTTPCookie(const std::string &name, const std::string &value)
Create a new HTTPCookie.
HTTPCookie(const std::string &name, const std::string &value, const std::string &comment, const std::string &domain, unsigned long maxAge, const std::string &path, bool secure)
Create a new fully-spefified HTTPCookie.
std::string getName() const
Get the name of this cookie.
void setValue(const std::string &value)
Set the value of this cookie.
virtual void render(std::ostream &out) const
Write this object to a stream.
void setComment(const std::string &comment)
Set the comment of this cookie.
unsigned long getMaxAge() const
Get the lifetime of this cookie, in seconds.
void remove()
Mark this cookie as secure or unsecure.
bool isRemoved() const
Determine if this is a removed cookie.
void setDomain(const std::string &domain)
Set the domain of this cookie.
bool isSecure() const
Determine if this is a secure cookie.
HTTPCookie(const std::string &name, const std::string &domain, const std::string &path, bool secure)
Create a new partially-spefified HTTPCookie for deletion.
HTTPCookie(const HTTPCookie &cookie)
Copy constructor.
std::string getDomain() const
Get the domain for which this cookie is valid.
Mix-in streamable interface.
The namespace containing the cgicc library.