Exemplo n.º 1
0
void
printBasicGenQueryOut( genQueryOut_t *genQueryOut, char *format ) {
    int i, j;
    if ( format == NULL || strlen( format ) == 0 ) {
        for ( i = 0; i < genQueryOut->rowCnt; i++ ) {
            if ( i > 0 ) {
                printf( "----\n" );
            }
            for ( j = 0; j < genQueryOut->attriCnt; j++ ) {
                char *tResult;
                tResult = genQueryOut->sqlResult[j].value;
                tResult += i * genQueryOut->sqlResult[j].len;
                printf( "%s\n", tResult );
            }
        }
    }
    else {
        for ( i = 0; i < genQueryOut->rowCnt; i++ ) {
            char *results[20];
            for ( j = 0; j < genQueryOut->attriCnt; j++ ) {
                char *tResult;
                tResult = genQueryOut->sqlResult[j].value;
                tResult += i * genQueryOut->sqlResult[j].len;
                results[j] = tResult;
            }

            printFormatted( format, results, j );
        }
    }
}
Exemplo n.º 2
0
bsl::ostream& StackTraceUtil::printFormatted(bsl::ostream&     stream,
                                             const StackTrace& stackTrace)
{
    for (int i = 0; i < stackTrace.length(); ++i) {
        stream << '(' << i << "): ";
        printFormatted(stream, stackTrace[i]);
        stream << bsl::endl;
    }

    return stream;
}
Exemplo n.º 3
0
std::ostream& Tarhan2013PFMBLProvisioning::print(std::ostream& o) const {
	return printFormatted(o,helpstr,pdesc);
}
Exemplo n.º 4
0
std::ostream& Shao2012FFProvisioning::print(std::ostream& o) const {
	return printFormatted(o,helpstr,pdesc);
}