reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
Processor.cxx
Go to the documentation of this file.
1#if defined(HAVE_CONFIG_H)
2#include "config.h"
3#endif
4
5#include <ostream>
7#include "repro/Processor.hxx"
8
9using namespace resip;
10using namespace repro;
11using namespace std;
12
14 mType(type),
15 mName(name)
16{
17}
18
22
23void
24Processor::pushAddress(const std::vector<short>& address)
25{
26 for(std::vector<short>::const_iterator i=address.begin();i!=address.end();++i)
27 {
28 mAddress.push_back(*i);
29 }
30}
31
32void
33Processor::pushAddress(const short address)
34{
35 mAddress.push_back(address);
36}
37
38void
43
46{
47 return mType;
48}
49
50void
52{
53 mName = name;
54}
55
56const resip::Data&
58{
59 return mName;
60}
61
62const std::vector<short>&
64{
65 return mAddress;
66}
67
69repro::operator << (EncodeStream &os, const repro::Processor &rp)
70{
71 os << rp.getName();
72 return os;
73}
74
75
76/* ====================================================================
77 * The Vovida Software License, Version 1.0
78 *
79 * Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
80 *
81 * Redistribution and use in source and binary forms, with or without
82 * modification, are permitted provided that the following conditions
83 * are met:
84 *
85 * 1. Redistributions of source code must retain the above copyright
86 * notice, this list of conditions and the following disclaimer.
87 *
88 * 2. Redistributions in binary form must reproduce the above copyright
89 * notice, this list of conditions and the following disclaimer in
90 * the documentation and/or other materials provided with the
91 * distribution.
92 *
93 * 3. The names "VOCAL", "Vovida Open Communication Application Library",
94 * and "Vovida Open Communication Application Library (VOCAL)" must
95 * not be used to endorse or promote products derived from this
96 * software without prior written permission. For written
97 * permission, please contact vocal@vovida.org.
98 *
99 * 4. Products derived from this software may not be called "VOCAL", nor
100 * may "VOCAL" appear in their name, without prior written
101 * permission of Vovida Networks, Inc.
102 *
103 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
104 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
105 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
106 * NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
107 * NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
108 * IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
109 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
110 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
111 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
112 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
113 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
114 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
115 * DAMAGE.
116 *
117 * ====================================================================
118 *
119 * This software consists of voluntary contributions made by Vovida
120 * Networks, Inc. and many individuals on behalf of Vovida Networks,
121 * Inc. For more information on Vovida Networks, Inc., please see
122 * <http://www.vovida.org/>.
123 *
124 */
virtual void setChainType(ChainType type)
Definition Processor.cxx:39
resip::Data mName
Definition Processor.hxx:53
Processor(const resip::Data &name, ChainType type=NO_TYPE)
Definition Processor.cxx:13
virtual ChainType getChainType() const
Definition Processor.cxx:45
std::vector< short > mAddress
Definition Processor.hxx:51
virtual void setName(const resip::Data &name)
Definition Processor.cxx:51
virtual const resip::Data & getName() const
Definition Processor.cxx:57
virtual const std::vector< short > & getAddress() const
Definition Processor.cxx:63
virtual ~Processor()
Definition Processor.cxx:19
ChainType mType
Definition Processor.hxx:52
virtual void pushAddress(const std::vector< short > &address)
Definition Processor.cxx:24
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
This Class is used to implement a primitive form of RPC using loose XML formatting.
EncodeStream & operator<<(EncodeStream &os, const repro::Processor &rp)
Definition Processor.cxx:69
dcm! – add UnusedChecking(_enum) below;
#define EncodeStream