MicroModelicaCCompiler  4.5.3
package.hpp
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  This file is part of QSS Solver.
4 
5  QSS Solver is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  QSS Solver is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QSS Solver. If not, see <http://www.gnu.org/licenses/>.
17 
18  ******************************************************************************/
19 
20 #pragma once
21 
22 #include <boost/variant/variant.hpp>
23 
24 #include <ir/class.hpp>
25 #include <util/compile_flags.hpp>
26 #include "writer.hpp"
27 
28 namespace MicroModelica {
29 namespace Generator {
30 class Package {
31  public:
32  Package(IR::Package& package, Util::CompileFlags& flags, WriterPtr writer);
33  ~Package(){};
34  void generate();
35 
36  private:
37  IR::Package _package;
38  Util::CompileFlags _flags;
40 };
41 } // namespace Generator
42 } // namespace MicroModelica
writer.hpp
MicroModelica::Generator::Package::_package
IR::Package _package
Definition: package.hpp:88
MicroModelica::Generator::Package::generate
void generate()
Definition: package.cpp:50
MicroModelica::Generator::Package::_flags
Util::CompileFlags _flags
Definition: package.hpp:89
MicroModelica::Generator::Package::~Package
~Package()
Definition: package.hpp:84
MicroModelica::Generator::Package::_writer
WriterPtr _writer
Definition: package.hpp:90
compile_flags.hpp
MicroModelica
Definition: files.cpp:45
MicroModelica::Generator::Package::Package
Package(IR::Package &package, Util::CompileFlags &flags, WriterPtr writer)
Definition: package.cpp:48
MicroModelica::Generator::WriterPtr
std::shared_ptr< Writer > WriterPtr
Definition: writer.hpp:146
class.hpp