$darkmode
engine::SimulationResult Struct Reference
Collaboration diagram for engine::SimulationResult:

Public Member Functions

boost::filesystem::path get_output_filepath (const boost::filesystem::path &filename) const
 
void set_output_dir ()
 

Public Attributes

cloe::Stack config
 
std::string uuid
 
SimulationSync sync
 
cloe::Duration elapsed
 
SimulationOutcome outcome
 
SimulationStatistics statistics
 
cloe::Json triggers
 
boost::optional< boost::filesystem::path > output_dir
 

Friends

void to_json (cloe::Json &j, const SimulationResult &r)
 

Member Function Documentation

◆ get_output_filepath()

boost::filesystem::path engine::SimulationResult::get_output_filepath ( const boost::filesystem::path &  filename) const
inline

The output directory of files is normally built up with:

$registry / $id / $filename

If any of the last variables is absolute, the preceding variables shall be ignored; e.g. if $filename is absolute, then neither the simulation registry nor the UUID-based path shall be considered.

If not explicitly specified in the configuration file, the registry and output path are set automatically. Thus, if they are empty, then that is because the user explicitly set them so.

Here is the caller graph for this function:

◆ set_output_dir()

void engine::SimulationResult::set_output_dir ( )
inline

Determine the output directory from config.

Must be called before output_dir is used.

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: