IOSS  2.0
info_interface.h
Go to the documentation of this file.
1 /*
2  * Copyright(C) 1999-2020 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 #ifndef info_SystemInterface_h
9 #define info_SystemInterface_h
10 
11 #include "Ioss_GetLongOpt.h" // for GetLongOption
12 #include <iosfwd> // for ostream
13 #include <string> // for string
14 
15 /** \brief A special namespace for the io_info demonstration program interFace.
16  */
17 namespace Info {
18  class Interface
19  {
20  public:
21  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_groups() const { return listGroups_; }
33  bool show_config() const { return showConfig_; }
34 
35  int surface_split_scheme() const { return surfaceSplitScheme_; }
37  bool use_generic_names() const { return useGenericNames_; }
39  std::string decomp_method() const { return decompMethod_; }
40  std::string filename() const { return filename_; }
41  std::string type() const { return filetype_; }
42  std::string groupname() const { return groupname_; }
43 
44  //! Dumps representation of data in this class to cerr
45 
46  private:
47  void enroll_options();
48 
50  std::string filetype_{"exodus"};
51  std::string filename_{};
52  std::string groupname_{};
53  std::string decompMethod_{};
54 
55  bool checkNodeStatus_{false};
56  bool computeVolume_{false};
57  bool adjacencies_{false};
58  bool ints64Bit_{false};
59  bool computeBBox_{false};
60  bool listGroups_{false};
61  bool useGenericNames_{false};
63  bool showConfig_{false};
64  bool summary_{false};
65 
67 
69  };
70 } // namespace Info
71 #endif
Info::Interface::ints64Bit_
bool ints64Bit_
Definition: info_interface.h:58
Info::Interface::showConfig_
bool showConfig_
Definition: info_interface.h:63
Info::Interface::filename_
std::string filename_
Definition: info_interface.h:51
Info::Interface::computeBBox_
bool computeBBox_
Definition: info_interface.h:59
Info::Interface::decomp_method
std::string decomp_method() const
Definition: info_interface.h:39
Info::Interface::Interface
Interface()
Definition: info_interface.C:36
Info::Interface::parse_options
bool parse_options(int argc, char **argv)
Definition: info_interface.C:167
Info::Interface::surface_split_scheme
int surface_split_scheme() const
Definition: info_interface.h:35
Info::Interface::groupname_
std::string groupname_
Definition: info_interface.h:52
Info::Interface
Definition: info_interface.h:19
Info::Interface::filename
std::string filename() const
Definition: info_interface.h:40
Info::Interface::list_groups
bool list_groups() const
Definition: info_interface.h:32
Info::Interface::adjacencies
bool adjacencies() const
Definition: info_interface.h:30
Info::Interface::options_
Ioss::GetLongOption options_
Definition: info_interface.h:49
Info::Interface::use_generic_names
bool use_generic_names() const
Definition: info_interface.h:37
Info::Interface::compute_volume
bool compute_volume() const
Definition: info_interface.h:28
Info
A special namespace for the io_info demonstration program interFace.
Definition: info_interface.h:17
Info::Interface::ints_64_bit
bool ints_64_bit() const
Definition: info_interface.h:31
Info::Interface::~Interface
~Interface()
Info::Interface::type
std::string type() const
Definition: info_interface.h:41
Info::Interface::compute_bbox
bool compute_bbox() const
Definition: info_interface.h:29
Info::Interface::decompMethod_
std::string decompMethod_
Definition: info_interface.h:53
Ioss_GetLongOpt.h
Info::Interface::groupname
std::string groupname() const
Definition: info_interface.h:42
Info::Interface::fieldSuffixSeparator_
char fieldSuffixSeparator_
Definition: info_interface.h:66
Info::Interface::computeVolume_
bool computeVolume_
Definition: info_interface.h:56
Info::Interface::summary_
bool summary_
Definition: info_interface.h:64
Info::Interface::enroll_options
void enroll_options()
Dumps representation of data in this class to cerr.
Definition: info_interface.C:40
Info::Interface::surfaceSplitScheme_
int surfaceSplitScheme_
Definition: info_interface.h:68
Info::Interface::adjacencies_
bool adjacencies_
Definition: info_interface.h:57
Ioss::GetLongOption
A database of program command line and environment variable options and methods for manipulating them...
Definition: Ioss_GetLongOpt.h:22
Info::Interface::field_suffix_separator
char field_suffix_separator() const
Definition: info_interface.h:36
Info::Interface::listGroups_
bool listGroups_
Definition: info_interface.h:60
Info::Interface::checkNodeStatus_
bool checkNodeStatus_
Definition: info_interface.h:55
Info::Interface::summary
bool summary() const
Definition: info_interface.h:26
Info::Interface::check_node_status
bool check_node_status() const
Definition: info_interface.h:27
Info::Interface::useGenericNames_
bool useGenericNames_
Definition: info_interface.h:61
Info::Interface::disableFieldRecognition_
bool disableFieldRecognition_
Definition: info_interface.h:62
Info::Interface::disable_field_recognition
bool disable_field_recognition() const
Definition: info_interface.h:38
Info::Interface::show_config
bool show_config() const
Definition: info_interface.h:33
Info::Interface::filetype_
std::string filetype_
Definition: info_interface.h:50