DPsim
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
DPsim::DataLogger Class Reference
Inheritance diagram for DPsim::DataLogger:
[legend]
Collaboration diagram for DPsim::DataLogger:
[legend]

Classes

class  Step
 

Public Types

typedef std::shared_ptr< DataLoggerPtr
 
typedef std::vector< DataLogger::Ptr > List
 

Public Member Functions

 DataLogger (Bool enabled=true)
 
 DataLogger (String name, Bool enabled=true, UInt downsampling=1)
 
void open ()
 
void close ()
 
void reopen ()
 
void logPhasorNodeValues (Real time, const Matrix &data, Int freqNum=1)
 
void logEMTNodeValues (Real time, const Matrix &data)
 
void setColumnNames (std::vector< String > names)
 
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)
 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).
 
void log (Real time, Int timeStepCount)
 
CPS::Task::Ptr getTask ()
 

Protected Member Functions

void logDataLine (Real time, Real data)
 
void logDataLine (Real time, const Matrix &data)
 
void logDataLine (Real time, const MatrixComp &data)
 

Protected Attributes

std::ofstream mLogFile
 
String mName
 
Bool mEnabled
 
UInt mDownsampling
 
fs::path mFilename
 
std::map< String, CPS::AttributeBase::PtrmAttributes
 

Additional Inherited Members

- Static Public Member Functions inherited from SharedFactory< DataLogger >
static std::shared_ptr< DataLogger > make (Args &&...args)
 

Detailed Description

Definition at line 25 of file DataLogger.h.


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