reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
DomainMatcher.hxx
Go to the documentation of this file.
1#if !defined(RESIP_DOMAINMATCHER_HXX)
2#define RESIP_DOMAINMATCHER_HXX
3
5#include "rutil/Data.hxx"
6#include "rutil/HashMap.hxx"
8
9namespace resip
10{
11
13{
14
15 public:
16
25 virtual bool isMyDomain(const Data& domain) const = 0;
26
42 virtual void addDomain(const Data& domain) = 0;
43
57 virtual void removeDomain(const Data& domain) = 0;
58
59};
60
61}
62
63#endif
64
65/* ====================================================================
66 *
67 * Copyright 2017 Daniel Pocock http://danielpocock.com All rights reserved.
68 *
69 * Redistribution and use in source and binary forms, with or without
70 * modification, are permitted provided that the following conditions
71 * are met:
72 *
73 * 1. Redistributions of source code must retain the above copyright
74 * notice, this list of conditions and the following disclaimer.
75 *
76 * 2. Redistributions in binary form must reproduce the above copyright
77 * notice, this list of conditions and the following disclaimer in
78 * the documentation and/or other materials provided with the
79 * distribution.
80 *
81 * 3. Neither the name of the author(s) nor the names of any contributors
82 * may be used to endorse or promote products derived from this software
83 * without specific prior written permission.
84 *
85 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
86 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
87 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
88 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
89 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
90 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
91 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
92 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
93 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
94 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
95 * SUCH DAMAGE.
96 *
97 * ====================================================================
98 *
99 *
100 */
101
Wraps your platform's implementation of hash_map, hash_multimap, and hash_set.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
virtual bool isMyDomain(const Data &domain) const =0
Returns true iff domain matches one of the domains that this TransactionUser is responsible for.
virtual void removeDomain(const Data &domain)=0
Removes a domain from the set of domains that this TransactionUser is responsible for.
virtual void addDomain(const Data &domain)=0
Adds a domain to the set of domains that this TransactionUser is responsible for.
dcm! – add UnusedChecking(_enum) below;