![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
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 () |
| int | getAge () const |
| Get the age of the Shadok. More... | |
| std::string & | getName () |
| 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().
Here is the call graph for this function:| Shadok::Shadok | ( | const Shadok & | other | ) |
Copy constructor of Shadok.
| other | : class to copy |
Definition at line 18 of file Shadok.cpp.
References copyShadok().
Here is the call graph for this function:
|
virtual |
|
protected |
| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:| std::string& Shadok::getName | ( | ) |
| 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().
Here is the caller graph for this function:
|
private |
Definition of equal operator of Shadok.
| other | : class to copy |
Definition at line 31 of file Shadok.cpp.
References copyShadok().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
private |
Age the Shadok.
Definition at line 43 of file Shadok.h.
Referenced by copyShadok(), data_stream(), getAge(), initialisationShadok(), and setAge().
|
private |
Name of the Shadok.
Definition at line 45 of file Shadok.h.
Referenced by copyShadok(), data_stream(), getName(), initialisationShadok(), and setName().