Example #1
0
 string toString() const
 {
    stringstream ss ;
    ss << "value:" << value.toString() ;
    ss << ",type:" << type ;
    if ( !alias.empty() )
    {
       ss << ",alias:" << alias.toString() ;
    }
    return ss.str() ;
 }
Example #2
0
 _qgmField _qgmPtrTable::getField( const qgmField &sub1,
                                   const qgmField &sub2 )
 {
    if ( sub1.empty() )
    {
       return sub2 ;
    }
    else if ( sub2.empty() )
    {
       return sub1 ;
    }
    else
    {
       string str( sub1.begin(), sub1.size() ) ;
       str += sub2.toString() ;
       qgmField merge ;
       getOwnField( str.c_str(), merge ) ;
       return merge ;
    }
 }