// ============================================================================= // ============================================================================= int getinfo() { // // Get Info from TPC Table // if ( !tableExists("TPC") ) return 0; sw->start(); FERODBFieldPositions *fp = new FERODBFieldPositions(); try { Statement st(con); if ( arguments.pInfoID == true ) st.Execute(dbq->getSqlSelectTpcRow(arguments.pInfoSelectedID)); else st.Execute(dbq->getSqlSelectTpcData()); Resultset rs = st.GetResultset(); while (rs.Next()) { for ( uint32_t i=0; iTpcTable->getNcols(); i++ ) { cout << fp->TpcTable->getColName(i) << " : "; if (fp->TpcTable->isDate(i) ) cout << rs.Get(i+1) << endl; else if (fp->TpcTable->isString(i)) cout << rs.Get(i+1) << endl; else if (fp->TpcTable->isNumber(i)) cout << rs.Get(i+1) << endl; } cout << "==================" << endl; } cout << "Total fetched rows : " << rs.GetCount() << endl; } catch(exception &ex) { cout << ex.what() << endl; return 0; } return 1; } // ============================================================================= // ============================================================================= int gettags() { // // Get list of tags that can be put in db (if not already in) // TpcConfig tpc; cout << "----------------------------------------------------------------------------" << endl; for ( int i=0; i