#include <stdarg.h>
#include <string>
Go to the source code of this file.
Functions | |
std::string | vsformat (const char *fmt, va_list ap) |
snprintf() the specified format string + varargs into a std::string. | |
std::string | sformat (const char *fmt,...) __attribute__((format(__printf__ |
snprintf() the specified format string + varargs into a std::string. |
convert varargs to a std::string as if by snprintf()
Definition in file sformat.H.
std::string sformat | ( | const char * | fmt, | |
... | ||||
) |
snprintf() the specified format string + varargs into a std::string.
Referenced by readConfig::addItemValue(), BorderWatchQt::BorderWatchQt(), LandmarkDB::build(), IntegerOrientationChannel::buildSubChans(), ByteCount::ByteCount(), SingleChannelBeoServer::check(), SDLdisplay::checkForKey(), SDLdisplay::checkForMouseClick(), ChipValidatorQt::chipClicked(), ColorBandChannel::ColorBandChannel(), convertToString(), DirectionChannel::DirectionChannel(), DirectionOpticalFlowChannel::DirectionOpticalFlowChannel(), DirectionSpatioTemporalChannel::DirectionSpatioTemporalChannel(), DisparityChannel::DisparityChannel(), PsychoDisplay::displayCircle(), PsychoDisplay::displayEyeTrackerCalibration(), PsychoDisplay::displayFilledCircle(), PsychoDisplay::displayFixation(), PsychoDisplay::displayFixationIcon(), SDLdisplay::displayImagePatch(), PsychoDisplay::displayMovingDotBackground(), PsychoDisplay::displayMovingDotTrain(), PsychoDisplay::displayRedDotFixation(), SDLdisplay::displaySDLSurfacePatch(), PsychoDisplay::displaySmoothPursuitCalibration(), PsychoDisplay::displaySmoothPursuitFancyTrace(), SDLdisplay::displaySurface(), PsychoDisplay::displayWhiteDotFixation(), SDLdisplay::displayYUVoverlay(), dispResults(), ContourChannel::doInput(), SimulationViewerStd::drawFOA(), SimulationViewerEyeHand::drawHand(), SimulationViewerHand::drawHand(), SimulationViewerStd::drawMegaCombo(), drawMeters(), SimulationViewerStd::drawTime(), contourRun::dumpEnergySigmoid(), SaccadeController::dumpQueues(), Gist_Navigation::evolve(), MexModelManager::exitMexFunction(), featureClusterVision< FLOAT >::fCVgetImageComplexStats(), featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), fillExperimentData(), Environment::finishBuild(), formatMapForDisplay(), GaborChannel::GaborChannel(), EyeTrackerISCAN::getCalibrationSet(), GenericFrameSpec::getDescription(), MexModelManager::getExtraMexArg(), getGroundTruth(), TestImages::getObject(), getSalImage(), getSearchCommand(), IntegerSimpleChannel::getSubmapName(), SingleSvChannel::getSubmapName(), ContourChannel::getSubmapName(), SingleChannel::getSubmapName(), DirectFeedChannel::getSubmapName(), SingleSvChannel::getSubmapNameShort(), SingleChannel::getSubmapNameShort(), IntegerSimpleChannel::getSubmapNameShort(), ContourChannel::getSubmapNameShort(), BeoSubSim::grabImage(), hack(), Landmark::init(), IntegerDirectionChannel::IntegerDirectionChannel(), IntensityChannel::IntensityChannel(), JunctionChannel::JunctionChannel(), linePlot(), Environment::load(), loadPlugin(), main(), mexArr2ImgVec(), mexArray2Image(), mexArray2RGBImage(), MgzEncoder::MgzEncoder(), MSTChannel::MSTChannel(), MultiConvolveChannel::MultiConvolveChannel(), multilinePlot(), GenericFrameSpec::nativeTypeName(), normalizeFloat(), normalizeFloatRgb(), operator<<(), OrientationChannel::OrientationChannel(), SpatialMetrics::paramChanged(), CmdlineOptionManager::parseCommandLineCore(), MexModelManager::parseMexCommandLine(), InputMbariFrameSeries::peekDims(), SpeechSynth::playWavFile(), plotData(), PngParser::PngParser(), CINNICstatsRun::pointAndFlood(), SimulationViewerStd::prepMapForDisplay(), ByteCount::prettyPrint(), printCoercionTable(), processLocalizerResults(), ColorbarsInput::readFrame(), ChannelFacetScalarComplex::readFrom(), ChannelFacetScalarSingle::readFrom(), InputMbariFrameSeries::readRGB(), reportTrialResults(), Staircase::reset1(), RetinaAdapter::save1(), Beobot2_GistSalLocalizerMasterI::saveLocalizerResults(), ComplexChannel::saveResults(), IntegerComplexChannel::saveResults(), IntegerSimpleChannel::saveResults(), SingleChannel::saveResults(), Landmark::saveTo(), AgentManagerB::setCurrentImage(), AgentManagerA::setCurrentImage(), readConfig::setFileValue(), StimListenerDML::setHostName(), readConfig::setItemValue(), StimListenerDML::start(), DC1394Grabber2::start1(), EyeTrackerUDP::start1(), Staircase::start2(), EyeTrackerEyeLink::startTracking(), EventLog::stop2(), EyeTrackerISCAN::stopTracking(), submain(), GSlocalizer::threadCompute(), SimTime::toString(), SimReqHandlerBase::toString(), SimReq::toString(), SimEventClockTick::toString(), SimEventUserWait::toString(), SimEventBreak::toString(), SimEvent::toString(), SimCallbackBase::toString(), SimEventTaskRelevanceMapOutput::toString(), SimEventInputFrame::toString(), SimEventGistOutput::toString(), SimEventAttentionGuidanceMapOutput::toString(), FrameRange::toString(), SimEventTargetMask::toString(), SimEventVisualCortexOutput::toString(), SimReqVCXfeatures::toString(), SimEventShapeEstimatorOutput::toString(), SimEventTargetsHit::toString(), SimEventSaliencyMapOutput::toString(), SimEventAttentionGateOutput::toString(), SimEventVisualBufferOutput::toString(), SimEventSaccadeStatus::toString(), SimEventWTAwinner::toString(), SimEventRetinaImage::toString(), EyeTracker::track(), OutputFrameSeries::update(), Beobot2_GistSalLocalizerMasterI::updateMessage(), BeoLogger::updateMessage(), Beobot2_GistSalLocalizerWorkerI::updateMessage(), Vector2mexArr(), GuidedSearchBiaser::visitComplexChannel(), OptimalGainsFinder::visitComplexChannel(), OptimalGainsFinder::visitSingleChannel(), GuidedSearchBiaser::visitSingleChannel(), vizDist(), SDLdisplay::waitForKey(), SDLdisplay::waitForKeyTimeout(), SDLdisplay::waitForMouseClick(), SDLdisplay::waitNextRequestedFrameTime(), SDLdisplay::waitNextRequestedVsync(), GentleBoost::writeAllTrees(), DiskDataStream::writeFrame(), ChannelFacetScalarSingle::writeTo(), ChannelFacetScalarComplex::writeTo(), and MexReturn::~MexReturn().
std::string vsformat | ( | const char * | fmt, | |
va_list | ap | |||
) |
snprintf() the specified format string + varargs into a std::string.
NOTE: The CALLER is responsible for doing va_end(ap); it is not done internally in vsformat().
Definition at line 47 of file sformat.C.
References ASSERT.