当前位置: 首页>>代码示例>>C++>>正文


C++ UpdateValue函数代码示例

本文整理汇总了C++中UpdateValue函数的典型用法代码示例。如果您正苦于以下问题:C++ UpdateValue函数的具体用法?C++ UpdateValue怎么用?C++ UpdateValue使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了UpdateValue函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: GetInt

void CRoiDlg::OnKillfocusROIHeight()
{
    m_Roi.height = GetInt(&m_HeightEdit);
    m_Roi.y = GetInt(&m_YEdit);
    UpdateValue(m_Roi.height, 1, GetMaxHeight());
    UpdateValue(m_Roi.y, 0, GetMaxY(), &m_SpinY);
    UpdateData(FALSE);
}
开发者ID:vinnie38170,项目名称:klImageCore,代码行数:8,代码来源:Roidlg.cpp

示例2: GetScope

TAstNode::ValueReturned TAstNodeForSentence::Execute() const
{
	auto secondChild = m_firstChild->GetSibling();
	auto thirdChild = secondChild->GetSibling();

	auto firstValue = m_firstChild->Execute();
	auto sencondValue = secondChild->Execute();
	//auto thirdValue = thirdChild->Execute();

	auto scope = GetScope();
	auto name = m_firstChild->GetFirstChild()->GetToken()->Name();
	auto type = TVariateManager::GetInstance()->GetVariateSrollUp(scope, name)->GetType();

	UpdateValue(type, scope, name, firstValue.value);
	
	if (GetValue(type, scope, name)<sencondValue.value)
	{
		Context::interpreterContext.SetNextNode(thirdChild->GetSibling().get());
	}
	else
	{
		Context::interpreterContext.SetNextNode(FindNextValidNode());
	}

	return ValueReturned{ 0, SYMBOL_TYPE::TYPE_VOID };
}
开发者ID:6VV,项目名称:NewTeachingBox,代码行数:26,代码来源:TAstNodeForSentence.cpp

示例3: UpdateColumnEntry

void EventDlg::UpdateColumnEntry(int iItem, int hcol, LPTSTR val)
{
	UINT icol =ImpEditCol::m_fileheadermap[hcol];  // see this garbage? a result of poor design
	CString s;

	if (ImpEditCol::eMeasType == icol)   // for string to numeric internal maps, handle the update differently
	{
		MEvent* pm = (MEvent*)m_List.GetItemData(iItem);
		if (pm)
		{
			CString szDisplayableResult;
			pm->UpdateMeasurementInfo(ImpEditCol::m_meacolmap[icol], val, szDisplayableResult);
			m_List.SetItemText(iItem,ImpEditCol::eMeasType,tMeasurementTypeImage((tMeasurementType)pm->m_vr._iMPMeasurementType));
		}	
	}
	else
	{
		if (UpdateValue(iItem , icol, val, s)) // icol is ImpEd enum
		{
			m_List.SetItemText(iItem , icol, s);
		}
	}


}
开发者ID:hnordquist,项目名称:FDMS,代码行数:25,代码来源:EventDlg.cpp

示例4: UpdateValue

void XaLibDom::UpdateElementValueByXPath(xmlDocPtr XmlDomDoc, VectorXPathExpr XPathExpr, VectorXPathValue XPathValue) {

	if (XmlDomDoc != NULL) {
    
		if(XPathExpr.size()==XPathValue.size()){

			for(unsigned n=0; n<XPathExpr.size(); ++n) {

				string xpath=XPathExpr.at(n);
				string value=XPathValue.at(n);

				UpdateValue(XmlDomDoc, (const xmlChar *)xpath.c_str(),(const xmlChar *)value.c_str());
			}

			xmlXPathFreeObject(xpathObj);
			xmlXPathFreeContext(xpathCtx);

		} else{

			cout<<"wrong number of value and expression";
		}
	
	} else {
	}
};
开发者ID:XAllegro,项目名称:Xaas,代码行数:25,代码来源:XaLibDom.cpp

示例5: UpdateValue

void CMyEdit::OnKillFocus(CWnd* pNewWnd)
{
	if (m_nType == EditUnits)
		UpdateValue();

	CEdit::OnKillFocus(pNewWnd);
}
开发者ID:ijprest,项目名称:WinDjVu,代码行数:7,代码来源:MyEdit.cpp

示例6: imshow

void COpenCVStitch2013Dlg::DoStitch()
{
	Mat stitched;
	vector<Mat> images;

	for (size_t i = 0; i < camera.size(); i++)
	{
		Mat image;
		camera[i] >> image;

		imshow(camera[i].GetName(), image);
		images.push_back(image);
	}
	if (2 <= camera.size())
	{
		int64 t = getTickCount();
		if (MyStitcher::Status::OK == stitcher.composePanorama(images, stitched)) {
			UpdateValue((getTickCount() - t) / getTickFrequency() * 1000);
			imshow(STITCHED, stitched);
			//if (writer.isOpened())
			//{
			//	writer << stitched;
			//}
		}
		else {
			MessageBox(L"内部処理でのエラー");
		}
		images.clear();
	}
	else
	{
		MessageBox(L"カメラが少ないためキャリブレートできません");
	}
}
开发者ID:neon-izm,项目名称:StitchCam,代码行数:34,代码来源:OpenCVStitch2013Dlg.cpp

示例7: SetMine

void SetMine(context_t *ctxt, int x, int y)
{
    ctxt->board[y*ctxt->columns + x].value = MINE;
    int i;
    for(i = 0; i < 8; ++i)
        UpdateValue(ctxt, x+moveX[i], y+moveY[i]);
}
开发者ID:poupou9779,项目名称:zSweeper,代码行数:7,代码来源:functions.c

示例8: ModifyXmlNodeValue

void ModifyXmlNodeValue(const char *NodeElement,char *NewValue)
{

	char *Value = NULL;
	char *Path = NULL;

	Value = malloc(sizeof(char) * (strlen(UDEVNAME) + strlen(NewValue) + 4));
	Path = malloc(sizeof(char) * (strlen(WEB_PATH) + strlen(DOC_NAME) + 2));
	memset(Path,0,sizeof(Path));
	memset(Value,0,sizeof(Value));

	strcpy(Value,UDEVNAME);
	strcat(Value,"(");
	strcat(Value,NewValue);//ip_address
	strcat(Value,")");

	strcpy(Path,WEB_PATH);
	strcat(Path,"/");
	strcat(Path,DOC_NAME);

	//path,  friendlyName
	UpdateValue(Path,NodeElement,Value);

	free(Path);
	Path = NULL;
	free(Value);
	Value = NULL;

	return;
}
开发者ID:ldzhangyu,项目名称:libupnp_music,代码行数:30,代码来源:FileHandle.c

示例9: UpdateValue

void CMeter2DGraphView::valueChanged()
{
   if( model() )
   {
      UpdateValue();
   }
}
开发者ID:L2-Max,项目名称:l2ChipTuner,代码行数:7,代码来源:Meter2DGraphView.cpp

示例10: UpdateValue

/*
============
idInternalCVar::Set
============
*/
void idInternalCVar::Set( const char *newValue, bool force, bool fromServer )
{
    if ( session && session->IsMultiplayer() && !fromServer )
    {
#ifndef ID_TYPEINFO
        if ( ( flags & CVAR_NETWORKSYNC ) && idAsyncNetwork::client.IsActive() )
        {
            common->Printf( "%s is a synced over the network and cannot be changed on a multiplayer client.\n", nameString.c_str() );
#if ID_ALLOW_CHEATS
            common->Printf( "ID_ALLOW_CHEATS override!\n" );
#else
            return;
#endif
        }
#endif
        if ( ( flags & CVAR_CHEAT ) && !cvarSystem->GetCVarBool( "net_allowCheats" ) )
        {
            common->Printf( "%s cannot be changed in multiplayer.\n", nameString.c_str() );
#if ID_ALLOW_CHEATS
            common->Printf( "ID_ALLOW_CHEATS override!\n" );
#else
            return;
#endif
        }
    }

    if ( !newValue )
    {
        newValue = resetString.c_str();
    }

    if ( !force )
    {
        if ( flags & CVAR_ROM )
        {
            common->Printf( "%s is read only.\n", nameString.c_str() );
            return;
        }

        if ( flags & CVAR_INIT )
        {
            common->Printf( "%s is write protected.\n", nameString.c_str() );
            return;
        }
    }

    if ( valueString.Icmp( newValue ) == 0 )
    {
        return;
    }

    valueString = newValue;
    value = valueString.c_str();
    UpdateValue();

    SetModified();
    cvarSystem->SetModifiedFlags( flags );
}
开发者ID:revelator,项目名称:Revelator-Doom3,代码行数:63,代码来源:CVarSystem.cpp

示例11: UpdateValue

void SpinButton::KeyDown(const char *bytes, int32 numBytes)
{
    if (numBytes == 1) {
        if (bytes[0] == B_UP_ARROW) {
            UpdateValue(Value() + 1);
        }
        else if (bytes[0] == B_DOWN_ARROW) {
            UpdateValue(Value() - 1);
        }
        if (bytes[0] == B_PAGE_UP) {
            UpdateValue(Value() + fStepValue);
        }
        else if (bytes[0] == B_PAGE_DOWN) {
            UpdateValue(Value() - fStepValue);
        }
        else if (bytes[0] == B_HOME) {
            UpdateValue(fMaxValue);
        }
        else if (bytes[0] == B_END) {
            UpdateValue(fMinValue);
        }
        else if (bytes[0] == B_ENTER || bytes[0] == B_SPACE) {
            UpdateValue(fDefaultValue);
        }
        else {
            BControl::KeyDown(bytes, numBytes);
        }
    }
    else {
        BControl::KeyDown(bytes, numBytes);
    }
}
开发者ID:diversys,项目名称:sanity,代码行数:32,代码来源:SpinButton.cpp

示例12: m_eVarFormat

//++ ------------------------------------------------------------------------------------
// Details:	CMICmnLLDBDebugSessionInfoVarObj constructor.
// Type:	Method.
// Args:	vrStrNameReal	- (R) The actual name of the variable, the expression.
//			vrStrName		- (R) The name given for *this var object.
//			vrValue			- (R) The LLDB SBValue object represented by *this object.
// Return:	None.
// Throws:	None.
//--
CMICmnLLDBDebugSessionInfoVarObj::CMICmnLLDBDebugSessionInfoVarObj( const CMIUtilString & vrStrNameReal, const CMIUtilString & vrStrName, const lldb::SBValue & vrValue )
:	m_eVarFormat( eVarFormat_Natural )
,	m_eVarType( eVarType_Internal )
,	m_strName( vrStrName )
,	m_SBValue( vrValue )
,	m_strNameReal( vrStrNameReal )
{
	UpdateValue();
}
开发者ID:Jean-Daniel,项目名称:lldb,代码行数:18,代码来源:MICmnLLDBDebugSessionInfoVarObj.cpp

示例13: ButtonAt

void SpinButton::MouseDown(BPoint point)
{
    if (IsEnabled()) {
        fButton = ButtonAt(point);
        if (fButton != kSpinButtonNone) {
            SetMouseEventMask(B_POINTER_EVENTS,
                              B_NO_POINTER_HISTORY | B_SUSPEND_VIEW_FOCUS);

            if (fButton == kSpinButtonUp)
                UpdateValue(Value() + 1);

            if (fButton == kSpinButtonDown)
                UpdateValue(Value() - 1);
        }
        fPoint = point;
    }
    BControl::MouseDown(point);
}
开发者ID:diversys,项目名称:sanity,代码行数:18,代码来源:SpinButton.cpp

示例14: UpdateValue

//++ ------------------------------------------------------------------------------------
// Details:	Set the var format type for *this object and upate the formatting.
// Type:	Method.
// Args:	None.
// Return:	MIstatus::success - Functional succeeded.
//			MIstatus::failure - Functional failed.
// Throws:	None.
//--
bool CMICmnLLDBDebugSessionInfoVarObj::SetVarFormat( const varFormat_e veVarFormat )
{
	if( veVarFormat >= eVarFormat_count )
		return MIstatus::failure;

	m_eVarFormat = veVarFormat;
	UpdateValue();
	return MIstatus::success;
}
开发者ID:Jean-Daniel,项目名称:lldb,代码行数:17,代码来源:MICmnLLDBDebugSessionInfoVarObj.cpp

示例15: UpdateData

void KMaterialUniformToolAlphaOperation::OnDeltaposSpinAlphabase(NMHDR *pNMHDR, LRESULT *pResult)
{
	LPNMUPDOWN pNMUpDown = reinterpret_cast<LPNMUPDOWN>(pNMHDR);
	m_dwAlphaTestValue = static_cast<DWORD>(LOWORD(m_ctlAlphaCmpBase.GetPos()));
	UpdateData(FALSE);

	UpdateValue();
	*pResult = 0;
}
开发者ID:viticm,项目名称:pap2,代码行数:9,代码来源:KMaterialUniformToolAlphaOperation.cpp


注:本文中的UpdateValue函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。