CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Public Attributes | Friends

cscdqm::DCSBoardUtility Struct Reference

#include <CSCDQM_DCSBase.h>

List of all members.

Public Member Functions

 DCSBoardUtility (const DCSBoardType boardType_)

Static Public Member Functions

static DCSBoardType getDCSBoard (const std::string board)
 Get DCSBoardType from string.

Public Attributes

DCSBoardType boardType

Friends

std::ostream & operator<< (std::ostream &out, const DCSBoardUtility &b)

Detailed Description

DCSBoardType utility object type

Definition at line 41 of file CSCDQM_DCSBase.h.


Constructor & Destructor Documentation

cscdqm::DCSBoardUtility::DCSBoardUtility ( const DCSBoardType  boardType_) [inline]

Definition at line 44 of file CSCDQM_DCSBase.h.

: boardType(boardType_) { }

Member Function Documentation

static DCSBoardType cscdqm::DCSBoardUtility::getDCSBoard ( const std::string  board) [inline, static]

Get DCSBoardType from string.

Parameters:
boardBoard name in string format
Returns:
DCSBoardType for the string given

Definition at line 51 of file CSCDQM_DCSBase.h.

References cscdqm::ALCT, cscdqm::ANY, cscdqm::CFEB, and cscdqm::DMB.

                                                           {
      if (board.compare("ALCT")) return ALCT;
      if (board.compare("CFEB")) return CFEB;
      if (board.compare("DMB"))  return DMB;
      return ANY;
    }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const DCSBoardUtility b 
) [friend]

Definition at line 58 of file CSCDQM_DCSBase.h.

                                                                             {
      switch (b.boardType) {
        case ANY:
          return out << "ANY";
        case ALCT:
          return out << "ALCT";
        case CFEB:
          return out << "CFEB";
        case DMB:
          return out << "DMB";
      }
      return out << "?";
    }

Member Data Documentation

Definition at line 43 of file CSCDQM_DCSBase.h.