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
10
#include <
yarp/serversql/yarpserversql.h
>
11
12
#include <
yarp/os/Network.h
>
13
#include <
yarp/serversql/Server.h
>
14
#include <
yarp/serversql/impl/NameServerContainer.h
>
15
#include <
yarp/serversql/impl/LogComponent.h
>
16
17
using
yarp::os::Network
;
18
using
yarp::serversql::impl::NameServerContainer
;
19
20
yarp::os::NameStore
*
yarpserver_create
(
yarp::os::Searchable
& options)
21
{
22
auto
* nc =
new
NameServerContainer
;
23
if
(!nc) {
24
return
nullptr
;
25
}
26
yarp::serversql::impl::LogComponent::setMinumumLogType
(
yarp::os::Log::WarningType
);
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
{
37
Network
yarp
(
yarp::os::YARP_CLOCK_SYSTEM
);
38
yarp::serversql::Server
yServer;
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
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_serversql
src
yarp
serversql
yarpserversql.cpp
Generated on Sun Jan 3 2021 02:46:26 for YARP by
1.8.20