YARP
Yet Another Robot Platform
TripleSourceCreator.h
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
7#ifndef YARP_SERVERSQL_IMPL_TRIPLESOURCECREATOR_H
8#define YARP_SERVERSQL_IMPL_TRIPLESOURCECREATOR_H
9
11#include <yarp/conf/compiler.h>
12
13
14namespace yarp::serversql::impl {
15
20{
21public:
23
25 {
26 if (implementation != nullptr) {
27 close();
28 }
29 }
30
31 TripleSource *open(const char *filename,
32 bool cautious = false,
33 bool fresh = false);
34
35 bool close();
36
37private:
38 void* implementation {nullptr};
39 TripleSource* accessor {nullptr};
40};
41
42} // namespace yarp::serversql::impl
43
44
45#endif // YARP_SERVERSQL_IMPL_TRIPLESOURCECREATOR_H
Open and close a database, viewed as a collection of triples.
TripleSource * open(const char *filename, bool cautious=false, bool fresh=false)
Abstract view of a database as a collection of triples.
Definition: TripleSource.h:39