Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
freeopcua
include
opc
ua
protocol
input_from_buffer.h
Go to the documentation of this file.
1
/******************************************************************************
2
* Copyright (C) 2013-2014 by Alexander Rykovanov *
3
* rykovanov.as@gmail.com *
4
* *
5
* This library is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU Lesser General Public License as *
7
* published by the Free Software Foundation; version 3 of the License. *
8
* *
9
* This library is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU Lesser General Public License for more details. *
13
* *
14
* You should have received a copy of the GNU Lesser General Public License *
15
* along with this library; if not, write to the *
16
* Free Software Foundation, Inc., *
17
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
18
******************************************************************************/
19
20
#pragma once
21
22
#include <
opc/ua/protocol/channel.h
>
23
24
namespace
OpcUa
25
{
26
27
class
InputFromBuffer
:
public
OpcUa::InputChannel
28
{
29
public
:
30
InputFromBuffer
(
const
char
* buf, std::size_t bufSize);
31
32
virtual
std::size_t
Receive
(
char
* data, std::size_t size)
override
;
33
34
size_t
GetRemainSize
()
const
;
35
36
virtual
void
Stop
()
override
{}
37
38
private
:
39
const
char
*
Buffer
;
40
std::size_t
Size
;
41
};
42
43
}
OpcUa::InputFromBuffer::Buffer
const char * Buffer
Definition:
input_from_buffer.h:39
OpcUa::InputFromBuffer::InputFromBuffer
InputFromBuffer(const char *buf, std::size_t bufSize)
Definition:
input_from_buffer.cpp:29
OpcUa::InputFromBuffer::Size
std::size_t Size
Definition:
input_from_buffer.h:40
OpcUa::InputFromBuffer
Definition:
input_from_buffer.h:27
OpcUa::InputFromBuffer::GetRemainSize
size_t GetRemainSize() const
Definition:
input_from_buffer.cpp:52
OpcUa::InputFromBuffer::Receive
virtual std::size_t Receive(char *data, std::size_t size) override
Receive data.
Definition:
input_from_buffer.cpp:38
channel.h
OpcUa::InputFromBuffer::Stop
virtual void Stop() override
Definition:
input_from_buffer.h:36
OpcUa
OPC UA Address space part. GNU LGPL.
Definition:
ua/client/addon.h:18
OpcUa::InputChannel
Definition:
channel.h:37
ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:06