~ubuntu-branches/ubuntu/saucy/resiprocate/saucy-proposed

« back to all changes in this revision

Viewing changes to tfm/repro/CommandLineParser.hxx

  • Committer: Package Import Robot
  • Author(s): Daniel Pocock
  • Date: 2012-05-17 19:29:59 UTC
  • Revision ID: package-import@ubuntu.com-20120517192959-vv00m77isztdy64q
Tags: upstream-1.8.2
ImportĀ upstreamĀ versionĀ 1.8.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#if !defined(DUM_CommandLineParser_hxx)
 
2
#define DUM_CommandLineParser_hxx
 
3
 
 
4
#include <vector>
 
5
#include "resip/stack/Uri.hxx"
 
6
#include "rutil/Data.hxx"
 
7
 
 
8
class CommandLineParser
 
9
{
 
10
   public:
 
11
      CommandLineParser(int argc, char** argv);
 
12
      static resip::Uri toUri(const char* input, const char* description);
 
13
      static std::vector<resip::Uri> toUriVector(const char* input, const char* description);
 
14
      static std::vector<resip::Data> toDataVector(const char* input, const char* description);
 
15
      static std::set<int> toIntSet(const char* input, const char* description);
 
16
 
 
17
      resip::Data mLogType;
 
18
      resip::Data mLogLevel;
 
19
      resip::Data mTlsDomain;
 
20
      resip::Data mProxyHostName;
 
21
      resip::Data mUserIPAddr;
 
22
      std::vector<resip::Data> mMultihomedAddrs;
 
23
      resip::Data mEnumSuffix;
 
24
      resip::Uri mRecordRoute;
 
25
      std::set<int> mUdpPorts;
 
26
      std::set<int> mTcpPorts;
 
27
      std::set<int> mTlsPorts;
 
28
      std::set<int> mDtlsPorts;
 
29
      bool mNoV4;
 
30
      bool mNoV6;
 
31
      bool mThreadedStack;
 
32
      bool mUseCongestionManager;
 
33
 
 
34
      resip::Data mCertPath;
 
35
      bool mEnableFlowTokenHack;
 
36
      bool mNoChallenge;
 
37
      bool mNoWebChallenge;
 
38
      bool mNoRegistrar;
 
39
      bool mCertServer;
 
40
      resip::Data mRequestProcessorChainName;
 
41
      resip::Data mMySqlServer;
 
42
      int mHttpPort;
 
43
 
 
44
      bool mEncrypt;
 
45
      bool mSign;
 
46
      bool mGenUserCert;
 
47
      
 
48
      int mRegisterDuration;
 
49
      
 
50
      resip::Uri mAor;
 
51
      resip::Data mPassword;
 
52
      
 
53
      resip::Uri mOutboundProxy;
 
54
      resip::Uri mContact;
 
55
      std::vector<resip::Uri> mBuddies;
 
56
      resip::Uri mTarget;
 
57
      resip::Data mPassPhrase;
 
58
};
 
59
 
 
60
#endif
 
61
 
 
62
 
 
63
/* ====================================================================
 
64
 * The Vovida Software License, Version 1.0 
 
65
 * 
 
66
 * Copyright (c) 2000 Vovida Networks, Inc.  All rights reserved.
 
67
 * 
 
68
 * Redistribution and use in source and binary forms, with or without
 
69
 * modification, are permitted provided that the following conditions
 
70
 * are met:
 
71
 * 
 
72
 * 1. Redistributions of source code must retain the above copyright
 
73
 *    notice, this list of conditions and the following disclaimer.
 
74
 * 
 
75
 * 2. Redistributions in binary form must reproduce the above copyright
 
76
 *    notice, this list of conditions and the following disclaimer in
 
77
 *    the documentation and/or other materials provided with the
 
78
 *    distribution.
 
79
 * 
 
80
 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
 
81
 *    and "Vovida Open Communication Application Library (VOCAL)" must
 
82
 *    not be used to endorse or promote products derived from this
 
83
 *    software without prior written permission. For written
 
84
 *    permission, please contact vocal@vovida.org.
 
85
 *
 
86
 * 4. Products derived from this software may not be called "VOCAL", nor
 
87
 *    may "VOCAL" appear in their name, without prior written
 
88
 *    permission of Vovida Networks, Inc.
 
89
 * 
 
90
 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
 
91
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 
92
 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
 
93
 * NON-INFRINGEMENT ARE DISCLAIMED.  IN NO EVENT SHALL VOVIDA
 
94
 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
 
95
 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
 
96
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 
97
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 
98
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 
99
 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 
100
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 
101
 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
 
102
 * DAMAGE.
 
103
 * 
 
104
 * ====================================================================
 
105
 * 
 
106
 * This software consists of voluntary contributions made by Vovida
 
107
 * Networks, Inc. and many individuals on behalf of Vovida Networks,
 
108
 * Inc.  For more information on Vovida Networks, Inc., please see
 
109
 * <http://www.vovida.org/>.
 
110
 *
 
111
 */