|
Autopysta
|
Custom parameters class for storing key-value pairs. More...
#include <params.h>
Public Member Functions | |
| params_cust () | |
| Default constructor. | |
| void | add (const char *new_name, double new_value) |
| Adds a new parameter to the dictionary. | |
| double | get (const char *name) |
| Retrieves the value of a parameter by its key. | |
Public Member Functions inherited from params | |
| params () | |
| Default constructor for the params class. | |
Public Attributes | |
| Diccionario * | D |
| Dictionary storing custom parameters. | |
Custom parameters class for storing key-value pairs.
This class inherits from the params class and stores custom parameters in a dictionary-like structure. The params_cust class allows for flexible key-value pair storage of parameters.
| params_cust::params_cust | ( | ) |
Default constructor.
Initializes the dictionary for custom parameters.
| void params_cust::add | ( | const char * | new_name, |
| double | new_value ) |
Adds a new parameter to the dictionary.
| new_name | Key or name of the parameter. |
| new_value | Value associated with the parameter. |
| double params_cust::get | ( | const char * | name | ) |
Retrieves the value of a parameter by its key.
| name | Key or name of the parameter to retrieve. |