Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
freeopcua
include
opc
ua
protocol
channel.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <cstddef>
14
#include <functional>
15
#include <memory>
16
#include <system_error>
17
18
#include <
opc/common/class_pointers.h
>
19
20
namespace
OpcUa
21
{
22
23
class
BreakableChannel
24
{
25
public
:
26
virtual
~BreakableChannel
() {}
27
BreakableChannel
() {}
28
BreakableChannel
(
const
BreakableChannel
&) =
delete
;
29
BreakableChannel
(
BreakableChannel
&&) =
delete
;
30
BreakableChannel
&
operator=
(
const
BreakableChannel
&) =
delete
;
31
32
public
:
33
virtual
void
Stop
() = 0;
34
};
35
36
37
class
InputChannel
:
public
virtual
BreakableChannel
38
{
39
public
:
40
DEFINE_CLASS_POINTERS
(
InputChannel
)
41
42
public
:
43
virtual
~InputChannel
() {}
44
InputChannel
() {}
45
InputChannel
(
const
InputChannel
&) =
delete
;
46
InputChannel
(
InputChannel
&&) =
delete
;
47
InputChannel
&
operator=
(
const
InputChannel
&) =
delete
;
48
49
public
:
54
virtual
std::size_t Receive(
char
* data, std::size_t size) = 0;
55
};
56
57
58
class
OutputChannel
:
public
virtual
BreakableChannel
59
{
60
public
:
61
DEFINE_CLASS_POINTERS
(
OutputChannel
)
62
63
public
:
64
virtual
~OutputChannel
() {}
65
66
OutputChannel
() {}
67
OutputChannel
(
const
OutputChannel
&) =
delete
;
68
OutputChannel
(
OutputChannel
&&) =
delete
;
69
OutputChannel
&
operator=
(
const
OutputChannel
&) =
delete
;
70
71
public
:
72
virtual
void
Send(
const
char
*
message
, std::size_t size) = 0;
73
};
74
75
76
class
IOChannel
:
77
public
InputChannel
,
78
public
OutputChannel
79
{
80
public
:
81
DEFINE_CLASS_POINTERS
(
IOChannel
)
82
};
83
84
}
85
OpcUa::BreakableChannel::operator=
BreakableChannel & operator=(const BreakableChannel &)=delete
OpcUa::BreakableChannel
Definition:
channel.h:23
OpcUa::OutputChannel::OutputChannel
OutputChannel()
Definition:
channel.h:66
class_pointers.h
OpcUa::OutputChannel
Definition:
channel.h:58
OpcUa::IOChannel
Definition:
channel.h:76
server.message
message
Definition:
server.py:50
OpcUa::BreakableChannel::BreakableChannel
BreakableChannel()
Definition:
channel.h:27
OpcUa
OPC UA Address space part. GNU LGPL.
Definition:
ua/client/addon.h:18
OpcUa::BreakableChannel::Stop
virtual void Stop()=0
OpcUa::InputChannel
Definition:
channel.h:37
OpcUa::BreakableChannel::~BreakableChannel
virtual ~BreakableChannel()
Definition:
channel.h:26
OpcUa::InputChannel::~InputChannel
virtual ~InputChannel()
Definition:
channel.h:43
DEFINE_CLASS_POINTERS
#define DEFINE_CLASS_POINTERS(ClassName)
Exception declarations GNU LGPL.
Definition:
class_pointers.h:17
OpcUa::OutputChannel::~OutputChannel
virtual ~OutputChannel()
Definition:
channel.h:64
OpcUa::InputChannel::InputChannel
InputChannel()
Definition:
channel.h:44
ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:06:04