IOSS  2.0
skinner_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 skinner_SystemInterface_h
9 #define skinner_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 skinner demonstration program interFace.
16  */
17 namespace Skinner {
18  class Interface
19  {
20  public:
21  Interface();
23 
24  bool parse_options(int argc, char **argv);
25 
26  bool ints_64_bit() const { return ints64Bit_; }
27 
28  bool no_output() const { return noOutput_; }
29 
30  std::string input_filename() const { return inputFile_; }
31  std::string output_filename() const { return outputFile_; }
32  std::string input_type() const { return inFiletype_; }
33  std::string output_type() const { return outFiletype_; }
34 
35  private:
36  void enroll_options();
37 
39 
40  std::string inputFile_;
41  std::string outputFile_;
42  std::string inFiletype_{"unknown"};
43  std::string outFiletype_{"unknown"};
44 
45  public:
46  std::string decomp_method;
47  std::string compose_output{"default"};
49  bool shuffle{false};
50  bool debug{false};
51  bool statistics{false};
52  bool ints64Bit_{false};
53  bool netcdf4_{false};
54  bool useFaceHashIds_{true};
55  bool noOutput_{false};
56  bool blocks_{false};
57  };
58 } // namespace Skinner
59 #endif
Skinner::Interface::options_
Ioss::GetLongOption options_
Definition: skinner_interface.h:38
Skinner::Interface::ints_64_bit
bool ints_64_bit() const
Definition: skinner_interface.h:26
Skinner::Interface::inputFile_
std::string inputFile_
Definition: skinner_interface.h:40
Skinner::Interface::outFiletype_
std::string outFiletype_
Definition: skinner_interface.h:43
Skinner
A special namespace for the skinner demonstration program interFace.
Definition: skinner_interface.h:17
Skinner::Interface::~Interface
~Interface()
Skinner::Interface
Definition: skinner_interface.h:19
Skinner::Interface::input_type
std::string input_type() const
Definition: skinner_interface.h:32
Skinner::Interface::parse_options
bool parse_options(int argc, char **argv)
Definition: skinner_interface.C:165
Skinner::Interface::output_type
std::string output_type() const
Definition: skinner_interface.h:33
Skinner::Interface::Interface
Interface()
Definition: skinner_interface.C:36
Skinner::Interface::netcdf4_
bool netcdf4_
Definition: skinner_interface.h:53
Skinner::Interface::statistics
bool statistics
Definition: skinner_interface.h:51
Skinner::Interface::decomp_method
std::string decomp_method
Definition: skinner_interface.h:46
Ioss_GetLongOpt.h
Skinner::Interface::input_filename
std::string input_filename() const
Definition: skinner_interface.h:30
Skinner::Interface::ints64Bit_
bool ints64Bit_
Definition: skinner_interface.h:52
Skinner::Interface::noOutput_
bool noOutput_
Definition: skinner_interface.h:55
Skinner::Interface::compression_level
int compression_level
Definition: skinner_interface.h:48
Skinner::Interface::inFiletype_
std::string inFiletype_
Definition: skinner_interface.h:42
Skinner::Interface::useFaceHashIds_
bool useFaceHashIds_
Definition: skinner_interface.h:54
Skinner::Interface::output_filename
std::string output_filename() const
Definition: skinner_interface.h:31
Skinner::Interface::blocks_
bool blocks_
Definition: skinner_interface.h:56
Ioss::GetLongOption
A database of program command line and environment variable options and methods for manipulating them...
Definition: Ioss_GetLongOpt.h:22
Skinner::Interface::no_output
bool no_output() const
Definition: skinner_interface.h:28
Skinner::Interface::enroll_options
void enroll_options()
Definition: skinner_interface.C:40
Skinner::Interface::debug
bool debug
Definition: skinner_interface.h:50
Skinner::Interface::outputFile_
std::string outputFile_
Definition: skinner_interface.h:41
Skinner::Interface::compose_output
std::string compose_output
Definition: skinner_interface.h:47
Skinner::Interface::shuffle
bool shuffle
Definition: skinner_interface.h:49