这篇教程C++ summary函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中summary函数的典型用法代码示例。如果您正苦于以下问题:C++ summary函数的具体用法?C++ summary怎么用?C++ summary使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了summary函数的27个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: updateWindowTitlevoid MainWindow::openImage(const QString& imageFilename) { if (imageFilename.length() > 0) { YaffsReadInfo readInfo = mYaffsModel->openImage(imageFilename); if (readInfo.result) { QModelIndex rootIndex = mYaffsModel->index(0, 0); mUi->treeView->expand(rootIndex); mUi->statusBar->showMessage("Opened image: " + imageFilename); updateWindowTitle(); QString summary("<table>" / "<tr><td width=120>Files:</td><td>" + QString::number(readInfo.numFiles) + "</td></tr>" + "<tr><td width=120>Directories:</td><td>" + QString::number(readInfo.numDirs) + "</td></tr>" + "<tr><td width=120>SymLinks:</td><td>" + QString::number(readInfo.numSymLinks) + "</td></tr>" + "<tr><td colspan=2><hr/></td></tr>" + "<tr><td width=120>HardLinks:</td><td>" + QString::number(readInfo.numHardLinks) + "</td></tr>" + "<tr><td width=120>Specials:</td><td>" + QString::number(readInfo.numSpecials) + "</td></tr>" + "<tr><td width=120>Unknowns:</td><td>" + QString::number(readInfo.numUnknowns) + "</td></tr>" + "<tr><td colspan=2><hr/></td></tr>" + "<tr><td width=120>Errors:</td><td>" + QString::number(readInfo.numErrorousObjects) + "</td></tr></table>"); if (readInfo.eofHasIncompletePage) { summary += "<br/><br/>Warning:<br/>Incomplete page found at end of file"; } QMessageBox::information(this, "Summary", summary); } else { QString msg = "Error opening image: " + imageFilename; mUi->statusBar->showMessage(msg); QMessageBox::critical(this, "Error", msg); } setupActions(); }}
开发者ID:Abrahan668,项目名称:yaffey,代码行数:32,
示例2: terminate/* ARGSUSED */voidterminate(int sig){ summary(); _exit(sig == 0 ? 0 : 1);}
开发者ID:Der-Jan,项目名称:freebsd-crypto,代码行数:8,
示例3: loadDeckinline void loadDeck( const char * deck_file) { Opm::ParseContext parseContext; Opm::Parser parser; auto deck = parser.parseFile(deck_file, parseContext); Opm::EclipseState state( deck, parseContext ); Opm::Schedule schedule( deck, state.getInputGrid(), state.get3DProperties(), state.runspec().phases(), parseContext); Opm::SummaryConfig summary( deck, schedule, state.getTableManager( ), parseContext ); { std::stringstream ss; ss << deck; auto deck2 = parser.parseString(ss.str(), parseContext); if (deck.size() != deck2.size()) { std::cerr << "Deck size mismatch original:" << deck.size() << " new: " << deck2.size( ) << std::endl; std::exit( 1 ); } for (size_t index=0; index < deck.size(); index++) { const auto& kw1 = deck.getKeyword( index ); const auto& kw2 = deck2.getKeyword( index ); if (!kw1.equal( kw2 , true , true)) { std::cerr << "Keyword " << index << " different " << kw1.name() << " " << kw2.name() << std::endl; std::cerr << kw1 << std::endl; std::cerr << std::endl << "-----------------------------------------------------------------" << std::endl; std::cerr << kw2 << std::endl; std::exit( 1 ); } } }}
开发者ID:OPM,项目名称:opm-parser,代码行数:32,
示例4: terminate/* ARGSUSED */voidterminate(int signo){ summary(); /* (void)raise_default_signal(signo); */ /* _ */exit(127);}
开发者ID:andreiw,项目名称:UefiToolsPkg,代码行数:8,
示例5: mainint main(){ test_t *test = tests; for(; *test; test++) (*test)(); summary(); return 0;}
开发者ID:bobrippling,项目名称:meh,代码行数:7,
示例6: mainintmain (int argc, char *argv[]){ (void) setlocale (LC_ALL, "");#if !defined(TEXT_DOMAIN) /* Should be defined by cc -D */#define TEXT_DOMAIN "SYS_TEST" /* Use this only if it weren't */#endif /* (void) textdomain (TEXT_DOMAIN); */ setup (argc, argv); /* initialize and read productions */ TBITSET = NWORDS (ntoksz * LKFACTOR); tbitset = NWORDS (ntokens * LKFACTOR); mktbls (); cpres (); /* make table of which productions yield a */ /* given nonterminal */ cempty (); /* make a table of which nonterminals can match */ /* the empty string */ cpfir (); /* make a table of firsts of nonterminals */ stagen (); /* generate the states */ output (); /* write the states and the tables */ go2out (); hideprod (); summary (); callopt (); others (); return (0);}
开发者ID:pkgw,项目名称:iraf,代码行数:29,
示例7: terminate/* ARGSUSED */voidterminate(int notused){ summary(); _exit(0);}
开发者ID:Freeaqingme,项目名称:OpenBSD,代码行数:8,
示例8: CoordinateGridEquatorialCoordinateGrid::EquatorialCoordinateGrid( SkyComposite *parent ) : CoordinateGrid( parent, i18n("Equatorial Coordinate Grid" ) ){ KStarsData *data = KStarsData::Instance(); intro(); double eps = 0.1; double minRa = 0.0; double maxRa = 23.0; double dRa = 2.0; double minDec = -80.0; double maxDec = 90.0; double dDec = 20.0; double dDec2 = 4.0; double dRa2 = 0.2; double max, dec, dec2, ra, ra2; LineList* lineList; for ( ra = minRa; ra < maxRa; ra += dRa ) { for ( dec = -90.0; dec < maxDec - eps; dec += dDec ) { lineList = new LineList(); max = dec + dDec; if ( max > 90.0 ) max = 90.0; for ( dec2 = dec; dec2 <= max + eps; dec2 += dDec2 ) { SkyPoint* p = new SkyPoint( ra, dec2 ); p->EquatorialToHorizontal( data->lst(), data->geo()->lat() ); lineList->append( p ); } appendLine( lineList ); } } for ( dec = minDec; dec < maxDec + eps; dec += dDec ) { // Do not paint the line on the equator if ( dec < 0.1 && dec > -0.1 ) continue; // Adjust point density int nPoints = int(round( fabs(cos(dec* dms::PI / 180.0)) * dRa / dRa2 )); if ( nPoints < 5 ) nPoints = 5; double dRa3 = dRa / nPoints; for ( ra = minRa; ra < maxRa + eps; ra += dRa ) { lineList = new LineList(); for ( ra2 = ra; ra2 <= ra + dRa + eps; ra2 += dRa3 ) { SkyPoint* p = new SkyPoint( ra2, dec ); p->EquatorialToHorizontal( data->lst(), data->geo()->lat() ); lineList->append( p ); } appendLine( lineList ); } } summary();}
开发者ID:Bugsbane,项目名称:kstars,代码行数:59,
示例9: summaryx/* ARGSUSED */voidsummaryx(int notused){ int save_errno = errno; summary(); errno = save_errno;}
开发者ID:jyin0813,项目名称:OpenBSD-src,代码行数:9,
示例10: mainint main(int argc, char const *argv[]){ test(petri_module); test(dfile_module); test(gstor_module); test(trax_module); return summary();}
开发者ID:nadlere,项目名称:expertdb,代码行数:8,
示例11: catch_signalvoid catch_signal(int sig){ signal(sig, SIG_IGN); fprintf(stderr,"%s caught... jumping to summary./n", util_sigtoa(sig)); summary(USER_ABORT, Global->count, Global->first, Global->last, Global->print, Global->check );}
开发者ID:jandog8990,项目名称:asl-station-processor,代码行数:8,
示例12: throw/** /brief Display the inlined help */void lib_apps_t::display_help(const clineopt_arr_t &clineopt_arr) throw(){ // display a inlined help KLOG_STDERR(human_name() << " - " << summary() << "/n"); KLOG_STDERR(canon_name() << " version " << version() << " - list of possible options:/n" ); KLOG_STDERR(clineopt_helper_t::help_string(clineopt_arr) ); KLOG_STDERR(longdesc() << "/n");}
开发者ID:jeromeetienne,项目名称:neoip,代码行数:10,
示例13: publishbool MNotification::publish(){ mNotificationEventTypes.append(eventType()); mNotificationSummaries.append(summary()); mNotificationBodies.append(body()); mNotificationImages.append(image()); return false;}
开发者ID:jusa,项目名称:meegotouch-systemui,代码行数:8,
示例14: pos_in/* * Position input/output data streams before starting the copy. Device type * dependent. Seekable devices use lseek, and the rest position by reading. * Seeking past the end of file can cause null blocks to be written to the * output. */voidpos_in(void){ size_t bcnt; ssize_t nr; off_t cnt; int warned; /* If not a pipe, tape or tty device, try to seek on it. */ if (!(in.flags & (ISPIPE|ISTAPE)) && !isatty(in.fd)) { if (lseek(in.fd, in.offset * in.dbsz, SEEK_CUR) == -1) err(1, "%s", in.name); return; } /* * Read the data. If a pipe, read until satisfy the number of bytes * being skipped. No differentiation for reading complete and partial * blocks for other devices. */ for (bcnt = in.dbsz, cnt = in.offset, warned = 0; cnt;) { if ((nr = read(in.fd, in.db, bcnt)) > 0) { if (in.flags & ISPIPE) { if (!(bcnt -= nr)) { bcnt = in.dbsz; --cnt; } } else --cnt; continue; } if (nr == 0) { if (files_cnt > 1) { --files_cnt; continue; } errx(1, "skip reached end of input"); } /* * Input error -- either EOF with no more files, or I/O error. * If noerror not set die. POSIX requires that the warning * message be followed by an I/O display. */ if (ddflags & C_NOERROR) { if (!warned) { warn("%s", in.name); warned = 1; summary(); } continue; } err(1, "%s", in.name); }}
开发者ID:jyin0813,项目名称:OpenBSD-src,代码行数:62,
示例15: connect/// The thread main function.void InputChannelSender::operator()(){ try { connect(); while (connected_ != compute_hostnames_.size()) { poll_cm_events(); } data_source_.proceed(); time_begin_ = std::chrono::high_resolution_clock::now(); uint64_t timeslice = 0; sync_buffer_positions(); sync_data_source(true); report_status(); while (timeslice < max_timeslice_number_ && !abort_) { if (try_send_timeslice(timeslice)) { timeslice++; } poll_completion(); data_source_.proceed(); scheduler_.timer(); } // wait for pending send completions while (acked_desc_ < timeslice_size_ * timeslice + start_index_desc_) { poll_completion(); scheduler_.timer(); } sync_data_source(false); for (auto& c : conn_) { c->finalize(abort_); } L_(debug) << "[i" << input_index_ << "] " << "SENDER loop done"; while (!all_done_) { poll_completion(); scheduler_.timer(); } time_end_ = std::chrono::high_resolution_clock::now(); disconnect(); while (connected_ != 0) { poll_cm_events(); } summary(); } catch (std::exception& e) { L_(error) << "exception in InputChannelSender: " << e.what(); }}
开发者ID:demscher,项目名称:flesnet,代码行数:57,
示例16: mainint main() { char* c = (char*) 0x003f; test_plan(2); ok(1); ok(c); ok(1); summary();}
开发者ID:BackupTheBerlios,项目名称:cpptest-svn,代码行数:10,
示例17: mainint main() { struct student* stud = NULL; stud = allocate(); generate(stud); output(stud); summary(stud); deallocate(stud); return 0;}
开发者ID:MonkFallsInSnow,项目名称:CS261,代码行数:11,
示例18: mainvoid main(){ int arr[60] = { 5, 6, 7, 2, 5, 3, 9, 4, 6, 4, 4, 8, 0, 6, 3, 7, 0, 2, 0, 8, 7, 8, 0, 5, 8, 7, 3, 9, 7, 8, 3, 5, 2, 9, 7, 5, 3, 8, 7, 2 , 7, 4, 7, 2, 5, 3, 8, 7, 5, 6, 4, 7, 6, 1, 6, 5, 7, 7, 7, 6 }; printf(" C++ super函数代码示例 C++ summarize函数代码示例
|