#include <oldbInterface.hpp>
Public Member Functions | |
| OldbInterface (const std::string &prefix="") | |
| virtual | ~OldbInterface () |
| void | SetNumSecondaryLoops (int num_loops) |
| void | WriteSecondaryLoopConfig (const rad::Config &config) |
| void | InitializeLoopRuntimeState (int loop_index) |
| template<typename T> | |
| bool | TrySetValue (const std::string &key, const T &value) |
| OldbInterface (const OldbInterface &)=delete | |
| OldbInterface & | operator= (const OldbInterface &)=delete |
| Disable copy constructor. | |
This class is the interface to the CII OLDB.
| ifw::slm::OldbInterface::OldbInterface | ( | const std::string & | prefix = "" | ) |
Constructor.
| [in] | prefix | String used as prefix when building the keys. |
|
virtual |
Destructor
|
delete |
| void ifw::slm::OldbInterface::InitializeLoopRuntimeState | ( | int | loop_index | ) |
Initialize runtime state for a specific loop.
| loop_index | Loop index (1-based) |
|
delete |
Disable copy constructor.
| void ifw::slm::OldbInterface::SetNumSecondaryLoops | ( | int | num_loops | ) |
Write the number of secondary loops to OLDB.
| num_loops | Number of secondary loops |
|
inline |
Try to write a value to OLDB and return success/failure. This is useful for diagnosing OLDB write issues.
| key | OLDB key |
| value | Value to write |
| T | Type of the value |
| void ifw::slm::OldbInterface::WriteSecondaryLoopConfig | ( | const rad::Config & | config | ) |
Write all secondary loop configurations from the config object to OLDB.
| config | Configuration object |