Debian Codegraph @

packages/seacas/libraries/ioss/src/null/Ionull_IOFactory.C

raw
1 // Copyright(C) 2023 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 "null/Ionull_DatabaseIO.h"
8 #include "null/Ionull_IOFactory.h"
9
10 #include "Ioss_CodeTypes.h" // for Ioss_MPI_Comm
11 #include "Ioss_DBUsage.h" // for DatabaseUsage
12 #include "Ioss_IOFactory.h" // for IOFactory
13
14 namespace Ionull {
15
16 const IOFactory *IOFactory::factory()
17 {
18 static IOFactory registerThis;
19 return &registerThis;
20 }
21
22 IOFactory::IOFactory() : Ioss::IOFactory("null") {}
23
24 Ioss::DatabaseIO *IOFactory::make_IO(const std::string &filename, Ioss::DatabaseUsage db_usage,
25 Ioss_MPI_Comm communicator,
26 const Ioss::PropertyManager &properties) const
27 {
28 return new Ionull::DatabaseIO(nullptr, filename, db_usage, communicator, properties);
29 }
30 } // namespace Ionull