MicroModelicaCCompiler  4.5.3
MicroModelica::Generator::Files Class Reference

#include <files.hpp>

Collaboration diagram for MicroModelica::Generator::Files:

Public Member Functions

 Files (ModelInstancePtr modelInstance, IR::Model &model, Util::CompileFlags &flags)
 
 Files (string name, Util::CompileFlags &flags)
 
 ~Files ()=default
 
void makefile ()
 
void run ()
 
void plot ()
 
void settings (IR::ModelAnnotation annotation)
 
void graph ()
 
void bdfPartition ()
 

Protected Member Functions

std::string variablePlotSettings ()
 
void printList (const list< string > &ann, const string &tag) const
 
void addAnnotation (const IR::ModelAnnotation &annotation, const string &mmo_name, IR::IntegerAnnotations name)
 

Protected Attributes

string _fname
 
IR::Model _model
 
ModelInstancePtr _modelInstance
 
WriterPtr _writer
 
Util::CompileFlags_flags
 
ofstream _file
 

Detailed Description

Definition at line 68 of file files.hpp.

Constructor & Destructor Documentation

◆ Files() [1/2]

MicroModelica::Generator::Files::Files ( ModelInstancePtr  modelInstance,
IR::Model model,
Util::CompileFlags flags 
)

Definition at line 50 of file files.cpp.

References _flags, _fname, MicroModelica::Util::CompileFlags::hasOutputFile(), and MicroModelica::Util::CompileFlags::outputFile().

Here is the call graph for this function:

◆ Files() [2/2]

MicroModelica::Generator::Files::Files ( string  name,
Util::CompileFlags flags 
)

Definition at line 58 of file files.cpp.

References _flags, _fname, MicroModelica::Util::CompileFlags::hasOutputFile(), and MicroModelica::Util::CompileFlags::outputFile().

Here is the call graph for this function:

◆ ~Files()

MicroModelica::Generator::Files::~Files ( )
default

Member Function Documentation

◆ addAnnotation()

void MicroModelica::Generator::Files::addAnnotation ( const IR::ModelAnnotation annotation,
const string &  mmo_name,
IR::IntegerAnnotations  name 
)
protected

Definition at line 343 of file files.cpp.

References _writer, MicroModelica::IR::ModelAnnotation::getAnnotation(), and MicroModelica::IR::ModelAnnotation::hasAnnotation().

Referenced by settings().

Here is the call graph for this function:

◆ bdfPartition()

void MicroModelica::Generator::Files::bdfPartition ( )

Definition at line 371 of file files.cpp.

References _fname, _model, MicroModelica::IR::Model::annotations(), MicroModelica::IR::ModelAnnotation::BDFPartition(), and current_element.

Here is the call graph for this function:

◆ graph()

void MicroModelica::Generator::Files::graph ( )

◆ makefile()

◆ plot()

void MicroModelica::Generator::Files::plot ( )

Definition at line 212 of file files.cpp.

◆ printList()

void MicroModelica::Generator::Files::printList ( const list< string > &  ann,
const string &  tag 
) const
protected

Definition at line 352 of file files.cpp.

References _writer.

Referenced by settings().

◆ run()

void MicroModelica::Generator::Files::run ( )

Definition at line 175 of file files.cpp.

References _fname, _model, _writer, MicroModelica::Util::Utils::instance(), and MicroModelica::IR::Model::outputNbr().

Here is the call graph for this function:

◆ settings()

◆ variablePlotSettings()

string MicroModelica::Generator::Files::variablePlotSettings ( )
protected

Definition at line 198 of file files.cpp.

Member Data Documentation

◆ _file

ofstream MicroModelica::Generator::Files::_file
protected

Definition at line 107 of file files.hpp.

◆ _flags

Util::CompileFlags& MicroModelica::Generator::Files::_flags
protected

Definition at line 106 of file files.hpp.

Referenced by Files(), and makefile().

◆ _fname

string MicroModelica::Generator::Files::_fname
protected

Definition at line 102 of file files.hpp.

Referenced by bdfPartition(), Files(), makefile(), run(), and settings().

◆ _model

IR::Model MicroModelica::Generator::Files::_model
protected

Definition at line 103 of file files.hpp.

Referenced by bdfPartition(), makefile(), and run().

◆ _modelInstance

ModelInstancePtr MicroModelica::Generator::Files::_modelInstance
protected

Definition at line 104 of file files.hpp.

◆ _writer

WriterPtr MicroModelica::Generator::Files::_writer
protected

Definition at line 105 of file files.hpp.

Referenced by addAnnotation(), makefile(), printList(), run(), and settings().


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