25 #ifndef SRC_CORE_INCLUDE_CORBO_CORE_YAML_EXPORT_H_ 26 #define SRC_CORE_INCLUDE_CORBO_CORE_YAML_EXPORT_H_ 29 #include <yaml-cpp/yaml.h> 47 using Ptr = std::shared_ptr<YamlExporter>;
86 bool write_file(
const YAML::Emitter& emitter,
const std::string& filename);
92 #endif // SRC_CORE_INCLUDE_CORBO_CORE_YAML_EXPORT_H_ Signal for a sequence of time series objects.
Time Series (trajectory resp. sequence of values w.r.t. time)
bool exportTimeSeriesSignal(const std::string &filename, const TimeSeriesSignal &signal) override
bool exportIndexedValuesSetSignal(const std::string &filename, const IndexedValuesSetSignal &signal) override
bool exportTimeSeries(const std::string &filename, const TimeSeries &time_series) override
void emitIndexedValuesSet(const IndexedValuesSetSignal &signal, YAML::Emitter &emitter, bool wrap_in_map=true)
void emitTimeSeriesSequence(const TimeSeriesSequenceSignal &signal, YAML::Emitter &emitter, bool wrap_in_map=true)
void emitIndexedValues(const IndexedValuesSignal &signal, YAML::Emitter &emitter, bool wrap_in_map=true)
bool isSupportingSignalGroup() const override
bool exportMatrixSetSignal(const std::string &filename, const MatrixSetSignal &signal) override
std::string getFileSuffix() const override
void emitHeader(const SignalHeader &header, YAML::Emitter &emitter)
bool write_file(const YAML::Emitter &emitter, const std::string &filename)
Signal containing a set of matrices.
bool isSupportingTimeSeries() const override
Signal containing values indexed by a single integer.
bool exportSignalGroup(const std::string &filename, const CommonSignalTarget::SignalGroup &signal_group) override
bool exportTimeSeriesSequenceSignal(const std::string &filename, const TimeSeriesSequenceSignal &signal) override
DataExporterInterface::Ptr getInstance() const override
Return a newly created shared instance of the implemented class.
bool exportIndexedValuesSignal(const std::string &filename, const IndexedValuesSignal &signal) override
bool isSupportingTimeSeriesSequenceSignal() const override
void emitMatrix(const MatrixSignal &signal, YAML::Emitter &emitter, bool wrap_in_map=true)
bool isSupportingMatrixSetSignal() const override
bool exportMatrixSignal(const std::string &filename, const MatrixSignal &signal) override
Time Series signal (trajectory resp. sequence of values w.r.t. time)
bool isSupportingTimeSeriesSignal() const override
FACTORY_REGISTER_DATA_EXPORTER(TsvExporter)
Signal containing a simple matrix.
bool isSupportingIndexedValuesSignal() const override
std::string getFormatName() const override
void emitSignalGroup(const CommonSignalTarget::SignalGroup &signal_group, YAML::Emitter &emitter, bool wrap_in_map=true)
void emitMatrixSet(const MatrixSetSignal &signal, YAML::Emitter &emitter, bool wrap_in_map=true)
Interface class for exporting signals.
void emitTimeSeries(const TimeSeries &time_series, YAML::Emitter &emitter, bool wrap_in_map=true)
bool isSupportingMatrixSignal() const override
Tree node containing a group of signals and a set of child tree nodes.
bool isSupportingIndexedValuesSetSignal() const override
std::shared_ptr< DataExporterInterface > Ptr
Signal containing values indexed by an integer (int to double[] map)