PhoenixPresentation  2.0.0
Set of cmake function to automate presentation generation
data_stream_file.h
Go to the documentation of this file.
1 /***************************************
2  Auteur : Pierre Aubert
3  Mail : pierre.aubert@lapp.in2p3.fr
4  Licence : CeCILL-C
5 ****************************************/
6 
7 #ifndef __DATA_STREAM_FILE_H__
8 #define __DATA_STREAM_FILE_H__
9 
10 #include "data_stream_include.h"
11 
13 template<>
14 struct DataStream<FILE*, DataStreamMode::READ, bool>{
15  static bool data_stream(FILE* & ds, bool & data);
16  static bool data_stream(FILE* & ds, bool * data, size_t nbElement);
17 };
18 
19 template<>
21 struct DataStream<FILE*, DataStreamMode::WRITE, bool>{
22  static bool data_stream(FILE* & ds, bool & data);
23  static bool data_stream(FILE* & ds, bool * data, size_t nbElement);
24 };
25 
27 template<>
28 struct DataStream<FILE*, DataStreamMode::READ, std::string>{
29  static bool data_stream(FILE* & ds, std::string & data);
30 };
31 
33 template<>
34 struct DataStream<FILE*, DataStreamMode::WRITE, std::string>{
35  static bool data_stream(FILE* & ds, std::string & data);
36 };
37 
38 #include "data_stream_write_file.h"
39 #include "data_stream_read_file.h"
40 
41 #endif
42 
Generic DataStream class.
static bool data_stream(Stream &ds, T &data)
Dummy function to catch if a type is not specialised.