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