6 static const char*
OIDFMT =
"%04X-%08X";
20 m_containerId( oidPair.
first ),
21 m_itemId( oidPair.
second ){
25 m_containerId( contId),
30 m_containerId( rhs.m_containerId),
31 m_itemId( rhs.m_itemId ){
42 if(m_itemId != rhs.
m_itemId )
return false;
60 ::snprintf(text,
OIDSIZ,
OIDFMT, m_containerId, m_itemId );
61 return std::string(text);
65 if(source.size()>
OIDSIZ)
return false;
66 const char* ptr = source.c_str();
67 if( ::sscanf( ptr,
OIDFMT, &m_containerId, &m_itemId )==2 )
return true;
81 return (m_containerId == -1 || m_itemId == -1);
85 return std::make_pair( m_containerId, m_itemId );
bool operator==(const CaloTower &t1, const CaloTower &t2)
static bool isOId(const std::string &input)
bool operator==(const OId &rhs) const
U second(std::pair< T, U > const &p)
std::pair< int, int > toPair() const
OId & operator=(const OId &rhs)
static const size_t OIDSIZ
bool operator!=(const OId &rhs) const
static const char * OIDFMT
std::string toString(const std::pair< T, T > &aT)
std::string toString() const
std::vector< std::vector< double > > tmp
bool fromString(const std::string &s)
void toOutputStream(std::ostream &os) const