roswrap
src
rossimu
kinetic
include
xmlrpcpp
XmlRpcSource.h
Go to the documentation of this file.
1
#include "
sick_scan/sick_scan_base.h
"
/* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2
3
#ifndef _XMLRPCSOURCE_H_
4
#define _XMLRPCSOURCE_H_
5
//
6
// XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
7
//
8
#if defined(_MSC_VER)
9
# pragma warning(disable:4786) // identifier was truncated in debug info
10
#endif
11
12
#include "xmlrpcpp/XmlRpcDecl.h"
13
14
namespace
XmlRpc
{
15
17
class
XMLRPCPP_DECL
XmlRpcSource {
18
public
:
22
XmlRpcSource(
int
fd = -1,
bool
deleteOnClose =
false
);
23
25
virtual
~XmlRpcSource();
26
28
int
getfd()
const
{
return
_fd; }
30
void
setfd(
int
fd) { _fd = fd; }
31
33
bool
getKeepOpen()
const
{
return
_keepOpen; }
35
void
setKeepOpen(
bool
b=
true
) { _keepOpen = b; }
36
38
virtual
void
close();
39
41
virtual
unsigned
handleEvent(
unsigned
eventType) = 0;
42
43
private
:
44
45
// Socket. This should really be a SOCKET (an alias for unsigned int*) on windows...
46
int
_fd;
47
48
// In the server, a new source (XmlRpcServerConnection) is created
49
// for each connected client. When each connection is closed, the
50
// corresponding source object is deleted.
51
bool
_deleteOnClose;
52
53
// In the client, keep connections open if you intend to make multiple calls.
54
bool
_keepOpen;
55
};
56
}
// namespace XmlRpc
57
58
#endif //_XMLRPCSOURCE_H_
XmlRpc
sick_scan_base.h
XMLRPCPP_DECL
#define XMLRPCPP_DECL
Definition:
XmlRpcDecl.h:53
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof
, Martin Günther
autogenerated on Fri Oct 25 2024 02:47:13