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 );
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 );
static bool isOId(const std::string &input)
bool operator==(const OId &rhs) const
static std::string const input
U second(std::pair< T, U > const &p)
std::pair< int, int > toPair() const
bool operator==(const QGLikelihoodParameters &lhs, const QGLikelihoodCategory &rhs)
Test if parameters are compatible with category.
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::vector< std::vector< double > > tmp
bool fromString(const std::string &s)
static std::string const source
void toOutputStream(std::ostream &os) const