PhoenixSerializer  3.0.0
PhoenixSerializer is a 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 : LGPL-3.0-only
5****************************************/
6
7#ifndef __DATA_STREAM_FILE_H__
8#define __DATA_STREAM_FILE_H__
9
10#include "data_stream_include.h"
11
13template <>
14struct Serializer<FILE *, SerializeMode::READ, bool> {
15 static bool phoenix_serialize(FILE *& ds, bool & data);
16 static bool phoenix_serialize(FILE *& ds, bool * data, size_t nbElement);
17};
18
19template <>
21struct Serializer<FILE *, SerializeMode::WRITE, bool> {
22 static bool phoenix_serialize(FILE *& ds, bool & data);
23 static bool phoenix_serialize(FILE *& ds, bool * data, size_t nbElement);
24};
25
27template <>
28struct Serializer<FILE *, SerializeMode::READ, std::string> {
29 static bool phoenix_serialize(FILE *& ds, std::string & data);
30};
31
33template <>
34struct Serializer<FILE *, SerializeMode::WRITE, std::string> {
35 static bool phoenix_serialize(FILE *& ds, std::string & data);
36};
37
40
41#endif
static bool phoenix_serialize(FILE *&ds, bool &data)
Read the data bool in the file.
static bool phoenix_serialize(FILE *&ds, std::string &data)
Load a std::string from a file.
static bool phoenix_serialize(FILE *&ds, bool &data)
Save the data bool in the file.
static bool phoenix_serialize(FILE *&ds, std::string &data)
Save a std::string into a file.
Generic Serializer class.