ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
ore_import_result Struct Reference

Outcome of a completed ORE import execution. More...

#include <ore_import_result.hpp>

Collaboration diagram for ore_import_result:
Collaboration graph

Public Attributes

bool success = false
 True when currencies, portfolios, books, and trades were all saved.
 
std::string error
 Fatal error message when success is false.
 
int currencies = 0
 
int portfolios = 0
 
int books = 0
 
int trades = 0
 
int instruments = 0
 
std::vector< ore_instrument_errorinstrument_errors
 One entry per instrument save failure, in save order.
 

Detailed Description

Outcome of a completed ORE import execution.

Failures for currencies, portfolios, books, and trades are fatal: success is false and error carries the reason. Instrument save failures are non-fatal: success may still be true while instrument_errors is non-empty.

Member Data Documentation

◆ success

bool success = false

True when currencies, portfolios, books, and trades were all saved.

Instrument failures do not set this to false; check instrument_errors.

◆ instrument_errors

std::vector<ore_instrument_error> instrument_errors

One entry per instrument save failure, in save order.

Non-empty even when success is true (instrument failures are non-fatal).