--progress json: emits one JSON line per improved solution to the progress stream; free-text progress is dropped
More...
|
| | Observer_JSON (std::ostream &os) |
|
virtual void | on_solution (const RETURNTYPE value, const SUBSET &sub, const std::string &msg) override |
| | emits {"event":"solution","value":…,"d":…,"features":[…]} for the improved solution sub; msg (the text form) is dropped
|
| virtual void | on_progress (const std::string &msg) |
| | one pre-formatted progress message
|
|
virtual void | on_solution (const RETURNTYPE value, const SUBSET &sub, const std::string &msg) |
| | a new (sub-)solution has been reached (msg = its pre-formatted text form); copy sub if kept beyond the call
|
|
|
std::ostream & | _os |
| | the progress stream (stderr for text/JSON/CSV results, per --output)
|
|
|
typedef std::shared_ptr< SUBSET > | PSubset |
| | shared pointer to a feature subset (not used by the interface itself; kept for observer implementations' convenience)
|
--progress json: emits one JSON line per improved solution to the progress stream; free-text progress is dropped
◆ Observer_JSON()
| fst4_cli::Observer_JSON::Observer_JSON |
( |
std::ostream & | os | ) |
|
|
inlineexplicit |
emits JSON progress lines to os (the --progress stream)
The documentation for this class was generated from the following file: