NLMech  0.1.0
policyDeck.h
1 // Copyright (c) 2019 Prashant K. Jha
3 // Copyright (c) 2019 Patrick Diehl
4 //
5 // Distributed under the Boost Software License, Version 1.0. (See accompanying
6 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 
9 #ifndef INP_POLICYDECK_H
10 #define INP_POLICYDECK_H
11 
12 #include <vector>
13 #include "util/utilIO.h"
14 
15 namespace inp {
16 
23 struct PolicyDeck {
31 
38 
43 
53  std::string printStr(int nt = 0, int lvl = 0) const {
54  auto tabS = util::io::getTabS(nt);
55  std::ostringstream oss;
56  oss << tabS << "------- PolicyDeck --------" << std::endl << std::endl;
57  oss << tabS << "Memory control flag = " << d_memControlFlag << std::endl;
58  oss << tabS << "Post-processing active = " << d_enablePostProcessing << std::endl;
59  oss << tabS << std::endl;
60 
61  return oss.str();
62  };
63 
71  void print(int nt = 0, int lvl = 0) const { std::cout << printStr(nt, lvl); };
72 };
73 
76 } // namespace inp
77 
78 #endif // INP_POLICYDECK_H
Collection of methods and database related to input.
Definition: main.cpp:21
std::string getTabS(int nt)
Generate a string contaning nt tabs.
Definition: utilIO.h:26
Structure to read and store policy related input data.
Definition: policyDeck.h:23
bool d_enablePostProcessing
Enable post-processing calculation.
Definition: policyDeck.h:37
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing information about the instance of the object.
Definition: policyDeck.h:53
int d_memControlFlag
Flag which indicates level of memory control to be enforced.
Definition: policyDeck.h:30
void print(int nt=0, int lvl=0) const
Prints the information about the instance of the object.
Definition: policyDeck.h:71
PolicyDeck()
Constructor.
Definition: policyDeck.h:42