IOSS 2.0
Loading...
Searching...
No Matches
Ioss_State.h
Go to the documentation of this file.
1// Copyright(C) 1999-2020, 2022 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#pragma once
8namespace Ioss {
9
10 /** \brief Access states for a database.
11 *
12 * All access states except STATE_INVALID, STATE_UNKNOWN, and STATE_READONLY are only
13 * for output databases.
14 */
15 enum State {
16 STATE_INVALID = -1, /**< Error state if something goes wrong. */
17 STATE_UNKNOWN, /**< Typically used at the very beginning of the database's existence
18 when the class has been created, but no reading or writing has
19 occurred. */
20 STATE_READONLY, /**< An input database that is not in STATE_UNKNOWN is in this
21 state, which means that it cannot be written to or changed. */
22 STATE_CLOSED, /**< The states are not nested, so each state must end with a transition
23 to this state prior to entering the next state. */
24 STATE_DEFINE_MODEL, /**< Defining the metadata, which defines the topology of the model
25 (nontransient, geometry and topology). */
26 STATE_MODEL, /**< Outputting the bulk data (mesh_model_coordinates, ids, connectivity)
27 relating to the model portion. */
28 STATE_DEFINE_TRANSIENT, /**< Defining the metadata relating to the transient data. For example,
29 the element or nodal fields. */
30 STATE_TRANSIENT, /**< Outputting the transient bulk data. */
32 };
33} // namespace Ioss
The main namespace for the Ioss library.
Definition Ioad_DatabaseIO.C:40
State
Access states for a database.
Definition Ioss_State.h:15
@ STATE_DEFINE_MODEL
Definition Ioss_State.h:24
@ STATE_LAST_ENTRY
Definition Ioss_State.h:31
@ STATE_CLOSED
Definition Ioss_State.h:22
@ STATE_UNKNOWN
Definition Ioss_State.h:17
@ STATE_READONLY
Definition Ioss_State.h:20
@ STATE_INVALID
Definition Ioss_State.h:16
@ STATE_MODEL
Definition Ioss_State.h:26
@ STATE_DEFINE_TRANSIENT
Definition Ioss_State.h:28
@ STATE_TRANSIENT
Definition Ioss_State.h:30