| 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 |
*/ |
| 16 |
namespace Modify { |
| 17 |
class Interface |
| 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_; } |
| 26 |
bool modify_existing_assembly() const { return allowModification_; } |
| 27 |
|
| 28 |
private: |
| 29 |
void enroll_options(); |
| 30 |
|
| 31 |
Ioss::GetLongOption options_; |
| 32 |
std::string filetype_{"unknown"}; |
| 33 |
std::string filename_{}; |
| 34 |
bool allowModification_{false}; |
| 35 |
}; |
| 36 |
} // namespace Modify |