Class StateWriterFactory

Class Documentation

class StateWriterFactory

Factory for creating instances of StateWriter

Public Static Functions

static inline StateWriter *createWriter(const std::string &output_file)

Returns a writer capable of writing model state to ‘output_file’ Environment properties from the Simulation instance pointed to by ‘sim_instance_id’ will be used Agent data will be read from ‘model_state’

Parameters:

output_file – Filename of the input file (This will be used to determine which reader to return)

Throws:

exception::UnsupportedFileType – If the file extension does not match an appropriate reader

static inline std::string detectSupportedFileExt(const std::string &user_file_ext)

Return a clean file extension from the provided string If the file extension is not supported empty string is returned instead