YARP
Yet Another Robot Platform
yarpserversql.cpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3  * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
8 
9 #include <yarp/os/Network.h>
10 #include <yarp/serversql/Server.h>
13 
14 using yarp::os::Network;
16 
18 {
19  auto* nc = new NameServerContainer;
20  if (!nc) {
21  return nullptr;
22  }
24  if (!nc->open(options)) {
25  delete nc;
26  return nullptr;
27  }
28  nc->goPublic();
29  return nc;
30 }
31 
32 int yarpserver_main(int argc, char *argv[])
33 {
36  return yServer.run(argc, argv);
37 }
@ WarningType
Definition: Log.h:77
Abstract interface for a database of port names.
Definition: NameStore.h:20
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition: Network.h:783
A base class for nested structures that can be searched.
Definition: Searchable.h:66
int run(int argc, char *argv[])
Definition: Server.cpp:38
@ YARP_CLOCK_SYSTEM
Definition: Time.h:29
void setMinumumLogType(yarp::os::Log::LogType minumumLogType)
The main, catch-all namespace for YARP.
Definition: dirs.h:16
yarp::os::NameStore * yarpserver_create(yarp::os::Searchable &options)
int yarpserver_main(int argc, char *argv[])