Use the newest SOCI-Library to access SQLite databases

SOCI is a intuitive and fast C++ library to perform database access. Debian provides an outdated package of SOCI Version 2.2. for fast tryouts and tests. But if you want to use discover the real power of SOCI, you will have to use the most recent version 3.0 which isn’t available as Debian (Ubuntu/LinuxMint whatever) -Package.

The recent version of SOCI (3.0) doesn’t include the SQLite back-end engine in the standard deployment, thus is not a official supported and maintained plug-in anymore. Anyway, there is still a SQlite back-end available on the Git Repository of the SOCI project.  This stub will explain, how to obtain, compile and install SOCI 3.0 to replace the orphaned and outdated SOCI 2.0 packages from Debian.

Den ganzen Beitrag lesen »

Geschrieben in C++,Linux | Kommentare aus

How to use POSIX timer within C++ Classes

The POSIX Standard provides C with efficient and accurate timer functions. Sometimes is faster to apply these timers instead to implement a „real“ hardened real time application. If you would like to use the C-style timer functions in a C++ application read on.

Idea: A dedicated class should be responsible for timing different tasks within a C++ application. This post should shortly explain how to implement a POSIX timer invoking a class member function.

Den ganzen Beitrag lesen »

Geschrieben in -,C++,Linux | Kommentare aus