PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
data_stream_enum.h File Reference
+ Include dependency graph for data_stream_enum.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PHOENIX_DATA_STREAM_ENUM(X)
 Macro which allows to simply integrate enum types into Data Stream workflow. More...
 

Macro Definition Documentation

◆ PHOENIX_DATA_STREAM_ENUM

#define PHOENIX_DATA_STREAM_ENUM (   X)
Value:
template<typename Stream> \
static bool data_stream(Stream & ds, X & data){ \
int value(0); \
data = (X)value; \
return b; \
} \
}; \
template<typename Stream> \
static bool data_stream(Stream & ds, X & data){ \
int value = (int)data; \
} \
}; \
Generic DataStream class.
static bool data_stream(Stream &ds, T &data)
Dummy function to catch if a type is not specialised.

Macro which allows to simply integrate enum types into Data Stream workflow.

Definition at line 13 of file data_stream_enum.h.