YARP
Yet Another Robot Platform
SqliteTripleSource.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_SQLITETRIPLESOURCE_H
8#define YARP_SERVERSQL_IMPL_SQLITETRIPLESOURCE_H
9
12
13#include <sqlite3.h>
14
15namespace yarp::serversql::impl {
16
23{
24public:
25 SqliteTripleSource(sqlite3 *db);
26
27 std::string condition(Triple& t, TripleContext *context);
28
29 int find(Triple& t, TripleContext *context) override;
30 void remove_query(Triple& ti, TripleContext *context) override;
31 void prune(TripleContext *context) override;
32 std::list<Triple> query(Triple& ti, TripleContext *context) override;
33 std::string expressContext(TripleContext *context);
34 void insert(Triple& t, TripleContext *context) override;
35 void update(Triple& t, TripleContext *context) override;
36 void begin(TripleContext *context) override;
37 void end(TripleContext *context) override;
38
39private:
40 sqlite3 *db;
41};
42
43} // namespace yarp::serversql::impl
44
45
46#endif // YARP_SERVERSQL_IMPL_SQLITETRIPLESOURCE_H
float t
Sqlite database, viewed as a collection of triples.
std::string condition(Triple &t, TripleContext *context)
std::string expressContext(TripleContext *context)
void prune(TripleContext *context) override
std::list< Triple > query(Triple &ti, TripleContext *context) override
void insert(Triple &t, TripleContext *context) override
int find(Triple &t, TripleContext *context) override
void remove_query(Triple &ti, TripleContext *context) override
void begin(TripleContext *context) override
void end(TripleContext *context) override
void update(Triple &t, TripleContext *context) override
Side information for controlling access to triples.
Definition: TripleSource.h:22
Abstract view of a database as a collection of triples.
Definition: TripleSource.h:39
The basic unit of data the name server works with.
Definition: Triple.h:23