DPsim
Loading...
Searching...
No Matches
DPsim::DataLoggerInterface Class Referenceabstract
Inheritance diagram for DPsim::DataLoggerInterface:
[legend]

Public Types

typedef std::shared_ptr< DataLoggerInterfacePtr
 
typedef std::vector< DataLoggerInterface::Ptr > List
 

Public Member Functions

virtual void start ()=0
 
virtual void stop ()=0
 
virtual void logAttribute (const String &name, CPS::AttributeBase::Ptr attr, UInt rowsMax=0, UInt colsMax=0)
 
void logAttribute (const std::vector< String > &name, CPS::AttributeBase::Ptr attr)
 
virtual void log (Real time, Int timeStepCount)=0
 
virtual CPS::Task::Ptr getTask ()=0
 

Protected Attributes

std::map< String, CPS::AttributeBase::PtrmAttributes
 

Detailed Description

Definition at line 21 of file DataLoggerInterface.h.

Member Typedef Documentation

◆ List

typedef std::vector<DataLoggerInterface::Ptr> DPsim::DataLoggerInterface::List

Definition at line 27 of file DataLoggerInterface.h.

◆ Ptr

typedef std::shared_ptr<DataLoggerInterface> DPsim::DataLoggerInterface::Ptr

Definition at line 26 of file DataLoggerInterface.h.

Constructor & Destructor Documentation

◆ DataLoggerInterface()

DPsim::DataLoggerInterface::DataLoggerInterface ( )
inline

Definition at line 29 of file DataLoggerInterface.h.

Member Function Documentation

◆ logAttribute() [1/2]

void DPsim::DataLoggerInterface::logAttribute ( const std::vector< String > & name,
CPS::AttributeBase::Ptr attr )
inline

DEPRECATED: Only use for compatiblity, otherwise this just adds extra overhead to the logger. Instead just call logAttribute multiple times for every coefficient using attr->deriveCoeff<>(a,b).

Definition at line 115 of file DataLoggerInterface.h.

◆ logAttribute() [2/2]

virtual void DPsim::DataLoggerInterface::logAttribute ( const String & name,
CPS::AttributeBase::Ptr attr,
UInt rowsMax = 0,
UInt colsMax = 0 )
inlinevirtual

Definition at line 36 of file DataLoggerInterface.h.

Member Data Documentation

◆ mAttributes

std::map<String, CPS::AttributeBase::Ptr> DPsim::DataLoggerInterface::mAttributes
protected

Definition at line 23 of file DataLoggerInterface.h.


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