IOSS 2.0
Loading...
Searching...
No Matches
modify_interface.h
Go to the documentation of this file.
1/*
2 * Copyright(C) 1999-2020, 2022, 2024 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#pragma once
10
11#include "Ioss_GetLongOpt.h" // for GetLongOption
12#include <string> // for string
13
14/** \brief A special namespace for the io_modify demonstration program interFace.
15 */
16namespace Modify {
18 {
19 public:
20 Interface();
21
22 bool parse_options(int argc, char **argv);
23
24 std::string filename() const { return filename_; }
25 std::string type() const { return filetype_; }
27
28 private:
29 void enroll_options();
30
32 std::string filetype_{"unknown"};
33 std::string filename_{};
34 bool allowModification_{false};
35 };
36} // namespace Modify
A database of program command line and environment variable options and methods for manipulating them...
Definition Ioss_GetLongOpt.h:25
Definition modify_interface.h:18
std::string filename() const
Definition modify_interface.h:24
Ioss::GetLongOption options_
Definition modify_interface.h:31
std::string filetype_
Definition modify_interface.h:32
std::string filename_
Definition modify_interface.h:33
void enroll_options()
Definition modify_interface.C:21
bool parse_options(int argc, char **argv)
Definition modify_interface.C:59
bool allowModification_
Definition modify_interface.h:34
bool modify_existing_assembly() const
Definition modify_interface.h:26
Interface()
Definition modify_interface.C:19
std::string type() const
Definition modify_interface.h:25
A special namespace for the io_modify demonstration program interFace.
Definition modify_interface.h:16