Debian Codegraph @

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

raw
1 /*
2 * Copyright(C) 1999-2020, 2022, 2023, 2024 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 <string> // for string
12
13 #include "Ioss_GetLongOpt.h" // for GetLongOption
14 #include "io_info_lib_export.h"
15
16 /** \brief A special namespace for the io_info demonstration program interFace.
17 */
18 namespace Info {
19 class IO_INFO_LIB_EXPORT Interface
20 {
21 public:
22 explicit Interface(std::string app_version);
23
24 bool parse_options(int argc, char **argv);
25
26 bool summary() const { return summary_; }
27 bool check_node_status() const { return checkNodeStatus_; }
28 bool compute_volume() const { return computeVolume_; }
29 bool compute_bbox() const { return computeBBox_; }
30 bool adjacencies() const { return adjacencies_; }
31 bool ints_64_bit() const { return ints64Bit_; }
32 bool list_change_sets() const { return listChangeSets_; }
33 bool show_config() const { return showConfig_; }
34 bool query_timesteps_only() const { return queryTimeOnly_; }
35 bool field_details() const { return fieldDetails_; }
36
37 int surface_split_scheme() const { return surfaceSplitScheme_; }
38 char field_suffix_separator() const { return fieldSuffixSeparator_; }
39 bool use_generic_names() const { return useGenericNames_; }
40 bool disable_field_recognition() const { return disableFieldRecognition_; }
41 std::string decomp_method() const { return decompMethod_; }
42 std::string filename() const { return filename_; }
43 std::string type() const { return filetype_; }
44 std::string change_set_name() const { return changeSetName_; }
45 std::string custom_field() const { return customField_; }
46
47 std::string version{};
48
49 private:
50 void enroll_options();
51
52 Ioss::GetLongOption options_;
53 std::string filetype_{"exodus"};
54 std::string filename_{};
55 std::string changeSetName_{};
56 std::string decompMethod_{};
57 std::string customField_{};
58
59 bool checkNodeStatus_{false};
60 bool computeVolume_{false};
61 bool adjacencies_{false};
62 bool ints64Bit_{false};
63 bool computeBBox_{false};
64 bool listChangeSets_{false};
65 bool useGenericNames_{false};
66 bool disableFieldRecognition_{false};
67 bool showConfig_{false};
68 bool summary_{false};
69 bool queryTimeOnly_{false};
70 bool fieldDetails_{false};
71
72 char fieldSuffixSeparator_{'_'};
73
74 int surfaceSplitScheme_{-1};
75 };
76 } // namespace Info