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 
22 
23 namespace OpcUa
24 {
25 namespace Server
26 {
27 
29 {
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
bool param(const std::string &param_name, T &param_val, const T &default_val)
OPC UA Address space part. GNU LGPL.
AsyncOpcTcp::Parameters GetOpcTcpParameters(const Common::AddonParameters &addonParams)
const char Server[]
Definition: strings.h:121
std::vector< Parameter > Parameters


ros_opcua_impl_freeopcua
Author(s): Denis Štogl
autogenerated on Tue Jan 19 2021 03:12:07