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::MATWriter Class Reference

#include <MATWriter.h>

Inheritance diagram for oms::MATWriter:
oms::ResultWriter

Public Member Functions

 MATWriter (unsigned int bufferSize)
 
 ~MATWriter ()
 
- Public Member Functions inherited from oms::ResultWriter
 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
 
long pos_data_2
 

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

◆ MATWriter()

oms::MATWriter::MATWriter ( unsigned int  bufferSize)

◆ ~MATWriter()

oms::MATWriter::~MATWriter ( )

Member Function Documentation

◆ closeFile()

void oms::MATWriter::closeFile ( )
protectedvirtual

Implements oms::ResultWriter.

◆ createFile()

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

Implements oms::ResultWriter.

◆ writeFile()

void oms::MATWriter::writeFile ( )
protectedvirtual

Implements oms::ResultWriter.

Member Data Documentation

◆ pFile

FILE* oms::MATWriter::pFile
private

◆ pos_data_2

long oms::MATWriter::pos_data_2
private

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