PhoenixDataStream  1.0.0
Framework to save/load/serialize/deserialize data
Loading...
Searching...
No Matches
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
13template<>
14struct 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
19template<>
21struct 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
27template<>
28struct DataStream<FILE*, DataStreamMode::READ, std::string>{
29 static bool data_stream(FILE* & ds, std::string & data);
30};
31
33template<>
34struct DataStream<FILE*, DataStreamMode::WRITE, std::string>{
35 static bool data_stream(FILE* & ds, std::string & data);
36};
37
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.