IOSS 2.0
Loading...
Searching...
No Matches
info_interface.h
Go to the documentation of this file.
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 */
18namespace Info {
19 class IO_INFO_LIB_EXPORT Interface
20 {
21 public:
22 Interface();
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 //! Dumps representation of data in this class to cerr
48
49 private:
50 void enroll_options();
51
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
Definition info_interface.h:20
bool show_config() const
Definition info_interface.h:33
bool ints_64_bit() const
Definition info_interface.h:31
bool field_details() const
Definition info_interface.h:35
char field_suffix_separator() const
Definition info_interface.h:38
std::string type() const
Definition info_interface.h:43
bool compute_volume() const
Definition info_interface.h:28
bool use_generic_names() const
Definition info_interface.h:39
Ioss::GetLongOption options_
Definition info_interface.h:52
std::string custom_field() const
Definition info_interface.h:45
bool check_node_status() const
Definition info_interface.h:27
bool adjacencies() const
Definition info_interface.h:30
bool disable_field_recognition() const
Definition info_interface.h:40
bool summary() const
Definition info_interface.h:26
bool query_timesteps_only() const
Definition info_interface.h:34
std::string decomp_method() const
Definition info_interface.h:41
std::string change_set_name() const
Definition info_interface.h:44
int surface_split_scheme() const
Definition info_interface.h:37
bool list_change_sets() const
Definition info_interface.h:32
bool compute_bbox() const
Definition info_interface.h:29
std::string filename() const
Definition info_interface.h:42
A database of program command line and environment variable options and methods for manipulating them...
Definition Ioss_GetLongOpt.h:25
A special namespace for the io_info demonstration program interFace.
Definition info_interface.h:18