Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
freeopcua
src
server
opc_tcp_async_parameters.cpp
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
21
#include "
opc_tcp_async_parameters.h
"
22
23
namespace
OpcUa
24
{
25
namespace
Server
26
{
27
28
AsyncOpcTcp::Parameters
GetOpcTcpParameters
(
const
Common::AddonParameters
& addonParams)
29
{
30
AsyncOpcTcp::Parameters
result;
31
32
for
(
const
Common::Parameter
&
param
: addonParams.
Parameters
)
33
{
34
if
(param.
Name
==
"debug"
)
35
{ result.
DebugMode
= param.
Value
==
"false"
|| param.
Value
==
"0"
?
false
:
true
; }
36
}
37
38
return
result;
39
}
40
41
}
// namespace UaServer
42
}
// namespace OpcUa
param
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
OpcUa::Server::AsyncOpcTcp::Parameters
Definition:
opc_tcp_async.h:36
Common::Parameter
Definition:
addon_parameters.h:21
OpcUa::Server::AsyncOpcTcp::Parameters::DebugMode
bool DebugMode
Definition:
opc_tcp_async.h:40
opc_tcp_async_parameters.h
Common::Parameter::Name
std::string Name
Definition:
addon_parameters.h:23
OpcUa
OPC UA Address space part. GNU LGPL.
Definition:
ua/client/addon.h:18
OpcUa::Server::GetOpcTcpParameters
AsyncOpcTcp::Parameters GetOpcTcpParameters(const Common::AddonParameters &addonParams)
Definition:
opc_tcp_async_parameters.cpp:28
Common::AddonParameters
Definition:
addon_parameters.h:54
OpcUa::Names::Server
const char Server[]
Definition:
strings.h:121
Common::AddonParameters::Parameters
std::vector< Parameter > Parameters
Definition:
addon_parameters.h:57
Common::Parameter::Value
std::string Value
Definition:
addon_parameters.h:24
ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:07