本文整理汇总了C++中StringVector::getSize方法的典型用法代码示例。如果您正苦于以下问题:C++ StringVector::getSize方法的具体用法?C++ StringVector::getSize怎么用?C++ StringVector::getSize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringVector
的用法示例。
在下文中一共展示了StringVector::getSize方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: indentStr
//.........这里部分代码省略.........
if ( ok ) {
// The smses
StringVector* smsVector = new StringVector();
if ( smsMessage ) {
// ExpandStringItemVector?
ok = false;
errorMessage = "Formating of smsmessage is not yet supported.";
} else if ( routeMessage ) {
if ( !wapLink ) {
ok = handleRouteMessage( this,
routeID, routeCreateTime,
language,
smsVector, model, signature,
errorMessage );
} else {
ok = handleWAPLinkSMS( this,
routeID, routeCreateTime,
language, smsVector,
model, signature,
errorMessage );
}
if ( ok ) {
mc2log << info << "XMLParserThread::xmlParseSMSFormatRequest ";
if ( !wapLink ) {
mc2log << "routeID " << routeID << " routeCreateTime "
<< routeCreateTime;
} else {
mc2log << "wapLink true";
}
mc2log << " signature " << signature << " model "
<< model->getName()
<< " nbrSMSes " << smsVector->getSize() << endl;
// Add smses
XMLSMSCommon::appendSMSList( sms_format_reply, reply, smsVector,
indentLevel + 1, indent );
} // Not ok handled below
} else if ( wayfinderDestinationSMS || wayfinderRouteSMS ) {
// Make sms data
WayfinderSMSRequest* wayReq = new WayfinderSMSRequest(
getNextRequestID() );
MC2Coordinate origin( wayfinderOriginLat, wayfinderOriginLon );
MC2Coordinate dest( wayfinderDestinationLat,
wayfinderDestinationLon );
wayReq->addMessage(
"DUMMY", "NO_WAY",
origin,
wayfinderOriginDescription.c_str(),
dest,
wayfinderDestinationDescription.c_str(),
signature, wayfinderSMSVersion );
smsVector->addLast( StringUtility::newStrDup( const_cast<char*>(
wayReq->getLastDestinationMessage() ) ) );
// Add sms
XMLSMSCommon::appendSMSList( sms_format_reply, reply, smsVector,
indentLevel + 1, indent );
delete wayReq;
} else if( wayfinderFavouriteSMS ) {
// Make sms data
WayfinderSMSRequest* wayReq = new WayfinderSMSRequest(
getNextRequestID() );