![]() |
PhoenixPresentation
2.0.0
Set of cmake function to automate presentation generation
|
test class for the data_stream automatic api More...
#include <Shadok.h>
Public Member Functions | |
template<typename Stream , DataStreamMode::DataStreamMode Mode> | |
bool | data_stream (Stream &ds) |
Function to load/save serialise and deserialise a Shadok in message/stream/file. More... | |
int | getAge () |
Get the age of the Shadok. More... | |
int | getAge () const |
Get the age of the Shadok. More... | |
std::string & | getName () |
Get the name of the Shadok. More... | |
const std::string & | getName () const |
Get the name of the Shadok. More... | |
Shadok & | operator= (const Shadok &other) |
Definition of equal operator of Shadok. More... | |
void | setAge (int age) |
Set the age of the Shadok. More... | |
void | setName (const std::string &name) |
Set the name of the Shadok. More... | |
Shadok () | |
Default constructeur of Shadok. More... | |
Shadok (const Shadok &other) | |
Copy constructor of Shadok. More... | |
virtual | ~Shadok () |
Destructeur of Shadok. More... | |
Protected Member Functions | |
void | copyShadok (const Shadok &other) |
Copy function of Shadok. More... | |
Private Member Functions | |
void | initialisationShadok () |
Initialisation function of the class Shadok. More... | |
Private Attributes | |
int | p_age |
Age the Shadok. More... | |
std::string | p_name |
Name of the Shadok. More... | |
Shadok::Shadok | ( | ) |
Default constructeur of Shadok.
Definition at line 11 of file Shadok.cpp.
References initialisationShadok().
Shadok::Shadok | ( | const Shadok & | other | ) |
Copy constructor of Shadok.
other | : class to copy |
Definition at line 18 of file Shadok.cpp.
References copyShadok().
|
virtual |
|
protected |
Copy function of Shadok.
other | : class to copy |
Definition at line 69 of file Shadok.cpp.
Referenced by operator=(), and Shadok().
bool Shadok::data_stream | ( | Stream & | ds | ) |
Function to load/save serialise and deserialise a Shadok in message/stream/file.
[out] | ds | : Stream to be used (message, File, etc) |
Definition at line 17 of file Shadok_impl.h.
References DataStream< Stream, Mode, T >::data_stream(), p_age, and p_name.
Referenced by DataStream< Stream, Mode, Shadok >::data_stream().
int Shadok::getAge | ( | ) |
int Shadok::getAge | ( | ) | const |
Get the age of the Shadok.
Definition at line 49 of file Shadok.cpp.
References p_age.
Referenced by checkEqualityConst(), testShadok(), testShadokFile(), and testShadokMessage().
std::string & Shadok::getName | ( | ) |
const std::string & Shadok::getName | ( | ) | const |
Get the name of the Shadok.
Definition at line 59 of file Shadok.cpp.
References p_name.
Referenced by checkEqualityConst(), testShadokFile(), and testShadokMessage().
|
private |
Definition of equal operator of Shadok.
other | : class to copy |
Definition at line 31 of file Shadok.cpp.
References copyShadok().
void Shadok::setAge | ( | int | age | ) |
Set the age of the Shadok.
age | : age of the Shadok |
Definition at line 39 of file Shadok.cpp.
References p_age.
Referenced by testShadokFile(), testShadokMessage(), and testShadokSize().
void Shadok::setName | ( | const std::string & | name | ) |
Set the name of the Shadok.
name | : name of the Shadok |
Definition at line 44 of file Shadok.cpp.
References p_name.
Referenced by testShadokFile(), testShadokMessage(), and testShadokSize().
|
private |
Age the Shadok.
Definition at line 39 of file Shadok.h.
Referenced by copyShadok(), data_stream(), getAge(), initialisationShadok(), and setAge().
|
private |
Name of the Shadok.
Definition at line 41 of file Shadok.h.
Referenced by copyShadok(), data_stream(), getName(), initialisationShadok(), and setName().