YARP
Yet Another Robot Platform
yarp::serversql::impl::SqliteTripleSource Class Reference

Sqlite database, viewed as a collection of triples. More...

#include <yarp/serversql/impl/SqliteTripleSource.h>

+ Inheritance diagram for yarp::serversql::impl::SqliteTripleSource:

Public Member Functions

 SqliteTripleSource (sqlite3 *db)
 
std::string condition (Triple &t, TripleContext *context)
 
int find (Triple &t, TripleContext *context) override
 
void remove_query (Triple &ti, TripleContext *context) override
 
void prune (TripleContext *context) override
 
std::list< Triplequery (Triple &ti, TripleContext *context) override
 
std::string expressContext (TripleContext *context)
 
void insert (Triple &t, TripleContext *context) override
 
void update (Triple &t, TripleContext *context) override
 
void begin (TripleContext *context) override
 
void end (TripleContext *context) override
 
- Public Member Functions inherited from yarp::serversql::impl::TripleSource
 TripleSource ()
 
virtual ~TripleSource ()=default
 
virtual void reset ()
 

Detailed Description

Sqlite database, viewed as a collection of triples.

These are the minimum functions needed by the name server to use a Sqlite database.

Definition at line 27 of file SqliteTripleSource.h.

Constructor & Destructor Documentation

◆ SqliteTripleSource()

SqliteTripleSource::SqliteTripleSource ( sqlite3 *  db)

Definition at line 25 of file SqliteTripleSource.cpp.

Member Function Documentation

◆ begin()

void SqliteTripleSource::begin ( TripleContext context)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 215 of file SqliteTripleSource.cpp.

◆ condition()

std::string SqliteTripleSource::condition ( Triple t,
TripleContext context 
)

Definition at line 29 of file SqliteTripleSource.cpp.

◆ end()

void SqliteTripleSource::end ( TripleContext context)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 224 of file SqliteTripleSource.cpp.

◆ expressContext()

std::string SqliteTripleSource::expressContext ( TripleContext context)

Definition at line 156 of file SqliteTripleSource.cpp.

◆ find()

int SqliteTripleSource::find ( Triple t,
TripleContext context 
)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 71 of file SqliteTripleSource.cpp.

◆ insert()

void SqliteTripleSource::insert ( Triple t,
TripleContext context 
)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 166 of file SqliteTripleSource.cpp.

◆ prune()

void SqliteTripleSource::prune ( TripleContext context)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 108 of file SqliteTripleSource.cpp.

◆ query()

std::list< Triple > SqliteTripleSource::query ( Triple ti,
TripleContext context 
)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 120 of file SqliteTripleSource.cpp.

◆ remove_query()

void SqliteTripleSource::remove_query ( Triple ti,
TripleContext context 
)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 96 of file SqliteTripleSource.cpp.

◆ update()

void SqliteTripleSource::update ( Triple t,
TripleContext context 
)
overridevirtual

Implements yarp::serversql::impl::TripleSource.

Definition at line 185 of file SqliteTripleSource.cpp.


The documentation for this class was generated from the following files: