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

DmxStatTypes.cxx

Go to the documentation of this file.
00001 
00002 // $Id: DmxStatTypes.cxx,v 1.2 2006/06/21 01:18:18 rhatcher Exp $
00003 //
00004 // DmxStatTypes
00005 //
00006 // DmxStatTypes defines enumerations for the legal plane types and statistics
00007 // and provides some general utilities in regards to those enumerations
00008 //
00009 // Author:  B. Rebel 2001.07.09
00010 //
00012 #include "DeMux/DmxStatTypes.h"
00013 #include "MessageService/MsgService.h"
00014 
00015 CVSID("$Id: DmxStatTypes.cxx,v 1.2 2006/06/21 01:18:18 rhatcher Exp $");
00016 
00017 // Definition of static methods
00018 
00019 string DmxStatTypes::GetStatTypeString(EStatType statistic) {
00020 //  Purpose:  Convert enumerated statistic to an statistic string.
00021 //
00022 //  Argument: statistic: enumerated EStatistic described in Dmx.h.
00023 //
00024 //  Return:   statistic string. If unknown, returns "UNKNOWN".
00025 //
00026 //  Contact:  B. Rebel
00027 //
00028    switch ( statistic ) {
00029    case kChi2:   return "Chi2";
00030    case kRms:    return "RMS";
00031    default:
00032       MSG("Dmx",Msg::kWarning)
00033          << "Dmx::GetStatisticString with unknown value "
00034          << (int)statistic << endl;
00035       return "UNKNOWN";
00036    }
00037 }

Generated on Mon Feb 15 11:06:38 2010 for loon by  doxygen 1.3.9.1