File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,10 +122,26 @@ namespace internal
122122
123123 struct ParsedFlushParams ;
124124
125+ /* *
126+ * Some parts of the openPMD object model are read-only when accessing
127+ * a Series in Access::READ_ONLY mode, notably Containers and Attributes.
128+ * They are filled at parse time and not modified afterwards.
129+ * Such state-changing operations are hence allowed under either of two
130+ * conditions:
131+ * 1) The Series is opened in an open mode that allows writing in any way.
132+ * (Currently any but Access::READ_ONLY).
133+ * 2) The Series is in Parsing state. This way, modifying the open mode
134+ * during parsing can be avoided.
135+ */
125136 enum class SeriesStatus : unsigned char
126137 {
127- Default,
128- Parsing
138+ Default, // /< Mutability of objects in the openPMD object model is
139+ // /< determined by the open mode (Access enum), normal state in
140+ // /< which the user interacts with the Series.
141+ Parsing // /< All objects in the openPMD object model are temporarily
142+ // /< mutable to allow inserting newly-parsed data.
143+ // /< Special state only active while internal routines are
144+ // /< running.
129145 };
130146} // namespace internal
131147
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ namespace openPMD
1919 */
2020enum class AdvanceStatus : unsigned char
2121{
22- OK , /* stream goes on */
23- OVER , /* stream is over */
24- RANDOMACCESS /* there is no stream, it will never be over */
22+ OK , // /< stream goes on
23+ OVER , // /< stream is over
24+ RANDOMACCESS // /< there is no stream, it will never be over
2525};
2626
2727/* *
You can’t perform that action at this time.
0 commit comments