CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
l1t::Mask Class Reference

#include <Mask.h>

Public Member Functions

std::string getId ()
 
unsigned getPort ()
 
std::string getProcRole ()
 
 Mask ()
 
 Mask (std::string id, std::string procRole)
 
void setPort (std::string id)
 
void setProcRole (std::string procRole)
 

Private Attributes

std::string id_
 
unsigned port_
 
std::string procRole_
 

Detailed Description

Definition at line 10 of file Mask.h.

Constructor & Destructor Documentation

l1t::Mask::Mask ( )
inline

Definition at line 13 of file Mask.h.

13 {};
l1t::Mask::Mask ( std::string  id,
std::string  procRole 
)

Definition at line 5 of file Mask.cc.

References id_, port_, and procRole_.

6 {
7  id_ = id;
8  port_ = boost::lexical_cast<int>(id.substr(id.find_last_not_of("0123456789")+1));
9  procRole_ = procRole;
10 }
std::string id_
Definition: Mask.h:23
unsigned port_
Definition: Mask.h:19
std::string procRole_
Definition: Mask.h:23

Member Function Documentation

std::string l1t::Mask::getId ( )
inline

Definition at line 19 of file Mask.h.

19 {return id_;};
std::string id_
Definition: Mask.h:23
unsigned l1t::Mask::getPort ( )
inline

Definition at line 18 of file Mask.h.

References port_.

18 { return port_; };
unsigned port_
Definition: Mask.h:19
std::string l1t::Mask::getProcRole ( )
inline

Definition at line 17 of file Mask.h.

References procRole_.

17 { return procRole_; };
std::string procRole_
Definition: Mask.h:23
void l1t::Mask::setPort ( std::string  id)

Definition at line 12 of file Mask.cc.

References id_, and port_.

13 {
14  id_ = id;
15  port_ = boost::lexical_cast<int>(id.substr(id.find_last_not_of("0123456789")+1));
16 }
std::string id_
Definition: Mask.h:23
unsigned port_
Definition: Mask.h:19
void l1t::Mask::setProcRole ( std::string  procRole)
inline

Definition at line 15 of file Mask.h.

References procRole_.

15 { procRole_ = procRole; };
std::string procRole_
Definition: Mask.h:23

Member Data Documentation

std::string l1t::Mask::id_
private

Definition at line 23 of file Mask.h.

Referenced by Mask(), and setPort().

unsigned l1t::Mask::port_
private

Definition at line 19 of file Mask.h.

Referenced by getPort(), Mask(), and setPort().

std::string l1t::Mask::procRole_
private

Definition at line 23 of file Mask.h.

Referenced by getProcRole(), Mask(), and setProcRole().