Debian Codegraph @

packages/seacas/libraries/ioss/src/Ioss_State.h

raw
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
8 namespace 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. */
31 STATE_LAST_ENTRY
32 };
33 } // namespace Ioss