DmxCompareTypes Namespace Reference

Typedefs

typedef enum
DmxCompareTypes::ECompareType 
CompareType_t

Enumerations

enum  ECompareType { kUnknown, kBetter, kWorse, kSame }

Functions

std::string GetCompareTypeString (ECompareType comparetype)

Typedef Documentation


Enumeration Type Documentation

Enumerator:
kUnknown 
kBetter 
kWorse 
kSame 

Definition at line 24 of file DmxCompareTypes.h.

00024                              {
00025       kUnknown,
00026       kBetter,
00027       kWorse,
00028       kSame
00029    } CompareType_t;


Function Documentation

string DmxCompareTypes::GetCompareTypeString ( ECompareType  comparetype  ) 

Definition at line 19 of file DmxCompareTypes.cxx.

References kBetter, kSame, Msg::kWarning, kWorse, and MSG.

00019                                                                      {
00020 //  Purpose:  Convert enumerated planetype to an planetype string.
00021 //
00022 //  Argument: planetype: enumerated EPlaneType described in Dmx.h.
00023 //
00024 //  Return:   planetype string. If unknown, returns "UNKNOWN".
00025 //
00026 //  Contact:  B. Rebel
00027 //
00028    switch ( comparetype ) {
00029    case kBetter:  return "Better";
00030    case kWorse:    return "Worse";
00031    case kSame:    return "Same";
00032    default:
00033       MSG("Dmx",Msg::kWarning)
00034          << "Dmx::GetCompareTypeString with unknown value "
00035          << (int)comparetype << endl;
00036       return "UNKNOWN";
00037    }
00038 }


Generated on 16 Apr 2018 for loon by  doxygen 1.6.1