IOSS 2.0

skinner_interface.h
Go to the documentation of this file.
1 /*
2 * Copyright(C) 1999-2017 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 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
17 *
18 * * Neither the name of NTESS nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34 #ifndef skinner_SystemInterface_h
35 #define skinner_SystemInterface_h
36
37 #include "Ioss_GetLongOpt.h" // for GetLongOption
38 #include <iosfwd> // for ostream
39 #include <string> // for string
40
41 /** \brief A special namespace for the skinner demonstration program interface.
42 */
43 namespace Skinner {
44 class Interface
45 {
46 public:
47 Interface();
48 ~Interface();
49
50 bool parse_options(int argc, char **argv);
51
52 bool ints_64_bit() const { return ints64Bit_; }
53
54 bool no_output() const { return noOutput_; }
55
56 std::string input_filename() const { return inputFile_; }
57 std::string output_filename() const { return outputFile_; }
58 std::string input_type() const { return inFiletype_; }
59 std::string output_type() const { return outFiletype_; }
60
61 private:
62 void enroll_options();
63
64 Ioss::GetLongOption options_;
65
66 std::string inputFile_;
67 std::string outputFile_;
68 std::string inFiletype_;
69 std::string outFiletype_;
70
71 public:
72 std::string decomp_method;
73 std::string compose_output;
74 int compression_level;
75 bool shuffle;
76 bool debug;
77 bool statistics;
78 bool ints64Bit_;
79 bool netcdf4;
80 bool ignoreFaceIds_;
81 bool noOutput_;
82 };
83 } // namespace Skinner
84 #endif
Skinner::Interface::input_filename
std::string input_filename() const
Definition: skinner_interface.h:56
Skinner::Interface::shuffle
bool shuffle
Definition: skinner_interface.h:75
Skinner::Interface::output_type
std::string output_type() const
Definition: skinner_interface.h:59
Skinner
A special namespace for the skinner demonstration program interface.
Definition: skinner_interface.h:43
Skinner::Interface::no_output
bool no_output() const
Definition: skinner_interface.h:54
Skinner::Interface::outFiletype_
std::string outFiletype_
Definition: skinner_interface.h:69
Skinner::Interface::inputFile_
std::string inputFile_
Definition: skinner_interface.h:66
Skinner::Interface::~Interface
~Interface()
Skinner::Interface::decomp_method
std::string decomp_method
Definition: skinner_interface.h:72
Skinner::Interface::compose_output
std::string compose_output
Definition: skinner_interface.h:73
Skinner::Interface::ints_64_bit
bool ints_64_bit() const
Definition: skinner_interface.h:52
Skinner::Interface::ignoreFaceIds_
bool ignoreFaceIds_
Definition: skinner_interface.h:80
Skinner::Interface::inFiletype_
std::string inFiletype_
Definition: skinner_interface.h:68
Skinner::Interface::Interface
Interface()
Definition: skinner_interface.C:42
Ioss::GetLongOption
A database of program command line and environment variable options and methods for manipulating them...
Definition: Ioss_GetLongOpt.h:47
Skinner::Interface::compression_level
int compression_level
Definition: skinner_interface.h:74
Skinner::Interface::netcdf4
bool netcdf4
Definition: skinner_interface.h:79
Skinner::Interface::debug
bool debug
Definition: skinner_interface.h:76
Skinner::Interface
Definition: skinner_interface.h:44
Skinner::Interface::output_filename
std::string output_filename() const
Definition: skinner_interface.h:57
Skinner::Interface::input_type
std::string input_type() const
Definition: skinner_interface.h:58
Skinner::Interface::ints64Bit_
bool ints64Bit_
Definition: skinner_interface.h:78
Skinner::Interface::enroll_options
void enroll_options()
Definition: skinner_interface.C:51
Skinner::Interface::noOutput_
bool noOutput_
Definition: skinner_interface.h:81
Skinner::Interface::options_
Ioss::GetLongOption options_
Definition: skinner_interface.h:64
Skinner::Interface::statistics
bool statistics
Definition: skinner_interface.h:77
Skinner::Interface::outputFile_
std::string outputFile_
Definition: skinner_interface.h:67
Skinner::Interface::parse_options
bool parse_options(int argc, char **argv)
Definition: skinner_interface.C:151
Ioss_GetLongOpt.h