本文整理汇总了C++中UpdateInfo函数的典型用法代码示例。如果您正苦于以下问题:C++ UpdateInfo函数的具体用法?C++ UpdateInfo怎么用?C++ UpdateInfo使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UpdateInfo函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cOsdMenu
cSatipMenuInfo::cSatipMenuInfo()
: cOsdMenu(tr("SAT>IP Information")),
textM(""),
timeoutM(),
pageM(SATIP_DEVICE_INFO_GENERAL)
{
SetMenuCategory(mcText);
timeoutM.Set(eInfoTimeoutMs);
UpdateInfo();
SetHelp(tr("General"), tr("Pids"), tr("Filters"), tr("Bits/bytes"));
}
示例2: TransferDataFromWindow
void TileDlg::OnSize( wxCommandEvent &event )
{
if (m_bSetting)
return;
TransferDataFromWindow();
UpdateInfo();
if (m_pView)
m_pView->ShowGridMarks(m_area, m_iColumns, m_iRows, -1, -1);
}
示例3: QueueOnObject
void FIFOPlayerWindow::StartRecording()
{
// Start recording
FifoRecorder::GetInstance().StartRecording(m_frame_record_count->value(), [this] {
QueueOnObject(this, [this] { OnRecordingDone(); });
});
UpdateControls();
UpdateInfo();
}
示例4: UpdateInfo
void ViewSceneScreen::Update(float32 timeElapsed)
{
uint64 startTime = SystemTimer::Instance()->GetAbsoluteNano();
BaseScreen::Update(timeElapsed);
updateTime += (SystemTimer::Instance()->GetAbsoluteNano() - startTime);
// UpdateCamera(timeElapsed);
UpdateInfo(timeElapsed);
}
示例5: BuildDescriptionString
void IRCQuery::UpdateStatus( void )
{
BuildDescriptionString();
if (m_pChildWnd)
{
CHILDFRAMEPTR(m_pChildWnd)->UpdateStatus();
CHILDFRAMEPTR(m_pChildWnd)->m_HeaderView.UpdateHeader(m_DescriptionString);
UpdateInfo();
}
::PostMessage(m_pServer->m_pChildWnd->m_hWnd,WM_UPDATEINFOPANE, (WPARAM)0, (LPARAM)NULL);
g_pMainWnd->m_ServerListView.Update(this);
}
示例6: Reset
void CUIFactionWarWnd::Update()
{
inherited::Update();
if ( !IsShown() )
{
Reset();
}
if ( Device.dwTimeGlobal - m_previous_time > m_update_delay )
{
m_previous_time = Device.dwTimeGlobal;
UpdateInfo();
}
}
示例7: FitPosCB
void FitPosCB (Widget w, XtPointer clientData, XtPointer callData)
/* menu callback routine to fit position */
{
int isOK;
ImageDisplay *IDdata = (ImageDisplay *)clientData;
/* use last position selected */
image[CurImag].iFitted = FitPos(IDdata);
UpdateInfo(IDdata); /* write info in control info area*/
isOK = image[CurImag].iFitted==1;
if (doLog && isOK) DoLogger(); /* log if necessary */
FitPos(IDdata);
} /* End FitPosCB */
示例8: bsonCheckOnlyHasFields
Status UpdatePositionArgs::initialize(const BSONObj& argsObj) {
Status status = bsonCheckOnlyHasFields("UpdatePositionArgs",
argsObj,
kLegalUpdatePositionFieldNames);
if (!status.isOK())
return status;
// grab the array of changes
BSONElement updateArray;
status = bsonExtractTypedField(argsObj, kUpdateArrayFieldName, Array, &updateArray);
if (!status.isOK())
return status;
// now parse each array entry into an update
BSONObjIterator i(updateArray.Obj());
while(i.more()) {
BSONObj entry = i.next().Obj();
status = bsonCheckOnlyHasFields("UpdateInfoArgs",
entry,
kLegalUpdateInfoFieldNames);
if (!status.isOK())
return status;
OpTime ts;
status = bsonExtractOpTimeField(entry, kOpTimeFieldName, &ts);
if (!status.isOK())
return status;
// TODO(spencer): The following three fields are optional in 2.8, but should be made
// required or ignored in 3.0
long long cfgver;
status = bsonExtractIntegerFieldWithDefault(entry, kConfigVersionFieldName, -1, &cfgver);
if (!status.isOK())
return status;
OID rid;
status = bsonExtractOIDFieldWithDefault(entry, kMemberRIDFieldName, OID(), &rid);
if (!status.isOK())
return status;
long long memberID;
status = bsonExtractIntegerFieldWithDefault(entry, kMemberIdFieldName, -1, &memberID);
if (!status.isOK())
return status;
_updates.push_back(UpdateInfo(rid, ts, cfgver, memberID));
}
return Status::OK();
}
示例9: startDebugInfo
void EKFLocalization::step(void) {
_GoalDetector->step();
_LineDetector->step();
if (isTime2Run()) {
startDebugInfo();
UpdateInfo();
run();
endDebugInfo();
}
}
示例10: m_lpszPath
// copy constructor
CAttachInfo::CAttachInfo (const CAttachInfo& ai)
: m_lpszPath(NULL), m_lpszDesc(NULL), m_lpszID(NULL),
m_lpszType(NULL), m_lpszSubType(NULL),
m_lpszSuperType(NULL), m_lpszSuperSubType(NULL),
m_attEnc(RFC822_NONE_ENC), m_ulSize((UINT32) (-1)), m_ulDuration(0),
m_CDispProps((UINT32) 0, FALSE), m_CTypeProps((UINT32) 0, FALSE),
m_fIsVirtualName(FALSE)
{
const CStr2StrMapper& dp=ai.GetDispositionProps();
const CStr2StrMapper& cp=ai.GetContentTypeProps();
EXC_TYPE exc1=m_CDispProps.InitMap(dp.GetSize(), FALSE), exc2=m_CTypeProps.InitMap(cp.GetSize(), FALSE);
UpdateInfo(ai);
}
示例11: switch
eOSState cSatipMenuDeviceStatus::ProcessKey(eKeys keyP)
{
eOSState state = cOsdMenu::ProcessKey(keyP);
if (state == osUnknown) {
switch (keyP) {
case kOk: state = osBack; break;
default: if (timeoutM.TimedOut())
UpdateInfo();
state = osContinue;
break;
}
}
return state;
}
示例12: UpdateInfo
void FIFOPlayerWindow::OnFIFOLoaded()
{
FifoDataFile* file = FifoPlayer::GetInstance().GetFile();
auto object_count = FifoPlayer::GetInstance().GetFrameObjectCount();
auto frame_count = file->GetFrameCount();
m_frame_range_to->setMaximum(frame_count);
m_object_range_to->setMaximum(object_count);
m_frame_range_to->setValue(frame_count);
m_object_range_to->setValue(object_count);
UpdateInfo();
UpdateLimits();
UpdateControls();
}
示例13: main
int main()
{
int a[]={2,2,2,1,1};
float discount[]={1,0.95,0.9,0.8,0.75};
int len=sizeof(a)/sizeof(a[0]);
Info info=GetInfo(a,len);
float sum=0.0;
while(info.kind!=0)
{
sum+=info.kind*8*info.min*discount[info.kind-1];
printf("%f\n",sum);
UpdateInfo(a,len,info);
info=GetInfo(a,len);
}
printf("You need to pay %f EUR!\n",sum);
return 0;
}
示例14: Load
// 初期化
bool Player::Initialize( void )
{
// 読み込み
bool loadSuccess = Load( "DATA/CHR/Y2009/Y2009.IEM" );
if ( loadSuccess )
{
SetMotion( 1 ); // 仮
SetPos( INIT_POS );
SetAngle( INIT_ANGLE );
SetScale( INIT_SCALE );
UpdateInfo();
return true;
}
return false;
}
示例15: TLock
void CHostManager::UpdateHostInfo(const BroadCastFtpInfo &info)
{
TLock(m_locker);
j_string_t strHostId = info.host_id;
HostMap::iterator it = m_hostMap.find(strHostId);
if (it == m_hostMap.end())
{
DownLoadFtpInfo mInfo = {0};
FillInfo(info, mInfo);
m_hostMap[strHostId] = mInfo;
}
else
{
UpdateInfo(it->second);
}
TUnlock(m_locker);
}