| 1 |
// Copyright(C) 1999-2020, 2022, 2024 National Technology & Engineering Solutions |
| 2 |
// of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with |
| 3 |
// NTESS, the U.S. Government retains certain rights in this software. |
| 4 |
// |
| 5 |
// See packages/seacas/LICENSE for details |
| 6 |
|
| 7 |
#pragma once |
| 8 |
|
| 9 |
#include "Ioss_CodeTypes.h" |
| 10 |
#include "Ioss_DBUsage.h" // for DatabaseUsage |
| 11 |
#include "Ioss_IOFactory.h" // for IOFactory |
| 12 |
#include <string> // for string |
| 13 |
|
| 14 |
#include "Ioss_DatabaseIO.h" // for DatabaseIO |
| 15 |
#include "iocgns_export.h" |
| 16 |
|
| 17 |
namespace Ioss { |
| 18 |
class PropertyManager; |
| 19 |
} // namespace Ioss |
| 20 |
|
| 21 |
namespace Iocgns { |
| 22 |
|
| 23 |
class IOCGNS_EXPORT IOFactory : public Ioss::IOFactory |
| 24 |
{ |
| 25 |
public: |
| 26 |
static const IOFactory *factory(); |
| 27 |
static void finalize(); |
| 28 |
|
| 29 |
private: |
| 30 |
IOFactory(); |
| 31 |
IOSS_NODISCARD Ioss::DatabaseIO * |
| 32 |
make_IO(const std::string &filename, Ioss::DatabaseUsage db_usage, Ioss_MPI_Comm communicator, |
| 33 |
const Ioss::PropertyManager &properties) const override; |
| 34 |
IOSS_NODISCARD std::string show_config() const override; |
| 35 |
}; |
| 36 |
} // namespace Iocgns |