Public Member Functions | Private Member Functions | Private Attributes
OpcUa::Impl::BufferedInput Class Reference
Inheritance diagram for OpcUa::Impl::BufferedInput:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void AddBuffer (const char *buf, std::size_t size)
 BufferedInput (bool debug)
virtual std::size_t Receive (char *data, std::size_t size)
 Receive data.
void Stop ()

Private Member Functions

void ThrowIfStopped ()

Private Attributes

std::vector< char > Buffer
std::mutex BufferMutex
std::condition_variable DataReady
bool Debug
std::atomic< bool > Running

Detailed Description

Definition at line 22 of file builtin_server_impl.cpp.


Constructor & Destructor Documentation

BufferedInput::BufferedInput ( bool  debug) [explicit]

Definition at line 42 of file builtin_server_impl.cpp.


Member Function Documentation

void BufferedInput::AddBuffer ( const char *  buf,
std::size_t  size 
)

Definition at line 92 of file builtin_server_impl.cpp.

std::size_t BufferedInput::Receive ( char *  data,
std::size_t  size 
) [virtual]

Receive data.

Parameters:
datadata for send
sizesize of data
Returns:
size of received data

Implements OpcUa::InputChannel.

Definition at line 49 of file builtin_server_impl.cpp.

void BufferedInput::Stop ( ) [virtual]

Implements OpcUa::BreakableChannel.

Definition at line 104 of file builtin_server_impl.cpp.

void BufferedInput::ThrowIfStopped ( ) [private]

Definition at line 110 of file builtin_server_impl.cpp.


Member Data Documentation

std::vector<char> OpcUa::Impl::BufferedInput::Buffer [private]

Definition at line 34 of file builtin_server_impl.cpp.

Definition at line 36 of file builtin_server_impl.cpp.

std::condition_variable OpcUa::Impl::BufferedInput::DataReady [private]

Definition at line 37 of file builtin_server_impl.cpp.

Definition at line 38 of file builtin_server_impl.cpp.

std::atomic<bool> OpcUa::Impl::BufferedInput::Running [private]

Definition at line 35 of file builtin_server_impl.cpp.


The documentation for this class was generated from the following file:


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Sat Jun 8 2019 18:25:00