Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DmxCompareTypes.cxx

Go to the documentation of this file.
00001 
00002 // $$
00003 //
00004 // DmxCompareTypes
00005 //
00006 // DmxCompareTypes defines enumerations for the comparison types 
00007 // and provides some general utilities in regards to those enumerations
00008 //
00009 // Author:  B. Rebel 2002.01.07
00010 //
00012 #include "DeMux/DmxCompareTypes.h"
00013 #include "MessageService/MsgService.h"
00014 
00015 CVSID("$Id: DmxCompareTypes.cxx,v 1.2 2006/06/21 01:18:18 rhatcher Exp $");
00016 
00017 // Definition of static methods
00018 
00019 string DmxCompareTypes::GetCompareTypeString(ECompareType comparetype) {
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 Mon Feb 15 11:06:37 2010 for loon by  doxygen 1.3.9.1