MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
maia.h
Go to the documentation of this file.
1// Copyright (C) 2024 The m-AIA AUTHORS
2//
3// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4//
5// SPDX-License-Identifier: LGPL-3.0-only
6
7// Copyright (C) 2024 The m-AIA AUTHORS
8//
9// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
10//
11// SPDX-License-Identifier: LGPL-3.0-only
12
13// Copyright (C) 2024 The m-AIA AUTHORS
14//
15// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
16//
17// SPDX-License-Identifier: LGPL-3.0-only
18
19
20// Copyright (C) 2024 The m-AIA AUTHORS
21//
22// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
23//
24// SPDX-License-Identifier: LGPL-3.0-only
25
26
27// Copyright (C) 2024 The m-AIA AUTHORS
28//
29// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
30//
31// SPDX-License-Identifier: LGPL-3.0-only
32
33
34#ifndef MAIN_H_
35#define MAIN_H_
36
37#include <streambuf>
38
44class NullBuffer : public std::streambuf {
45 public:
46 int overflow(int c) override { return c; }
47};
48
49class MAIA {
50 public:
51 MAIA(int argc, char** argv) : m_argc(argc), m_argv(argv) {}
52
53 int run();
54
55 private:
57
58 int m_argc = 0;
59 char** m_argv = nullptr;
60};
61
62#endif // ifndef MAIN_H_
Definition: maia.h:49
int run()
Main controlling method for MAIA. Calls everything else.
Definition: maia.cpp:56
NullBuffer nullBuffer
Definition: maia.h:56
MAIA(int argc, char **argv)
Definition: maia.h:51
char ** m_argv
Definition: maia.h:59
int m_argc
Definition: maia.h:58
Auxiliary class to allow creating versions of cout/cerr that only output under certain conditions.
Definition: maia.h:44
int overflow(int c) override
Definition: maia.h:46