Maki
Formally verfied low-code orchestration
Loading...
Searching...
No Matches
ConfigurationTable Class Reference

Manages a table of configuration settings. More...

#include <config_table.h>

Public Member Functions

 ConfigurationTable ()
 Constructs an empty ConfigurationTable.
VoidResult add (const QString &key, std::shared_ptr< NodeConfig > value)
 Adds a configuration entry to the table.
std::shared_ptr< NodeConfig > get (const QString &key) const
 Retrieves a configuration entry from the table.

Private Attributes

std::map< QString, std::shared_ptr< NodeConfig > > mMap
 Internal map storing configuration entries.

Detailed Description

Manages a table of configuration settings.

Member Function Documentation

◆ add()

VoidResult ConfigurationTable::add ( const QString & key,
std::shared_ptr< NodeConfig > value )

Adds a configuration entry to the table.

Parameters
keyThe unique identifier for the configuration entry.
valueA shared pointer to the NodeConfig object representing the configuration.
Returns
VoidResult indicating success or failure of the operation.

◆ get()

std::shared_ptr< NodeConfig > ConfigurationTable::get ( const QString & key) const

Retrieves a configuration entry from the table.

Parameters
keyThe unique identifier for the configuration entry.
Returns
A shared pointer to the NodeConfig object representing the configuration, or nullptr if not found.

The documentation for this class was generated from the following files:
  • /__w/maki/maki/app/system/config_table.h
  • /__w/maki/maki/app/system/config_table.cpp