Debian Codegraph @

packages/seacas/applications/exomatlab/EML_SystemInterface.h

raw
1 // Copyright(C) 1999-2022, 2024 National Technology & Engineering Solutions
2 // of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
3 // NTESS, the U.S. Government retains certain rights in this software.
4 //
5 // See packages/seacas/LICENSE for details
6 #pragma once
7
8 #include <EML_CodeTypes.h> // for StringIdVector
9 #include <GetLongOpt.h> // for GetLongOption
10 #include <string> // for string
11
12 class SystemInterface
13 {
14 public:
15 SystemInterface();
16
17 bool parse_options(int argc, char **argv);
18
19 char field_suffix() const { return fieldSuffix_; }
20
21 StringIdVector global_var_names() const { return globalVarNames_; }
22 StringIdVector vars_to_list() const { return varsToList_; }
23 bool list_vars() const { return listVars_; }
24
25 std::string input_file() const { return inputFile_; }
26 std::string output_file() const { return outputFile_; }
27
28 double minimum_time() const { return minimumTime_; }
29 double maximum_time() const { return maximumTime_; }
30
31 //! Dumps representation of data in this class to cerr
32
33 static void show_version();
34
35 private:
36 void enroll_options();
37
38 double minimumTime_{0.0};
39 double maximumTime_{-1.0};
40
41 GetLongOption options_; //!< Options parsing
42
43 std::string inputFile_{};
44 std::string outputFile_{};
45
46 StringIdVector globalVarNames_;
47 StringIdVector nodeVarNames_;
48 StringIdVector elemVarNames_;
49 StringIdVector nsetVarNames_;
50 StringIdVector ssetVarNames_;
51 StringIdVector varsToList_;
52
53 bool listVars_{false};
54 char fieldSuffix_{0};
55 };