Debian Codegraph @

packages/seacas/libraries/ioss/src/visualization/exodus/Iovs_exodus_IOFactory.C

raw
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/exodus/Iovs_exodus_DatabaseIO.h>
12 #include <visualization/exodus/Iovs_exodus_IOFactory.h>
13
14 namespace Ioss {
15 class PropertyManager;
16 } // namespace Ioss
17
18 namespace Iovs_exodus {
19
20 const IOFactory *IOFactory::factory()
21 {
22 static IOFactory registerThis;
23 return &registerThis;
24 }
25
26 IOFactory::IOFactory() : Ioss::IOFactory("catalyst_exodus")
27 {
28 // Tell the database to register itself with sierra's product registry.
29 // XXX exodus doesn't do this, do we need to?
30 // register_library_versions();
31 }
32
33 Ioss::DatabaseIO *IOFactory::make_IO(const std::string &filename, Ioss::DatabaseUsage db_usage,
34 Ioss_MPI_Comm communicator,
35 const Ioss::PropertyManager &properties) const
36 {
37
38 return new DatabaseIO(nullptr, filename, db_usage, communicator, properties);
39 }
40
41 /**
42 * Call the sierra product registry and register all dependent third-party libraries
43 */
44 void IOFactory::register_library_versions() const
45 {
46 // Internals::register_library_versions();
47 }
48 } // namespace Iovs_exodus