IOSS  2.0
modify_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 
9 #ifndef modify_SystemInterface_h
10 #define modify_SystemInterface_h
11 
12 #include "Ioss_GetLongOpt.h" // for GetLongOption
13 #include <string> // for string
14 
15 /** \brief A special namespace for the io_modify demonstration program interFace.
16  */
17 namespace Modify {
18  class Interface
19  {
20  public:
21  Interface();
23 
24  bool parse_options(int argc, char **argv);
25 
26  std::string filename() const { return filename_; }
27  std::string type() const { return filetype_; }
29 
30  private:
31  void enroll_options();
32 
34  std::string filetype_{"unknown"};
35  std::string filename_{};
36  bool allowModification_{false};
37  };
38 } // namespace Modify
39 #endif
Modify::Interface::filename_
std::string filename_
Definition: modify_interface.h:35
Modify::Interface::type
std::string type() const
Definition: modify_interface.h:27
Modify::Interface::filename
std::string filename() const
Definition: modify_interface.h:26
Modify::Interface::enroll_options
void enroll_options()
Definition: modify_interface.C:41
Modify::Interface::modify_existing_assembly
bool modify_existing_assembly() const
Definition: modify_interface.h:28
Modify::Interface::Interface
Interface()
Definition: modify_interface.C:37
Modify::Interface::options_
Ioss::GetLongOption options_
Definition: modify_interface.h:33
Modify::Interface::allowModification_
bool allowModification_
Definition: modify_interface.h:36
Modify
A special namespace for the io_modify demonstration program interFace.
Definition: modify_interface.h:17
Modify::Interface::filetype_
std::string filetype_
Definition: modify_interface.h:34
Ioss_GetLongOpt.h
Modify::Interface::parse_options
bool parse_options(int argc, char **argv)
Definition: modify_interface.C:77
Ioss::GetLongOption
A database of program command line and environment variable options and methods for manipulating them...
Definition: Ioss_GetLongOpt.h:22
Modify::Interface::~Interface
~Interface()
Modify::Interface
Definition: modify_interface.h:19