User API for bactria's reports functionality.
◆ make_incident()
template<typename TValue >
auto bactria::reports::make_incident |
( |
std::string |
key, |
|
|
TValue |
value |
|
) |
| -> Incident<std::remove_reference_t<TValue>>
|
Create an incident from a key and a value.
Creates an Incident from a key and a value.
- Template Parameters
-
TValue | The type of the value to store in the Incident. |
- Parameters
-
key | The key to store the value under. |
value | The value to record. If value is a reference type, it will be copied to a new object which is stored in the Incident. |
- Returns
- An Incident object that can be stored in a Report.
◆ make_report()
template<typename... TIncidents>
auto bactria::reports::make_report |
( |
std::string |
name, |
|
|
TIncidents &&... |
incidents |
|
) |
| -> Report<TIncidents...>
|
Create a Report from several Incidents.
- Template Parameters
-
- Parameters
-
name | The storage name. This is usually a filename which must not contain a file extension. |
incidents | The Incidents to save. |
- Returns
- A Report object containing the Incidents.