reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Cookie.hxx
Go to the documentation of this file.
1#if !defined(RESIP_COOKIE_HXX)
2#define RESIP_COOKIE_HXX
3
4
5#include "rutil/Data.hxx"
6
7#include <vector>
8
9namespace resip
10{
11
12class Cookie
13{
14 public:
15
16 Cookie();
17 Cookie(const Data& name, const Data& value);
18
19 Cookie& operator=(const Cookie&);
20 bool operator==(const Cookie& other) const;
21 bool operator<(const Cookie& rhs) const;
22 friend EncodeStream& operator<<(EncodeStream& strm, const Cookie& c);
23
24 const Data& name() const;
25 Data& name();
26
27 const Data& value() const;
28 Data& value();
29
30 private:
31 Data mName;
32 Data mValue;
33};
34
35typedef std::vector<Cookie> CookieList;
36
38
39}
40
41#endif
42
43
44/* ====================================================================
45 * BSD License
46 *
47 * Copyright (c) 2013 Catalin Constantin Usurelu All rights reserved.
48 *
49 * Redistribution and use in source and binary forms, with or without
50 * modification, are permitted provided that the following conditions
51 * are met:
52 *
53 * 1. Redistributions of source code must retain the above copyright
54 * notice, this list of conditions and the following disclaimer.
55 *
56 * 2. Redistributions in binary form must reproduce the above copyright
57 * notice, this list of conditions and the following disclaimer in
58 * the documentation and/or other materials provided with the
59 * distribution.
60 *
61 * 3. Neither the name of the author(s) nor the names of any contributors
62 * may be used to endorse or promote products derived from this software
63 * without specific prior written permission.
64 *
65 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
66 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
67 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
68 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
69 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
70 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
71 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
72 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
73 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
74 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
75 * SUCH DAMAGE.
76 *
77 * ====================================================================
78 *
79 */
friend EncodeStream & operator<<(EncodeStream &strm, const Cookie &c)
bool operator<(const Cookie &rhs) const
Definition Cookie.cxx:42
bool operator==(const Cookie &other) const
Definition Cookie.cxx:37
const Data & name() const
Definition Cookie.cxx:55
const Data & value() const
Definition Cookie.cxx:67
Cookie & operator=(const Cookie &)
Definition Cookie.cxx:26
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
dcm! – add UnusedChecking(_enum) below;
EncodeStream & operator<<(EncodeStream &strm, const BaseException &e)
std::vector< Cookie > CookieList
Definition Cookie.hxx:35
#define EncodeStream