aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.h
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-19 12:30:10 +0200
committerThomas White <taw@physics.org>2020-08-19 12:30:10 +0200
commit1d8f71504ece9da2164d680d52823a865b60faab (patch)
tree80104a634b1be9e087937077521100217d8385a2 /libcrystfel/src/stream.h
parent5f4c120e3c74284e72525d9bb5a9a8da13871968 (diff)
Remove STREAM_UNITCELL and STREAM_CRYSTALS
These flags weren't orthogonal at all, which was turning some routines into spaghetti-code. It's still possible to avoid read/write of peak lists, reflection data or image data. But that's it.
Diffstat (limited to 'libcrystfel/src/stream.h')
-rw-r--r--libcrystfel/src/stream.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/libcrystfel/src/stream.h b/libcrystfel/src/stream.h
index 9e92b35a..7bb1b6ab 100644
--- a/libcrystfel/src/stream.h
+++ b/libcrystfel/src/stream.h
@@ -61,26 +61,20 @@ typedef struct _stream Stream;
/**
* A bitfield of things that can be read from or written to a stream.
- * Use this (and \ref read_chunk) to read the stream faster if you
- * don't need the entire contents of the stream.
+ * Use this together with stream_{read,write}_chunk to read/write the
+ * stream faster if you don't need all the information.
*
- * Using either of \p STREAM_REFLECTIONS or * \p STREAM_UNITCELL
- * implies \p STREAM_CRYSTALS.
+ * General information about crystals (including unit cell parameters)
+ * is always read and written.
**/
typedef enum {
- /** Read the unit cell */
- STREAM_UNITCELL = 1,
-
/** Read the integrated reflections */
STREAM_REFLECTIONS = 2,
/** Read the peak search results */
STREAM_PEAKS = 4,
- /** Read the general information about crystals */
- STREAM_CRYSTALS = 8,
-
/** Read the image data */
STREAM_IMAGE_DATA = 16,