IOSS  2.0
Iovs_IOFactory.h
Go to the documentation of this file.
1 /*
2  * Copyright(C) 1999-2020 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 /* Copyright 2010 NTESS. */
10 /* Under the terms of Contract DE-AC04-94AL85000, there is a */
11 /* non-exclusive license for use of this work by or on behalf */
12 /* of the U.S. Government. Export of this program may require */
13 /* a license from the United States Government. */
14 /*--------------------------------------------------------------------*/
15 
16 #ifndef IOSS_Iovs_IOFactory_h
17 #define IOSS_Iovs_IOFactory_h
18 
19 #include "Ioss_DatabaseIO.h" // for DatabaseIO
20 #include <Ioss_CodeTypes.h>
21 #include <Ioss_DBUsage.h> // for DatabaseUsage
22 #include <Ioss_IOFactory.h> // for IOFactory
23 #include <string> // for string
24 namespace Ioss {
25  class PropertyManager;
26 } // namespace Ioss
27 
28 namespace Iovs {
29 
30  class IOFactory : public Ioss::IOFactory
31  {
32  public:
33  static const IOFactory *factory();
34 
35  private:
36  IOFactory();
37  Ioss::DatabaseIO *make_IO(const std::string &filename, Ioss::DatabaseUsage db_usage,
38  MPI_Comm communicator,
39  const Ioss::PropertyManager &properties) const override;
40 
41  /**
42  * Call the sierra product registry and register all dependent third-party libraries
43  */
44  void register_library_versions() const;
45  };
46 } // namespace Iovs
47 #endif // IOSS_Iovs_IOFactory_h
Ioss_DBUsage.h
Iovs::IOFactory::register_library_versions
void register_library_versions() const
Definition: Iovs_IOFactory.C:51
Iovs::IOFactory::factory
static const IOFactory * factory()
Definition: Iovs_IOFactory.C:28
Ioss::DatabaseUsage
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition: Ioss_DBUsage.h:14
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:40
Ioss::IOFactory
The main public user interface for creating Ioss::DatabaseIO objects.
Definition: Ioss_IOFactory.h:33
Iovs::IOFactory
Definition: Iovs_IOFactory.h:31
Ioss::PropertyManager
A collection of Ioss::Property objects.
Definition: Ioss_PropertyManager.h:24
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:59
Iovs::IOFactory::make_IO
Ioss::DatabaseIO * make_IO(const std::string &filename, Ioss::DatabaseUsage db_usage, MPI_Comm communicator, const Ioss::PropertyManager &properties) const override
Definition: Iovs_IOFactory.C:41
Ioss_IOFactory.h
Iovs::IOFactory::IOFactory
IOFactory()
Definition: Iovs_IOFactory.C:34
Iovs
A namespace for the visualization database format.
Definition: Iovs_DatabaseIO.C:75
MPI_Comm
int MPI_Comm
Definition: Ioss_CodeTypes.h:66
Ioss_CodeTypes.h
Ioss_DatabaseIO.h