这篇教程C++ FindNode函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中FindNode函数的典型用法代码示例。如果您正苦于以下问题:C++ FindNode函数的具体用法?C++ FindNode怎么用?C++ FindNode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了FindNode函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: FindNodeCTSTR LocaleStringLookup::LookupString(CTSTR lookupVal){ StringLookupNode *child = FindNode(lookupVal); if(!child) return TEXT("(string not found)"); if(!child->leaf) return TEXT("(lookup error)"); return child->leaf->strValue;}
开发者ID:373137461,项目名称:OBS,代码行数:11,
示例2: FindNodeVOID Map<K,V,KeyElementTraits, ValueElementTraits, ThreadingModel>::Add( CONST K& Key, CONST V& Value ){ Node* pNode = FindNode(Key); if( pNode == 0 ) { m_NodeCount++; Insert( Key, Value ); } else pNode->m_Value = Value;}
开发者ID:anareboucas,项目名称:nanook,代码行数:11,
示例3: FindNodestring XMLFile::Get( const string& path ) { xmlNodePtr cur; // Look for the Node cur = FindNode( path ); if( cur ) { // Found the path return NodeToString(xmlPtr,cur);; } else { return ""; }}
开发者ID:akollias,项目名称:Epiar,代码行数:11,
示例4: timeMySensorsBase::_tMySensorNode* MySensorsBase::InsertNode(const int nodeID){ _tMySensorNode mNode; mNode.nodeID = nodeID; mNode.SketchName = "Unknown"; mNode.SketchVersion = "1.0"; mNode.lastreceived = time(NULL); m_nodes[mNode.nodeID] = mNode; Add2Database(mNode.nodeID, mNode.SketchName, mNode.SketchVersion); return FindNode(nodeID);}
开发者ID:saeedhadi,项目名称:domoticz,代码行数:11,
示例5: Deletevoid CTopologyNodeList::Delete (CTopologyNode *pNode)// Delete//// Delete the given node { int iIndex; if (FindNode(pNode, &iIndex)) m_List.Delete(iIndex); }
开发者ID:Sdw195,项目名称:Transcendence,代码行数:11,
示例6: LogMsgvoid XMLFile::Set( const string& path, const int value ) { // Convert the int to a string before saving it. string stringvalue; stringstream val_ss; val_ss << value; val_ss >> stringvalue; LogMsg(INFO,"Overriding Option['%s'] from '%s' to '%s'",path.c_str(),Get(path).c_str(),stringvalue.c_str()); xmlNodePtr p = FindNode(path,true); xmlNodeSetContent(p, BAD_CAST stringvalue.c_str() ); assert( stringvalue == Get(path));}
开发者ID:markettwp,项目名称:Epiar,代码行数:11,
示例7: FindNodeBOOL Set<K,ElementTraits>::Remove( CONST K& Key ){ Node* pNode = FindNode(Key); if (pNode == 0) return false; m_NodeCount--; Delete(pNode); return true;}
开发者ID:anareboucas,项目名称:nanook,代码行数:11,
示例8: FindValueNode* FindValue(HashTable* hashTable, char* key){ if(hashTable != NULL) { int hashOffset = GenerateHash((char*)key) % hashTable->totalBucketCount; if(hashTable->nodeTable[hashOffset] != NULL) { return FindNode(hashTable->nodeTable[hashOffset], key); } } return NULL;}
开发者ID:sefbkn,项目名称:Randoms,代码行数:12,
示例9: FindNode//-----------------------------------------------------------------------------bool ConicModel::Read(TiXmlNode* node){ TiXmlNode* sensor = FindNode(node,"sensor"); TiXmlNode* image_size = FindNode(sensor,"image_size"); m_width = ReadNodeAs<unsigned int>(image_size,"width"); m_height= ReadNodeAs<unsigned int>(image_size,"height"); TiXmlNode* ppa = FindNode(sensor,"ppa"); m_cPPA = ReadNodeAs<double>(ppa,"c"); m_lPPA = ReadNodeAs<double>(ppa,"l"); m_focal= ReadNodeAs<double>(ppa,"focale"); TiXmlNode* disto = FindNode(sensor,"distortion"); if(m_distortion) delete m_distortion; if(disto) { m_distortion = new DistortionPolynom; m_distortion->Read(disto); } return true;}
开发者ID:IGNF,项目名称:libOri,代码行数:22,
示例10: FindNodeSpatialGraphKDNode* SpatialGraph::FindNode(SpatialGraphKDNode* node, const BoundingBox& bbox){ if (node == NULL) return NULL; //check if this bbox fits entirely within our node if (node->BBox.Contains(bbox) == Within) { //Check our children SpatialGraphKDNode* retVal = FindNode(node->LHC, bbox ); if (retVal != NULL) return retVal; retVal = FindNode(node->RHC, bbox); if( retVal != NULL ) return retVal; //otherwise, return ourselves return node; } return NULL;}
开发者ID:MrSnowman,项目名称:angel2d,代码行数:21,
示例11: FullFindNodenode* FullFindNode(HWND hwnd){ unsigned short tag; node *found; for (tag=0; tag<TAGS; tag++) { found = FindNode(hwnd, tag); if (found) return found; } return NULL;}
开发者ID:Jasu,项目名称:HashTWM,代码行数:12,
示例12: GetKiCadLayervoid PCB_TEXT::Parse( XNODE* aNode, int aLayer, wxString aDefaultMeasurementUnit, wxString aActualConversion ){ XNODE* lNode; wxString str; m_PCadLayer = aLayer; m_KiCadLayer = GetKiCadLayer(); m_positionX = 0; m_positionY = 0; m_name.mirror = 0; // Normal, not mirrored lNode = FindNode( aNode, wxT( "pt" ) ); if( lNode ) SetPosition( lNode->GetNodeContent(), aDefaultMeasurementUnit, &m_positionX, &m_positionY, aActualConversion ); lNode = FindNode( aNode, wxT( "rotation" ) ); if( lNode ) { str = lNode->GetNodeContent(); str.Trim( false ); m_rotation = StrToInt1Units( str ); } aNode->GetAttribute( wxT( "Name" ), &m_name.text ); str = FindNodeGetContent( aNode, wxT( "isFlipped" ) ); if( str == wxT( "True" ) ) m_name.mirror = 1; lNode = FindNode( aNode, wxT( "textStyleRef" ) ); if( lNode ) SetFontProperty( lNode, &m_name, aDefaultMeasurementUnit, aActualConversion );}
开发者ID:Caerbannog,项目名称:kicad-git-bzr,代码行数:40,
示例13: SetFontPropertyvoid SetFontProperty( XNODE* aNode, TTEXTVALUE* aTextValue, wxString aDefaultMeasurementUnit, wxString aActualConversion ){ wxString n, propValue; aNode->GetAttribute( wxT( "Name" ), &n ); while( aNode->GetName() != wxT( "www.lura.sk" ) ) aNode = aNode->GetParent(); aNode = FindNode( aNode, wxT( "library" ) ); if( aNode ) aNode = FindNode( aNode, wxT( "textStyleDef" ) ); if( aNode ) { while( true ) { aNode->GetAttribute( wxT( "Name" ), &propValue ); propValue.Trim( false ); propValue.Trim( true ); if( propValue == n ) break; aNode = aNode->GetNext(); } if( aNode ) { aNode = FindNode( aNode, wxT( "font" ) ); if( aNode ) { if( FindNode( aNode, wxT( "fontHeight" ) ) ) // // SetWidth(iNode.ChildNodes.FindNode('fontHeight').Text, // // DefaultMeasurementUnit,tv.TextHeight); // Fixed By Lubo, 02/2008 SetHeight( FindNode( aNode, wxT( "fontHeight" ) )->GetNodeContent(), aDefaultMeasurementUnit, &aTextValue->textHeight, aActualConversion ); if( FindNode( aNode, wxT( "strokeWidth" ) ) ) SetWidth( FindNode( aNode, wxT( "strokeWidth" ) )->GetNodeContent(), aDefaultMeasurementUnit, &aTextValue->textstrokeWidth, aActualConversion ); } } }}
开发者ID:kinnison,项目名称:kicad-source-mirror,代码行数:55,
示例14: DelData/************************************************************************** //Function: DelData //Description: 根据关键字删除一条记录 //Calls: //Called by: //Input: tKey 记录关键字 //Output: //Return: 返回值 说明 0 成功 负值 失败 //Others: //Author: fanyh Email: [email C++ FindObject函数代码示例 C++ FindNextFileW函数代码示例
|