CMS 3D CMS Logo

Public Types | Public Member Functions | Public Attributes

Primitives Class Reference

#include <Primitives.h>

List of all members.

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

Detailed Description

Definition at line 2 of file Primitives.h.


Member Typedef Documentation

Definition at line 10 of file Primitives.h.


Member Enumeration Documentation

Enumerator:
A 
B 
C 
D 
E 
F 

Definition at line 8 of file Primitives.h.

{ A =3, B, C= 101, D, E, F};

Constructor & Destructor Documentation

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();
}

Member Function Documentation

bool Primitives::operator!= ( const Primitives ref) const

Definition at line 42 of file Primitives.cc.

References operator==().

{
        return !operator==(ref);
}
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;
}

Member Data Documentation

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==().

Definition at line 5 of file Primitives.h.

Referenced by TestPayloadClass::DataToFile(), and operator==().

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==().