reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
SipConfigParse.hxx
Go to the documentation of this file.
1#if !defined(SipConfigParse_hxx)
2#define SipConfigParse_hxx
3
4
6
7#include "resip/stack/Uri.hxx"
9
10namespace resip
11{
12
14{
15
16public:
19 virtual ~SipConfigParse();
20
22 bool getConfigValue(const resip::Data& name, resip::Uri &value);
23 resip::Uri getConfigUri(const resip::Data& name, const resip::Uri& defaultValue, bool useDefaultIfEmpty=false);
24
25 bool getConfigValue(const resip::Data& name, resip::NameAddr &value);
26 resip::NameAddr getConfigNameAddr(const resip::Data& name, const resip::NameAddr& defaultValue, bool useDefaultIfEmpty=false);
27
28 bool getConfigValue(const resip::Data& name, SecurityTypes::SSLType &value);
30
33
34 // Must define this so instances of SipConfigParse can be instantiated
35 virtual void printHelpText(int argc, char **argv) {};
36};
37
38}
39
40#endif
41
42/* ====================================================================
43 *
44 * Copyright 2016 Daniel Pocock http://danielpocock.com All rights reserved.
45 *
46 * Redistribution and use in source and binary forms, with or without
47 * modification, are permitted provided that the following conditions
48 * are met:
49 *
50 * 1. Redistributions of source code must retain the above copyright
51 * notice, this list of conditions and the following disclaimer.
52 *
53 * 2. Redistributions in binary form must reproduce the above copyright
54 * notice, this list of conditions and the following disclaimer in
55 * the documentation and/or other materials provided with the
56 * distribution.
57 *
58 * 3. Neither the name of the author(s) nor the names of any contributors
59 * may be used to endorse or promote products derived from this software
60 * without specific prior written permission.
61 *
62 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
63 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
64 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
65 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
66 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
67 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
68 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
69 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
70 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
71 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
72 * SUCH DAMAGE.
73 *
74 * ====================================================================
75 *
76 *
77 */
78
bool getConfigValue(const resip::Data &name, resip::Data &value) const
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
Represents the "name-addr" and the "addr-spec" elements in the RFC 3261 grammar.
Definition NameAddr.hxx:19
resip::Uri getConfigUri(const resip::Data &name, const resip::Uri &defaultValue, bool useDefaultIfEmpty=false)
SecurityTypes::TlsClientVerificationMode getConfigClientVerificationMode(const resip::Data &name, SecurityTypes::TlsClientVerificationMode defaultValue)
SecurityTypes::SSLType getConfigSSLType(const resip::Data &name, SecurityTypes::SSLType defaultValue)
bool getConfigValue(const resip::Data &name, resip::Uri &value)
resip::NameAddr getConfigNameAddr(const resip::Data &name, const resip::NameAddr &defaultValue, bool useDefaultIfEmpty=false)
virtual void printHelpText(int argc, char **argv)
SipConfigParse(const ConfigParse &c)
Represents the "SIP-URI" and "SIPS-URI" elements in the RFC 3261 grammar.
Definition Uri.hxx:22
SSLType
Note: Before adding to the SSLType enum, please see the comments about mTlsCtx in resip/stack/ssl/Sec...
dcm! – add UnusedChecking(_enum) below;