PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
data_stream_size.cpp
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
#include "
data_stream_size.h
"
8
9
11
15
bool
DataStream<size_t, DataStreamMode::WRITE, bool>::data_stream
(
size_t
& ds,
bool
& data){
16
ds +=
sizeof
(bool);
17
return
true
;
18
}
19
21
26
bool
DataStream<size_t, DataStreamMode::WRITE, bool>::data_stream
(
size_t
& ds,
bool
* data,
size_t
nbElement){
27
ds +=
sizeof
(bool)*nbElement;
28
return
true
;
29
}
30
31
33
37
bool
DataStream<size_t, DataStreamMode::WRITE, std::string>::data_stream
(
size_t
& ds, std::string & data){
38
ds += data.size() +
sizeof
(size_t);
//Number of char + sizeof(size_t) to store the number of char
39
return
true
;
40
}
41
42
data_stream_size.h
DataStream::data_stream
static bool data_stream(Stream &ds, T &data)
Dummy function to catch if a type is not specialised.
Definition:
data_stream_include.h:37
tmp_project
PhoenixInkscape
tmp_project
PhoenixDataStream
src
data_stream_size.cpp
Generated on Fri Mar 14 2025 15:50:10 for PhoenixPresentation by
1.9.1