VM2D  1.12
Vortex methods for 2D flows simulation
PassportGen.cpp
Go to the documentation of this file.
1 /*--------------------------------*- VMlib -*----------------*---------------*\
2 | ## ## ## ## ## ## ## | | Version 1.12 |
3 | ## ## ### ### ## ## | VMlib: VM2D/VM3D Library | 2024/01/14 |
4 | ## ## ## # ## ## ## #### | Open Source Code *----------------*
5 | #### ## ## ## ## ## ## | https://www.github.com/vortexmethods/VM2D |
6 | ## ## ## #### ### #### | https://www.github.com/vortexmethods/VM3D |
7 | |
8 | Copyright (C) 2017-2024 Ilia Marchevsky |
9 *-----------------------------------------------------------------------------*
10 | File name: PassportGen.h |
11 | Info: Source code of VMlib |
12 | |
13 | This file is part of VMlib. |
14 | VMLib is free software: you can redistribute it and/or modify it |
15 | under the terms of the GNU General Public License as published by |
16 | the Free Software Foundation, either version 3 of the License, or |
17 | (at your option) any later version. |
18 | |
19 | VMlib is distributed in the hope that it will be useful, but WITHOUT |
20 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
21 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
22 | for more details. |
23 | |
24 | You should have received a copy of the GNU General Public License |
25 | along with VMlib. If not, see <http://www.gnu.org/licenses/>. |
26 \*---------------------------------------------------------------------------*/
27 
28 
37 #include "defs.h"
38 #include "PassportGen.h"
39 #include "Preprocessor.h"
40 #include "StreamParser.h"
41 
42 using namespace VMlib;
43 
44 //Конструктор
45 PassportGen::PassportGen(LogStream& infoStream, const std::string& _problemName, const size_t _problemNumber, const std::string& _filePassport, const std::string& _mechanics, const std::string& _defaults, const std::string& _switchers, const std::vector<std::string>& vars)
46 : problemName(_problemName), problemNumber(_problemNumber)
47 {
48  std::stringstream ss;
49  ss << "#" << problemNumber << " (" << problemName <<") passport";
50  info.inheritStream(infoStream, ss.str());
51 
52  dir = "./" + problemName + "/";
53 }//PassportGen(...)
Заголовочный файл с описанием класса PasportGen.
Класс, определяющий работу с потоком логов
Definition: LogStream.h:53
std::string problemName
Название задачи
Definition: PassportGen.h:121
std::string dir
Рабочий каталог задачи
Definition: PassportGen.h:118
Описание базовых вспомогательных функций
Заголовочный файл с описанием класса Preprocessor.
PassportGen(LogStream &infoStream, const std::string &_problemName, const size_t _problemNumber, const std::string &_filePassport, const std::string &_mechanics, const std::string &_defaults, const std::string &_switchers, const std::vector< std::string > &vars)
Конструктор
Definition: PassportGen.cpp:45
Заголовочный файл с описанием класса StreamParser.
size_t problemNumber
Номер задачи
Definition: PassportGen.h:124
void inheritStream(LogStream &infoStream_, const std::string &label_)
Связывание потока логов с потоком вывода от другого потока логов
Definition: LogStream.h:90
LogStream info
Поток для вывода логов и сообщений об ошибках
Definition: PassportGen.h:111