| 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 | ||
| 25 |