MEDYAN  3.1
Software for simulating active matter dynamics
Output Class Referenceabstract

To print a specified output into a file. More...

#include <Output.h>

Inheritance diagram for Output:
Collaboration diagram for Output:

Public Member Functions

 Output (string outputFileName, SubSystem *s)
 Constructor, which opens the output file. More...
 
 ~Output ()
 Destructor, which closes the output file. More...
 
virtual void print (int snapshot)=0
 To be implemented in sub classes. More...
 

Protected Attributes

ofstream _outputFile
 The output file being used. More...
 
SubSystem_subSystem = nullptr
 

Detailed Description

To print a specified output into a file.

An output object, initialized by the Controller, can print a number of specific output formats, including current snapshot, forces, tensions, and birth times. Upon destruction, the output file is closed.

Definition at line 34 of file Output.h.

Constructor & Destructor Documentation

§ Output()

Output::Output ( string  outputFileName,
SubSystem s 
)
inline

Constructor, which opens the output file.

Definition at line 42 of file Output.h.

§ ~Output()

Output::~Output ( )
inline

Destructor, which closes the output file.

Definition at line 54 of file Output.h.

References print().

Member Function Documentation

§ print()

Member Data Documentation

§ _outputFile

ofstream Output::_outputFile
protected

The output file being used.

Definition at line 36 of file Output.h.

§ _subSystem

SubSystem* Output::_subSystem = nullptr
protected

Definition at line 38 of file Output.h.

Referenced by GController::getSubSystem().


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