IOSS 2.0

Iovs_IOFactory.h
Go to the documentation of this file.
1 /*
2 * Copyright(C) 1999-2017 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 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
17 *
18 * * Neither the name of NTESS nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34 /*--------------------------------------------------------------------*/
35 /* Copyright 2010 NTESS. */
36 /* Under the terms of Contract DE-AC04-94AL85000, there is a */
37 /* non-exclusive license for use of this work by or on behalf */
38 /* of the U.S. Government. Export of this program may require */
39 /* a license from the United States Government. */
40 /*--------------------------------------------------------------------*/
41
42 #ifndef IOSS_Iovs_IOFactory_h
43 #define IOSS_Iovs_IOFactory_h
44
45 #include "Ioss_DatabaseIO.h" // for DatabaseIO
46 #include <Ioss_CodeTypes.h>
47 #include <Ioss_DBUsage.h> // for DatabaseUsage
48 #include <Ioss_IOFactory.h> // for IOFactory
49 #include <string> // for string
50 namespace Ioss {
51 class PropertyManager;
52 } // namespace Ioss
53
54 namespace Iovs {
55
56 class IOFactory : public Ioss::IOFactory
57 {
58 public:
59 static const IOFactory *factory();
60
61 private:
62 IOFactory();
63 Ioss::DatabaseIO *make_IO(const std::string &filename, Ioss::DatabaseUsage db_usage,
64 MPI_Comm communicator,
65 const Ioss::PropertyManager &properties) const override;
66
67 /**
68 * Call the sierra product registry and register all dependent third-party libraries
69 */
70 void register_library_versions() const;
71 };
72 } // namespace Iovs
73 #endif // IOSS_Iovs_IOFactory_h
Ioss_DBUsage.h
Iovs::IOFactory::register_library_versions
void register_library_versions() const
Definition: Iovs_IOFactory.C:77
Iovs::IOFactory::factory
static const IOFactory * factory()
Definition: Iovs_IOFactory.C:54
Ioss::DatabaseUsage
DatabaseUsage
Specifies how an Ioss::DatabaseIO object will be used.
Definition: Ioss_DBUsage.h:40
Ioss
The main namespace for the Ioss library.
Definition: Ioad_DatabaseIO.C:66
Ioss::IOFactory
The main public user interface for creating Ioss::DatabaseIO objects.
Definition: Ioss_IOFactory.h:58
Iovs::IOFactory
Definition: Iovs_IOFactory.h:56
Ioss::PropertyManager
A collection of Ioss::Property objects.
Definition: Ioss_PropertyManager.h:49
Ioss::DatabaseIO
An input or output Database.
Definition: Ioss_DatabaseIO.h:82
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:67
Ioss_IOFactory.h
Iovs::IOFactory::IOFactory
IOFactory()
Definition: Iovs_IOFactory.C:60
Iovs
A namespace for the visualization database format.
Definition: Iovs_DatabaseIO.C:101
MPI_Comm
int MPI_Comm
Definition: Ioss_CodeTypes.h:96
Ioss_CodeTypes.h
Ioss_DatabaseIO.h