OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
oms::CSVWriter Class Reference

#include <CSVWriter.h>

Inheritance diagram for oms::CSVWriter:
Inheritance graph
Collaboration diagram for oms::CSVWriter:
Collaboration graph

Public Member Functions

 CSVWriter (unsigned int bufferSize)
 
 ~CSVWriter ()
 
- Public Member Functions inherited from oms::ResultWriter
 ResultWriter (unsigned int bufferSize)
 
virtual ~ResultWriter ()
 
unsigned int addSignal (const std::string &name, const std::string &description, SignalType_t type)
 
void addParameter (const std::string &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

- Protected Attributes inherited from oms::ResultWriter
std::vector< Signalsignals
 
std::vector< Parameterparameters
 
double * data_2
 
unsigned int bufferSize
 
unsigned int nEmits
 

Constructor & Destructor Documentation

◆ CSVWriter()

oms::CSVWriter::CSVWriter ( unsigned int  bufferSize)

◆ ~CSVWriter()

oms::CSVWriter::~CSVWriter ( )
Here is the call graph for this function:

Member Function Documentation

◆ closeFile()

void oms::CSVWriter::closeFile ( )
protectedvirtual

Implements oms::ResultWriter.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createFile()

bool oms::CSVWriter::createFile ( const std::string &  filename,
double  startTime,
double  stopTime 
)
protectedvirtual

Implements oms::ResultWriter.

◆ writeFile()

void oms::CSVWriter::writeFile ( )
protectedvirtual

Implements oms::ResultWriter.

Here is the caller graph for this function:

Member Data Documentation

◆ pFile

FILE* oms::CSVWriter::pFile
private

The documentation for this class was generated from the following files: