| 1 |
// Copyright(C) 1999-2021 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 |
#include "Ioss_DBUsage.h" // for DatabaseUsage |
| 8 |
#include "Ioss_IOFactory.h" // for IOFactory |
| 9 |
#include <cstddef> // for nullptr |
| 10 |
#include <string> // for string |
| 11 |
#include <visualization/cgns/Iovs_cgns_DatabaseIO.h> |
| 12 |
#include <visualization/cgns/Iovs_cgns_IOFactory.h> |
| 13 |
namespace Ioss { |
| 14 |
class PropertyManager; |
| 15 |
} // namespace Ioss |
| 16 |
|
| 17 |
namespace Iovs_cgns { |
| 18 |
|
| 19 |
const IOFactory *IOFactory::factory() |
| 20 |
{ |
| 21 |
static IOFactory registerThis; |
| 22 |
return ®isterThis; |
| 23 |
} |
| 24 |
|
| 25 |
IOFactory::IOFactory() : Ioss::IOFactory("catalyst_cgns") {} |
| 26 |
|
| 27 |
Ioss::DatabaseIO *IOFactory::make_IO(const std::string &filename, Ioss::DatabaseUsage db_usage, |
| 28 |
Ioss_MPI_Comm communicator, |
| 29 |
const Ioss::PropertyManager &properties) const |
| 30 |
{ |
| 31 |
return new DatabaseIO(nullptr, filename, db_usage, communicator, properties); |
| 32 |
} |
| 33 |
|
| 34 |
} // namespace Iovs_cgns |