PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
Shadok_impl.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 __SHADOK_IMPL_H__
8
#define __SHADOK_IMPL_H__
9
10
#include "
Shadok.h
"
11
13
16
template
<
typename
Stream, DataStreamMode::DataStreamMode Mode>
17
bool
Shadok::data_stream
(Stream & ds){
18
bool
b =
DataStream<Stream, Mode, int>::data_stream
(ds,
p_age
);
19
b &=
DataStream<Stream, Mode, std::string>::data_stream
(ds,
p_name
);
20
return
b;
21
}
22
23
24
#endif
Shadok.h
Shadok::data_stream
bool data_stream(Stream &ds)
Function to load/save serialise and deserialise a Shadok in message/stream/file.
Definition:
Shadok_impl.h:17
Shadok::p_age
int p_age
Age the Shadok.
Definition:
Shadok.h:39
Shadok::p_name
std::string p_name
Name of the Shadok.
Definition:
Shadok.h:41
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
TESTS
TEST_SHADOK
Shadok_impl.h
Generated on Fri Mar 14 2025 15:50:10 for PhoenixPresentation by
1.9.1