OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
|
#include <CSVWriter.h>
Public Member Functions | |
CSVWriter (unsigned int bufferSize) | |
~CSVWriter () | |
![]() | |
ResultWriter (unsigned int bufferSize) | |
virtual | ~ResultWriter () |
unsigned int | addSignal (const ComRef &name, const std::string &description, SignalType_t type) |
void | addParameter (const ComRef &name, const std::string &description, SignalType_t type, SignalValue_t value) |
bool | create (const std::string &filename, double startTime, double stopTime) |
void | close () |
void | updateSignal (unsigned int id, SignalValue_t value) |
void | emit (double time) |
Protected Member Functions | |
bool | createFile (const std::string &filename, double startTime, double stopTime) |
void | closeFile () |
void | writeFile () |
Private Attributes | |
FILE * | pFile |
Additional Inherited Members | |
![]() | |
std::vector< Signal > | signals |
std::vector< Parameter > | parameters |
double * | data_2 |
unsigned int | bufferSize |
unsigned int | nEmits |
oms::CSVWriter::CSVWriter | ( | unsigned int | bufferSize | ) |
oms::CSVWriter::~CSVWriter | ( | ) |
|
protectedvirtual |
Implements oms::ResultWriter.
|
protectedvirtual |
Implements oms::ResultWriter.
|
protectedvirtual |
Implements oms::ResultWriter.
|
private |