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

DmxPlaneTypes.cxx

Go to the documentation of this file.
00001 
00002 // $Id: DmxPlaneTypes.cxx,v 1.2 2006/06/21 01:18:18 rhatcher Exp $
00003 //
00004 // DmxPlaneTypes
00005 //
00006 // DmxTypes 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/DmxPlaneTypes.h"
00013 #include "MessageService/MsgService.h"
00014 
00015 CVSID("$Id: DmxPlaneTypes.cxx,v 1.2 2006/06/21 01:18:18 rhatcher Exp $");
00016 
00017 // Definition of static methods
00018 
00019 string DmxPlaneTypes::GetPlaneTypeString(EPlaneType planetype) {
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 ( planetype ) {
00029    case kShower:  return "Shower";
00030    case kMuon:    return "Muon";
00031    default:
00032       MSG("Dmx",Msg::kWarning)
00033          << "Dmx::GetPlaneTypeString with unknown value "
00034          << (int)planetype << endl;
00035       return "UNKNOWN";
00036    }
00037 }

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