Skip to content

Commit ab3d5be

Browse files
committed
Add Doxygen docu for AdvanceStatus and for SeriesStatus
1 parent d6f5e1e commit ab3d5be

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

include/openPMD/IO/AbstractIOHandler.hpp

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff 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

include/openPMD/Streaming.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ namespace openPMD
1919
*/
2020
enum 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
/**

0 commit comments

Comments
 (0)