PIF data container for multiple scenarios.
More...
#include <pif_data.h>
|
| | PIFData ()=default |
| | Default constructor.
|
| |
| void | add_scenario_data (const std::string &scenario, PIFTable &&table) |
| | Add PIF table for a specific scenario.
|
| |
| const PIFTable * | get_scenario_data (const std::string &scenario) const |
| | Get PIF table for specific scenario.
|
| |
| bool | has_data () const noexcept |
| | Check if PIF data is available for any scenario.
|
| |
| std::size_t | scenario_count () const noexcept |
| | Get the number of scenarios.
|
| |
| std::vector< std::string > | get_scenario_names () const |
| | Get all available scenario names.
|
| |
| void | clear () noexcept |
| | Clear all data.
|
| |
PIF data container for multiple scenarios.
◆ PIFData()
| hgps::input::PIFData::PIFData |
( |
| ) |
|
|
default |
◆ add_scenario_data()
| void hgps::input::PIFData::add_scenario_data |
( |
const std::string & |
scenario, |
|
|
PIFTable && |
table |
|
) |
| |
Add PIF table for a specific scenario.
- Parameters
-
| scenario | Scenario name (e.g., "Scenario1", "Scenario2", "Scenario3") |
| table | PIF table to add |
◆ clear()
| void hgps::input::PIFData::clear |
( |
| ) |
|
|
inlinenoexcept |
◆ get_scenario_data()
| const PIFTable * hgps::input::PIFData::get_scenario_data |
( |
const std::string & |
scenario | ) |
const |
Get PIF table for specific scenario.
- Parameters
-
- Returns
- Pointer to PIF table, or nullptr if not found
◆ get_scenario_names()
| std::vector< std::string > hgps::input::PIFData::get_scenario_names |
( |
| ) |
const |
Get all available scenario names.
- Returns
- Vector of scenario names
◆ has_data()
| bool hgps::input::PIFData::has_data |
( |
| ) |
const |
|
inlinenoexcept |
Check if PIF data is available for any scenario.
- Returns
- true if data is available, false otherwise
◆ scenario_count()
| std::size_t hgps::input::PIFData::scenario_count |
( |
| ) |
const |
|
inlinenoexcept |
Get the number of scenarios.
- Returns
- Number of scenarios with data
The documentation for this class was generated from the following files: