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{"default"};
74 int compression_level{0};
75 bool shuffle{false};
76 bool debug{false};
77 bool statistics{false};
78 bool ints64Bit_{false};
79 bool netcdf4_{false};
80 bool useFaceHashIds_{true};
81 bool noOutput_{false};
82 bool blocks_{false};
83 };
84 } // namespace Skinner
85 #endif
Skinner::Interface::options_
Ioss::GetLongOption options_
Definition: skinner_interface.h:64
Skinner::Interface::ints_64_bit
bool ints_64_bit() const
Definition: skinner_interface.h:52
Skinner::Interface::inputFile_
std::string inputFile_
Definition: skinner_interface.h:66
Skinner::Interface::outFiletype_
std::string outFiletype_
Definition: skinner_interface.h:69
Skinner
A special namespace for the skinner demonstration program interFace.
Definition: skinner_interface.h:43
Skinner::Interface::~Interface
~Interface()
Skinner::Interface
Definition: skinner_interface.h:44
Skinner::Interface::input_type
std::string input_type() const
Definition: skinner_interface.h:58
Skinner::Interface::parse_options
bool parse_options(int argc, char **argv)
Definition: skinner_interface.C:150
Skinner::Interface::output_type
std::string output_type() const
Definition: skinner_interface.h:59
Skinner::Interface::Interface
Interface()
Definition: skinner_interface.C:43
Skinner::Interface::netcdf4_
bool netcdf4_
Definition: skinner_interface.h:79
Skinner::Interface::statistics
bool statistics
Definition: skinner_interface.h:77
Skinner::Interface::decomp_method
std::string decomp_method
Definition: skinner_interface.h:72
Ioss_GetLongOpt.h
Skinner::Interface::input_filename
std::string input_filename() const
Definition: skinner_interface.h:56
Skinner::Interface::ints64Bit_
bool ints64Bit_
Definition: skinner_interface.h:78
Skinner::Interface::noOutput_
bool noOutput_
Definition: skinner_interface.h:81
Skinner::Interface::compression_level
int compression_level
Definition: skinner_interface.h:74
Skinner::Interface::inFiletype_
std::string inFiletype_
Definition: skinner_interface.h:68
Skinner::Interface::useFaceHashIds_
bool useFaceHashIds_
Definition: skinner_interface.h:80
Skinner::Interface::output_filename
std::string output_filename() const
Definition: skinner_interface.h:57
Skinner::Interface::blocks_
bool blocks_
Definition: skinner_interface.h:82
Ioss::GetLongOption
A database of program command line and environment variable options and methods for manipulating them...
Definition: Ioss_GetLongOpt.h:47
Skinner::Interface::no_output
bool no_output() const
Definition: skinner_interface.h:54
Skinner::Interface::enroll_options
void enroll_options()
Definition: skinner_interface.C:47
Skinner::Interface::debug
bool debug
Definition: skinner_interface.h:76
Skinner::Interface::outputFile_
std::string outputFile_
Definition: skinner_interface.h:67
Skinner::Interface::compose_output
std::string compose_output
Definition: skinner_interface.h:73
Skinner::Interface::shuffle
bool shuffle
Definition: skinner_interface.h:75