#include <Primitives.h>
Public Types | |
enum | TestEnum { A = 3, B, C = 101, D, E, F } |
typedef int | TestTypedef |
Public Member Functions | |
bool | operator!= (const Primitives &ref) const |
bool | operator== (const Primitives &ref) const |
Primitives () | |
Primitives (int payloadID) | |
Public Attributes | |
double | testDouble |
TestEnum | testEnum |
int | testInt |
long int | testLongInt |
std::string | testString |
TestTypedef | testTypedef |
Definition at line 2 of file Primitives.h.
typedef int Primitives::TestTypedef |
Definition at line 10 of file Primitives.h.
enum Primitives::TestEnum |
Primitives::Primitives | ( | ) |
Definition at line 15 of file Primitives.cc.
{}
Primitives::Primitives | ( | int | payloadID | ) |
Definition at line 2 of file Primitives.cc.
References testString.
: testInt(payloadID), testLongInt(payloadID), testDouble(payloadID), testString(), testEnum(), testTypedef(payloadID) { std::stringstream st; st << payloadID; testString = st.str(); }
bool Primitives::operator!= | ( | const Primitives & | ref | ) | const |
bool Primitives::operator== | ( | const Primitives & | ref | ) | const |
Definition at line 17 of file Primitives.cc.
References testDouble, testInt, testLongInt, testString, and testTypedef.
Referenced by operator!=().
{ if(testInt != ref.testInt) { return false; } if(testLongInt != ref.testLongInt) { return false; } if(testDouble != ref.testDouble) { return false; } if(testTypedef != ref.testTypedef) { return false; } if(testString.compare(ref.testString) != 0) { return false; } return true; }
double Primitives::testDouble |
Definition at line 6 of file Primitives.h.
Referenced by TestPayloadClass::DataToFile(), and operator==().
Definition at line 9 of file Primitives.h.
Definition at line 4 of file Primitives.h.
Referenced by TestPayloadClass::DataToFile(), and operator==().
long int Primitives::testLongInt |
Definition at line 5 of file Primitives.h.
Referenced by TestPayloadClass::DataToFile(), and operator==().
std::string Primitives::testString |
Definition at line 7 of file Primitives.h.
Referenced by TestPayloadClass::DataToFile(), operator==(), and Primitives().
Definition at line 11 of file Primitives.h.
Referenced by TestPayloadClass::DataToFile(), and operator==().