Debian Codegraph @

packages/seacas/libraries/ioss/src/main/skinner_interface.h

raw
1 /*
2 * Copyright(C) 1999-2020, 2022, 2024, 2025 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * See packages/seacas/LICENSE for details
7 */
8 #pragma once
9
10 #include <iosfwd> // for ostream
11 #include <limits>
12 #include <string> // for string
13 #include <vector>
14
15 #include "Ioss_GetLongOpt.h" // for GetLongOption
16
17 /** \brief A special namespace for the skinner demonstration program interFace.
18 */
19 namespace Skinner {
20 class Interface
21 {
22 public:
23 explicit Interface(std::string app_version);
24
25 bool parse_options(int argc, char **argv);
26
27 bool ints_64_bit() const { return ints64Bit_; }
28
29 bool no_output() const { return noOutput_; }
30 bool output_transient() const { return outputTransient_; }
31
32 std::string input_filename() const { return inputFile_; }
33 std::string output_filename() const { return outputFile_; }
34 std::string input_type() const { return inFiletype_; }
35 std::string output_type() const { return outFiletype_; }
36
37 private:
38 void enroll_options();
39
40 Ioss::GetLongOption options_;
41
42 std::string inputFile_;
43 std::string outputFile_;
44 std::string inFiletype_{"unknown"};
45 std::string outFiletype_{"unknown"};
46
47 public:
48 std::string version{};
49 std::string decomp_method;
50 std::string compose_output{"default"};
51 double maximum_time{std::numeric_limits<double>::max()};
52 double minimum_time{-std::numeric_limits<double>::max()};
53 int compression_level{0};
54 bool shuffle{false};
55 bool debug{false};
56 bool statistics{false};
57 bool ints64Bit_{false};
58 bool netcdf4_{false};
59 bool useFaceHashIds_{true};
60 bool noOutput_{false};
61 bool outputTransient_{false};
62 bool blocks_{false};
63
64 //! If non-empty, then it is a list of times that should be transferred to the output file.
65 std::vector<double> selected_times{};
66 };
67 } // namespace Skinner