这篇教程C++ GetValue函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中GetValue函数的典型用法代码示例。如果您正苦于以下问题:C++ GetValue函数的具体用法?C++ GetValue怎么用?C++ GetValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了GetValue函数的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: GetLyricSILPCTSTR GetLyricSI(FILE_INFO* info) { return GetValue(info, FIELD_LYRIC_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例2: GetValue/* NumberTextCtrl::isDecrement * Returns true if the entered value is a decrement *******************************************************************/bool NumberTextCtrl::isDecrement(){ return GetValue().StartsWith("--");}
开发者ID:Gaerzi,项目名称:SLADE,代码行数:7,
示例3: GetValue wxRect DimRect::GetValue(const wxSize& referenceSize) const { return GetValue(wxRect(0, 0, referenceSize.GetWidth(), referenceSize.GetHeight())); }
开发者ID:alexpana,项目名称:wxStyle,代码行数:3,
示例4: SetValuevoid wxSlider::SetValue( int value ){ if (GetValue() != value) GTKSetValue(value);}
开发者ID:erwincoumans,项目名称:wxWidgets,代码行数:5,
示例5: GetValuestring Message::GetMessageType(){ return GetValue(MessageTag::Type);}
开发者ID:buxinqiufeng,项目名称:UdpSocket,代码行数:4,
示例6: RGB2Lab// ------------------------------------------------------------------------double LABHistogram2D::GetValue(CvScalar bgr) { double lab[3]; RGB2Lab(bgr.val[2], bgr.val[1], bgr.val[0], lab); return GetValue(lab[1], lab[2]);}
开发者ID:githubbar,项目名称:NewVision,代码行数:6,
示例7: GetURLSILPCTSTR GetURLSI(FILE_INFO* info) { return GetValue(info, FIELD_URL_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例8: GetEncodestLPCTSTR GetEncodest(FILE_INFO* info) { return GetValue(info, FIELD_ENCODEST);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例9: GetAlbumArtistSILPCTSTR GetAlbumArtistSI(FILE_INFO* info) { return GetValue(info, FIELD_ALBM_ARTIST_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例10: GetOrigArtistSILPCTSTR GetOrigArtistSI(FILE_INFO* info) { return GetValue(info, FIELD_ORIG_ARTIST_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例11: GetComposerSILPCTSTR GetComposerSI(FILE_INFO* info) { return GetValue(info, FIELD_COMPOSER_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例12: GetWriterSILPCTSTR GetWriterSI(FILE_INFO* info) { return GetValue(info, FIELD_WRITER_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例13: GetCommissionSILPCTSTR GetCommissionSI(FILE_INFO* info) { return GetValue(info, FIELD_COMMISSION_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例14: CHECKNULLMgReader* MgdFeatureNumericFunctions::Execute(){ CHECKNULL((MgReader*)m_reader, L"MgdFeatureNumericFunctions.Execute"); CHECKNULL(m_customFunction, L"MgdFeatureNumericFunctions.Execute"); Ptr<MgReader> reader; MG_LOG_TRACE_ENTRY(L"MgdFeatureNumericFunctions::Execute"); // TODO: Can this be optimized to process them as they are read? // TODO: Should we put a limit on double buffer INT32 funcCode = -1; bool supported = MgdFeatureUtil::FindCustomFunction(m_customFunction, funcCode); if (supported) { // In case we have int64 but is a custom function use double to evaluate it. // Since we don't have a type which can make operations with big numbers we will fix only Unique/Min/Max functions // Even if we treat int64 different from double we don't solve the issue with truncation error. // If we emulate SUM adding two big numbers we will get overflow even we use int64, e.g.: // Int64 val1 = 9223372036854775806; // Int64 val2 = 9223372036854775807; // Int64 sum = val1 + val2; // the sum value will be -3 so is overflow error // In the future we will need to implement a type which can handle int64 numbers without getting overflow a sum/avg is calculated. // Since all other functions calculate a sum we will use double, at least to be able to get the right result for small numbers. if (!(m_type == MgPropertyType::Int64 && (funcCode == MINIMUM || funcCode == MAXIMUM || funcCode == UNIQUE))) { VECTOR values, distValues; while(m_reader->ReadNext()) { // TODO: Add support for Geometry extents double val = GetValue(); values.push_back(val); } // Calulate the distribution on the collected values CalculateDistribution(values, distValues); // Create FeatureReader from distribution values reader = GetReader(distValues); } else { VECTOR_INT64 values, distValues; while(m_reader->ReadNext()) { INT64 int64Val = 0; if (!m_reader->IsNull(m_propertyName)) int64Val = m_reader->GetInt64(m_propertyName); values.push_back(int64Val); } // Calulate the distribution on the collected values CalculateDistribution(values, distValues); // Create FeatureReader from distribution values Ptr<MgdInt64DataReaderCreator> drCreator = new MgdInt64DataReaderCreator(m_propertyAlias); reader = drCreator->Execute(distValues); } } else { // just return an emty reader VECTOR distValues; reader = GetReader(distValues); } return reader.Detach();}
开发者ID:asir6,项目名称:Colt,代码行数:65,
示例15: GetOtherLPCTSTR GetOther(FILE_INFO* info) { return GetValue(info, FIELD_OTHER);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例16: PushStatements inline void PushStatements(std::vector<Statement<REAL_T> > &storage) const { expr_m.PushStatements(storage); storage.push_back(Statement<REAL_T > (TANH, GetValue())); }
开发者ID:msupernaw,项目名称:ET4AD,代码行数:4,
示例17: GetFileTypeNameLPCTSTR GetFileTypeName(FILE_INFO* info) { return GetValue(info, FILED_FILE_TYPE_NAME);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
示例18: SortFunction//.........这里部分代码省略......... ExpectedTypeError1(theEnv,"sort",1,"deffunction name expecting two arguments"); ReturnExpression(theEnv,functionReference); return; } }#endif /*=====================================*/ /* If there are no items to be sorted, */ /* then return an empty multifield. */ /*=====================================*/ if (argumentCount == 1) { EnvSetMultifieldErrorValue(theEnv,returnValue); ReturnExpression(theEnv,functionReference); return; } /*=====================================*/ /* Retrieve the arguments to be sorted */ /* and determine how many there are. */ /*=====================================*/ theArguments = (DATA_OBJECT *) genalloc(theEnv,(argumentCount - 1) * sizeof(DATA_OBJECT)); for (i = 2; i <= argumentCount; i++) { EnvRtnUnknown(theEnv,i,&theArguments[i-2]); if (GetType(theArguments[i-2]) == MULTIFIELD) { argumentSize += GetpDOLength(&theArguments[i-2]); } else { argumentSize++; } } if (argumentSize == 0) { EnvSetMultifieldErrorValue(theEnv,returnValue); ReturnExpression(theEnv,functionReference); return; } /*====================================*/ /* Pack all of the items to be sorted */ /* into a data object array. */ /*====================================*/ theArguments2 = (DATA_OBJECT *) genalloc(theEnv,argumentSize * sizeof(DATA_OBJECT)); for (i = 2; i <= argumentCount; i++) { if (GetType(theArguments[i-2]) == MULTIFIELD) { tempMultifield = (struct multifield *) GetValue(theArguments[i-2]); for (j = GetDOBegin(theArguments[i-2]); j <= GetDOEnd(theArguments[i-2]); j++, k++) { SetType(theArguments2[k],GetMFType(tempMultifield,j)); SetValue(theArguments2[k],GetMFValue(tempMultifield,j)); } } else { SetType(theArguments2[k],GetType(theArguments[i-2])); SetValue(theArguments2[k],GetValue(theArguments[i-2])); k++; } } genfree(theEnv,theArguments,(argumentCount - 1) * sizeof(DATA_OBJECT)); functionReference->nextArg = SortFunctionData(theEnv)->SortComparisonFunction; SortFunctionData(theEnv)->SortComparisonFunction = functionReference; for (i = 0; i < argumentSize; i++) { ValueInstall(theEnv,&theArguments2[i]); } MergeSort(theEnv,(unsigned long) argumentSize,theArguments2,DefaultCompareSwapFunction); for (i = 0; i < argumentSize; i++) { ValueDeinstall(theEnv,&theArguments2[i]); } SortFunctionData(theEnv)->SortComparisonFunction = SortFunctionData(theEnv)->SortComparisonFunction->nextArg; functionReference->nextArg = NULL; ReturnExpression(theEnv,functionReference); theMultifield = (struct multifield *) EnvCreateMultifield(theEnv,(unsigned long) argumentSize); for (i = 0; i < argumentSize; i++) { SetMFType(theMultifield,i+1,GetType(theArguments2[i])); SetMFValue(theMultifield,i+1,GetValue(theArguments2[i])); } genfree(theEnv,theArguments2,argumentSize * sizeof(DATA_OBJECT)); SetpType(returnValue,MULTIFIELD); SetpDOBegin(returnValue,1); SetpDOEnd(returnValue,argumentSize); SetpValue(returnValue,(void *) theMultifield); }
开发者ID:pandaxcl,项目名称:CLIPS-unicode,代码行数:101,
示例19: GetValue////////////////////////////////////////////////////////////////////////// 描 述: 读取指定的配置项的字符串值,并允许指定未配置时的缺省值// 作 者: 邵凯田// 创建时间: 2011-11-13 16:20// 参数说明: @sGroup表示组名称(中括号的标题)// @sField表示组内的配置项名称// @szdefault表示读取失败(未配置的情况下)时的缺省值// 返 回 值: 配置值//////////////////////////////////////////////////////////////////////////SString SIniFile::GetKeyStringValue(SString sGroup, SString sField, SString szdefault /*= ""*/){ if(!IsKey(sGroup,sField)) return szdefault; return GetValue(sGroup,sField);}
开发者ID:song-kang,项目名称:Qt_RMS601-2,代码行数:15,
示例20: if//*========================================================================================//*函数: bool CSmartJZSRCTable::Convert(TSSmartDoc *pDoc, unsigned char *ucRawData)//*功能: 转换结构//*参数: 略//*返回: 是否成功//*说明: 虚基类程序//*========================================================================================bool CSmartJZSRCTable::Convert(int nAuthNo, TSSmartDoc *pDoc, unsigned char *ucRawData, char *pszAdjustCode){ CString strValue = "" ; CString strText = ""; CString strData = ""; char szDateTime[7]; CString strDealCode = "20"; //收费机 0232 上机上网机 if( !strcmp(pDoc->m_szMacCode, "0226") || !strcmp(pDoc->m_szMacCode, "0232") ) { strDealCode = "91"; } //增值机 else if( !strcmp(pDoc->m_szMacCode, "0201") ) { strDealCode = "90"; } CTime t = CTime::GetCurrentTime(); strText.Format("%04d-%02d-%02d %02d:%02d:%02d ", t.GetYear(), t.GetMonth(), t.GetDay(), t.GetHour(), t.GetMinute(), t.GetSecond()); sprintf(szDateTime, "%04d%02d", t.GetYear(), t.GetMonth()); m_strTableName.Format("Smart_JZSource%04d%02d", t.GetYear(), t.GetMonth()); strValue.Format("注册号:%.2X%.2X%.2X%.2X ",ucRawData[0],ucRawData[1],ucRawData[2],ucRawData[3]); strText += strValue ; GetValue(strValue, m_SRC.sMachineID); strValue.Format("%s", m_SRC.sMachineID); strData+= strValue; strValue.Format("扎帐流水:%d ", ucRawData[6]*256+ucRawData[7]); strText += strValue ; GetValue(strValue, m_SRC.nSettleInvoice); strValue.Format("%d", m_SRC.nSettleInvoice); strData+= strValue; if( !IsValidDateTime(&ucRawData[8]) ) { char szDateTime[24]; GetCurDateTime(szDateTime); strValue = szDateTime; strText += strValue ; GetValue(strValue, m_SRC.sSettleTime); } else { strValue.Format("扎帐时间:%04d-%02d-%02d %02d:%02d:%02d ",ucRawData[8]+2000,ucRawData[9],ucRawData[10],ucRawData[11],ucRawData[12],ucRawData[13]); strText += strValue ; GetValue(strValue, m_SRC.sSettleTime); } strValue.Format("%s", m_SRC.sSettleTime); strData+= strValue; strValue.Format("起始流水号:%d ",ucRawData[14]*256+ucRawData[15]); strText += strValue ; GetValue(strValue, m_SRC.nBeginInvoice); strValue.Format("%d", m_SRC.nBeginInvoice); strData+= strValue; strValue.Format("结束流水号:%d ",ucRawData[16]*256+ucRawData[17]); strText += strValue ; GetValue(strValue, m_SRC.nEndInvoice); strValue.Format("%d", m_SRC.nEndInvoice); strData+= strValue; strValue.Format("正常消费总笔数:%d ",ucRawData[18]*256+ucRawData[19]); strText += strValue ; GetValue(strValue, m_SRC.nDealCount); strValue.Format("%d", m_SRC.nDealCount); strData+= strValue; strValue.Format("正常消费总金额:%d ",ucRawData[20]+ucRawData[21]*256+ucRawData[22]*65536); strText += strValue ; GetValue(strValue, m_SRC.nDealAmount); strValue.Format("%d", m_SRC.nDealAmount); strData+= strValue; strValue.Format("冲正消费总笔数:%d ",ucRawData[23]*256+ucRawData[24]); strText += strValue ; GetValue(strValue, m_SRC.nCancelCount); strValue.Format("%d", m_SRC.nCancelCount); strData+= strValue; strValue.Format("冲正消费总金额:%d ",ucRawData[25]+ucRawData[26]*256+ucRawData[27]*65536); strText += strValue ; GetValue(strValue, m_SRC.nCancelAmount); strValue.Format("%d", m_SRC.nCancelAmount); strData+= strValue; strValue.Format("异常消费总笔数%d/n",ucRawData[28]*256+ucRawData[29]); strText += strValue ; GetValue(strValue, m_SRC.nExcepCount); strValue.Format("%d", m_SRC.nExcepCount); strData+= strValue; strValue.Format("异常消费总金额%d/n",ucRawData[30]+ucRawData[31]*256+ucRawData[32]*65536); strText += strValue ; GetValue(strValue, m_SRC.nExcepACount); strValue.Format("%d", m_SRC.nExcepACount); strData+= strValue; strValue.Format("其他交易总笔数:%d ",ucRawData[33]*256+ucRawData[34]); strText += strValue ; GetValue(strValue, m_SRC.nOtherCount); strValue.Format("%d", m_SRC.nOtherCount); strData+= strValue; strValue.Format("扎帐标记:%.2X ",ucRawData[35]); strText += strValue ; GetValue(strValue, m_SRC.nOuterkeeper); strValue.Format("%d", m_SRC.nOuterkeeper); strData+= strValue;//.........这里部分代码省略.........
开发者ID:Codiscope-Research,项目名称:ykt4sungard,代码行数:101,
示例21: loop//.........这里部分代码省略......... client.println("HTTP/1.1 200 OK"); client.println("Connection: close"); Serial.println("SAVE"); Serial.println(""); SD.remove(LOG); dataFile = SD.open(LOG, FILE_WRITE); if(dataFile) { // X=123-Y=45- dataFile.print("X="); dataFile.print(X); dataFile.print("-Y="); dataFile.print(Y); dataFile.print("-"); dataFile.close(); } digitalWrite(redLed,LOW); } //ajax RESET info else if (getStr.startsWith("/Reset/")) { digitalWrite(redLed,HIGH); client.println("HTTP/1.1 200 OK"); client.println("Connection: close"); Serial.println("RESET"); Serial.println(""); delay(1); servoX.detach(); servoY.detach(); digitalWrite(redLed,LOW); digitalWrite(resetPin, LOW); } // ajax SET info else if (getStr.startsWith("/Coordinate/")) { digitalWrite(redLed,HIGH); GetValue(); double temp = analogRead(thermRes); int phot = analogRead(photoRes); client.println("HTTP/1.1 200 OK"); client.println("Connection: close"); client.println(); // JSON client.print("{/"coordinate/":{/"X/":"); client.print(X); client.print(",/"Y/":"); client.print(Y); client.print("},/"temp/":"); client.print(GetTemp(temp),1); client.print(",/"light/":"); client.print(phot); client.print(",/"network/":/""); client.print(Ethernet.localIP()); client.print("/",/"file/":["); for (int i=0; i<HTTP_FILE; i++) { File dFile = SD.open(GET[i]); if (dFile) { if(i>0) { client.print(","); } client.print("{"); client.print("/"name/":/""); client.print(GET[i]); client.print("/",/"size/":"); client.print(dFile.size()); client.print("}"); } } client.println("]}");
开发者ID:hex7c0,项目名称:RadArduino2,代码行数:67,
示例22: GetValue// Returns the text content of the element.void ElementFormControlTextArea::GetInnerRML(Rocket::Core::String& content) const{ content = GetValue();}
开发者ID:1vanK,项目名称:libRocket-Urho3D,代码行数:5,
示例23: GetValue std::string SymbolTable::GetValue(char const* symbol, int length) const { return GetValue(std::string(symbol, length)); }
开发者ID:victorvon,项目名称:CSlim_VS2010,代码行数:4,
示例24: const VS_FIXEDFILEINFO *VersionInfo<string>::GetFixedFileInfo() const{ return static_cast<VS_FIXEDFILEINFO *>(GetValue(block_fixed_file_info, 0));}
开发者ID:philiplin4sp,项目名称:production-test-tool,代码行数:4,
示例25: GetColumnDescriptorbool EdiDocument::IsValidValue(size_t row, size_t col, bool doLog ) const { wxString result = GetColumnDescriptor(col).IsValid(GetValue(row, col)); if ( result.IsEmpty() && GetValue(row, col).IsEmpty() && IsColRequired(row, col) ) { result = "Value can not be empty."; } if ( 0 == result.Cmp(wxEmptyString ) && GetColumnDescriptor(col).GetType().Cmp("choice") == 0 && GetColumnDescriptor(col).GetCrossFieldName().Cmp(wxEmptyString) != 0) { const FieldDescriptor& desc = GetColumnDescriptor(col); int crossIdx = GetColumnIdx(desc.GetCrossFieldName()); const FieldDescriptor& crossDesc = GetColumnDescriptor(crossIdx); long crossId = 0; wxString crossValue = GetValue(row, GetColumnIdx(desc.GetCrossFieldName())); for ( int i=0; i<crossDesc.GetChoicesDesk().size(); i++ ) { if ( crossValue == crossDesc.PrepareValue(crossDesc.GetChoicesDesk()[i].choice) ) { crossId = crossDesc.GetChoicesDesk()[i].id; break; } } result = "Must be one of: "; for ( i=0; i<desc.GetChoicesDesk().size(); i++ ) { const IdList& ids = desc.GetChoicesDesk()[i].ids; for ( int j=0; j<ids.size(); j++ ) { if ( crossId == ids[j] ) { result += "'"+desc.GetChoicesDesk()[i].choice+"' "; if ( GetValue(row, col) == desc.PrepareValue(desc.GetChoicesDesk()[i].choice) ) { result = wxEmptyString; goto found; } } } }found:; } // later than and early than if ( result.IsEmpty() && (!GetColumnDescriptor(col).GetLaterThan().IsEmpty() || !GetColumnDescriptor(col).GetEarlyThan().IsEmpty()) ) { wxDateTime this_date; if ( !GetColumnDescriptor(col).GetLaterThan().IsEmpty() ) { wxDateTime l_date; size_t later_idx = GetColumnIdx(GetColumnDescriptor(col).GetLaterThan()); if ( l_date.ParseFormat(GetValue(row, later_idx), "%m/%d/%Y") ) { if ( this_date.ParseFormat(GetValue(row, col), "%m/%d/%Y") && !GetColumnDescriptor(col).GetLaterThan().IsEmpty() ) { if ( !this_date.IsLaterThan(l_date) ) { result = "Date is not later than " + GetColumnDescriptor(col).GetLaterThan() + " value [" + l_date.Format("%m/%d/%Y") + "]."; } } } } if ( !GetColumnDescriptor(col).GetEarlyThan().IsEmpty() ) { wxDateTime e_date; size_t early_idx = GetColumnIdx(GetColumnDescriptor(col).GetEarlyThan()); if ( e_date.ParseFormat(GetValue(row, early_idx), "%m/%d/%Y") ) { if ( this_date.ParseFormat(GetValue(row, col), "%m/%d/%Y") && !GetColumnDescriptor(col).GetEarlyThan().IsEmpty() ) { if ( !this_date.IsEarlierThan(e_date) ) { result = "Date is not earlier than " + GetColumnDescriptor(col).GetEarlyThan() + " value [" + e_date.Format("%m/%d/%Y") + "]."; } } } } } // check/then/else if ( result.IsEmpty() && !GetColumnDescriptor(col).GetCheckEmptyName().IsEmpty() ) { const FieldDescriptor& colDesc = GetColumnDescriptor(col); wxString checkValue = GetValue(row, GetColumnIdx( colDesc.GetCheckEmptyName())).Trim(false).Trim(true); wxString pattern = checkValue.IsEmpty() ? colDesc.GetEmptyThenPattern() : colDesc.GetEmptyElsePattern(); if ( !colDesc.MatchPattern(GetValue(row, col), pattern) ) { EdiDocument* d = (EdiDocument*)this; if ( pattern.IsEmpty() ) { d->SetValue(row, col, wxEmptyString); } else { if ( '!' != pattern[0] ) { d->SetValue(row, col, pattern); } else { result = "Value cannot be " + pattern.Mid(1); } } } } // check_value/check_value_then/check_value_else if ( result.IsEmpty() && !GetColumnDescriptor(col).GetCheckValueField().IsEmpty() ) { const FieldDescriptor& colDesc = GetColumnDescriptor(col); wxString checkValue; EdiDocument* d = (EdiDocument*)this; if ( 0 == colDesc.GetCheckValueField().SubString(0,6).CmpNoCase("header:") ) { checkValue = d->GetFieldByName(colDesc.GetCheckValueField().Mid(7)).GetValue().Trim(false).Trim(true); } else { checkValue = GetValue(row, GetColumnIdx(colDesc.GetCheckValueField())).Trim(false).Trim(true);//.........这里部分代码省略.........
开发者ID:Skier,项目名称:vault_repo,代码行数:101,
示例26: GetTechnicianSILPCTSTR GetTechnicianSI(FILE_INFO* info) { return GetValue(info, FIELD_TECHNICIAN_SI);}
开发者ID:suiheilibe,项目名称:STEP_mid,代码行数:3,
注:本文中的GetValue函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ GetValueFromNameValueList函数代码示例 C++ GetVListBoxComboPopup函数代码示例 |