YARP
Yet Another Robot Platform
yarpserversql.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * Copyright (C) 2006-2010 RobotCub Consortium
4  * All rights reserved.
5  *
6  * This software may be modified and distributed under the terms of the
7  * BSD-3-Clause license. See the accompanying LICENSE file for details.
8  */
9 
11 
12 #include <yarp/os/Network.h>
13 #include <yarp/serversql/Server.h>
16 
17 using yarp::os::Network;
19 
21 {
22  auto* nc = new NameServerContainer;
23  if (!nc) {
24  return nullptr;
25  }
27  if (!nc->open(options)) {
28  delete nc;
29  return nullptr;
30  }
31  nc->goPublic();
32  return nc;
33 }
34 
35 int yarpserver_main(int argc, char *argv[])
36 {
39  return yServer.run(argc, argv);
40 }
yarp::serversql::impl::NameServerContainer
Definition: NameServerContainer.h:29
Network.h
yarp::os::Searchable
A base class for nested structures that can be searched.
Definition: Searchable.h:69
yarp::os::NameStore
Abstract interface for a database of port names.
Definition: NameStore.h:23
yarp::os::Log::WarningType
@ WarningType
Definition: Log.h:80
NameServerContainer.h
Server.h
yarp::serversql::impl::LogComponent::setMinumumLogType
void setMinumumLogType(yarp::os::Log::LogType minumumLogType)
Definition: LogComponent.cpp:44
LogComponent.h
yarp::os::YARP_CLOCK_SYSTEM
@ YARP_CLOCK_SYSTEM
Definition: Time.h:32
yarp::serversql::Server
Definition: Server.h:19
yarpserver_create
yarp::os::NameStore * yarpserver_create(yarp::os::Searchable &options)
Definition: yarpserversql.cpp:20
yarp::serversql::Server::run
int run(int argc, char *argv[])
Definition: Server.cpp:41
yarpserver_main
int yarpserver_main(int argc, char *argv[])
Definition: yarpserversql.cpp:35
yarpserversql.h
yarp::os::Network
Utilities for manipulating the YARP network, including initialization and shutdown.
Definition: Network.h:786
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18