PhoenixMock  1.8.7
Tools to split/merge/print mock used in Phoenix
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 
12 #include "data_stream_file_simple_type.h"
13 
15 template<>
16 struct DataStream<FILE*, DataStreamMode::READ, bool>{
17  static bool data_stream(FILE* & ds, bool & data);
18  static bool data_stream(FILE* & ds, bool * data, size_t nbElement);
19 };
20 
21 template<>
23 struct DataStream<FILE*, DataStreamMode::WRITE, bool>{
24  static bool data_stream(FILE* & ds, bool & data);
25  static bool data_stream(FILE* & ds, bool * data, size_t nbElement);
26 };
27 
29 template<>
30 struct DataStream<FILE*, DataStreamMode::READ, std::string>{
31  static bool data_stream(FILE* & ds, std::string & data);
32 };
33 
35 template<>
36 struct DataStream<FILE*, DataStreamMode::WRITE, std::string>{
37  static bool data_stream(FILE* & ds, std::string & data);
38 };
39 
40 #include "data_stream_write_file.h"
41 #include "data_stream_read_file.h"
42 
43 #endif
44 
DataStreamMode::WRITE
@ WRITE
Definition: data_stream_include.h:29
data_stream_read_file.h
data_stream_write_file.h
DataStreamMode::READ
@ READ
Definition: data_stream_include.h:28
DataStream::data_stream
static bool data_stream(Stream &ds, T &data)
Definition: data_stream_include.h:28
DataStream
Generic DataStream class.
Definition: data_stream_include.h:27
data_stream_include.h