Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
reporting
TcpReporting.hpp
Go to the documentation of this file.
1
/***************************************************************************
2
3
TcpReporting.hpp - TCP reporter
4
-------------------
5
begin : Fri Aug 4 2006
6
copyright : (C) 2006 Bas Kemper
7
email : kst@ <my name> .be
8
9
***************************************************************************
10
* This library is free software; you can redistribute it and/or *
11
* modify it under the terms of the GNU Lesser General Public *
12
* License as published by the Free Software Foundation; either *
13
* version 2.1 of the License, or (at your option) any later version. *
14
* *
15
* This library is distributed in the hope that it will be useful, *
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
18
* Lesser General Public License for more details. *
19
* *
20
* You should have received a copy of the GNU Lesser General Public *
21
* License along with this library; if not, write to the Free Software *
22
* Foundation, Inc., 59 Temple Place, *
23
* Suite 330, Boston, MA 02111-1307 USA *
24
* *
25
***************************************************************************/
26
27
#ifndef ORO_COMP_TCP_REPORTING_HPP
28
#define ORO_COMP_TCP_REPORTING_HPP
29
30
#include "
ReportingComponent.hpp
"
31
#include <iostream>
32
33
namespace
RTT
34
{
35
class
SocketMarshaller;
36
}
37
38
namespace
OCL
39
{
40
namespace
TCP
41
{
42
class
TcpReportingInterpreter;
43
class
Socket;
44
}
45
46
170
class
TcpReporting
171
:
public
ReportingComponent
172
{
173
private
:
179
bool
_finishing
;
180
unsigned
int
port
;
181
RTT::Property<unsigned int>
port_prop
;
182
protected
:
186
RTT::SocketMarshaller
*
fbody
;
187
188
public
:
195
TcpReporting
(std::string fr_name =
"ReportingComponent"
);
196
~
TcpReporting
();
197
198
bool
configureHook();
199
bool
startHook();
200
201
void
stopHook();
202
206
const
RTT::PropertyBag
* getReport();
207
};
208
209
}
210
211
#endif
OCL::TcpReporting
A component which writes data reports to a tcp/ip socket. It can serve different clients. It uses a ASCI-based protocol.
Definition:
TcpReporting.hpp:170
OCL::TcpReporting::port
unsigned int port
Definition:
TcpReporting.hpp:180
RTT::SocketMarshaller
Definition:
socketmarshaller.hpp:50
ReportingComponent.hpp
OCL
Definition:
deployer-funcs.cpp:68
RTT::Property< unsigned int >
OCL::ReportingComponent
A Component for periodically reporting Component Port contents to a human readable text format...
Definition:
ReportingComponent.hpp:81
OCL::TcpReporting::port_prop
RTT::Property< unsigned int > port_prop
Definition:
TcpReporting.hpp:181
OCL::TcpReporting::_finishing
bool _finishing
Definition:
TcpReporting.hpp:179
RTT
OCL::TcpReporting::fbody
RTT::SocketMarshaller * fbody
Definition:
TcpReporting.hpp:186
RTT::PropertyBag
ocl
Author(s): OCL Development Team
autogenerated on Mon Mar 23 2020 04:47:19