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