GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: tmp_project/DataStream/TESTS/TEST_SHADOK/Shadok_impl.h Lines: 4 4 100.0 %
Date: 2024-12-09 15:30:52 Branches: 0 0 - %

Line Branch Exec Source
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
12
///Function to load/save serialise and deserialise a Shadok in message/stream/file
13
/**	@param[out] ds : Stream to be used (message, File, etc)
14
 * 	@return true on success, false otherwise
15
*/
16
template<typename Stream, DataStreamMode::DataStreamMode Mode>
17
6
bool Shadok::data_stream(Stream & ds){
18
6
	bool b = DataStream<Stream, Mode, int>::data_stream(ds, p_age);
19
6
	b &= DataStream<Stream, Mode, std::string>::data_stream(ds, p_name);
20
6
	return b;
21
}
22
23
24
#endif