Lines Matching refs:ptrTree
19 static PDmtTree ptrTree;
288 * Get DM tree to global tree variable (ptrTree)
292 if (ptrTree != NULL) return ptrTree;
293 if ( (e=DmtTreeFactory::GetSubtree(principal, s_strRootPath.c_str(), ptrTree)) != NULL ) {
296 return ptrTree;
304 if ( ptrTree != NULL ){
305 if ( (e=ptrTree->GetNode( szNodeName, ptrNode)) != NULL ) {
458 if ( ptrTree == NULL ) {
462 if ( (e=ptrTree->CreateInteriorNode( szNode, ptrNode )) == NULL ) {
474 if ( ptrTree == NULL ) {
478 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( szData ) )) == NULL ) {
490 if ( ptrTree == NULL ) {
496 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( intValue ) )) == NULL ) {
508 if ( ptrTree == NULL ) {
514 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( bValue ) )) == NULL ) {
535 if ( ptrTree == NULL ) {
539 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( (const byte*)binStr.c_str(), len ) )) == NULL ) {
551 if ( ptrTree == NULL ) {
555 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( ) )) == NULL ) {
568 if ( ptrTree == NULL ) {
572 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( szData, SYNCML_DM_DATAFORMAT_FLOAT) ) ) == NULL ) {
584 if ( ptrTree == NULL ) {
588 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( szData, SYNCML_DM_DATAFORMAT_DATE) ) ) == NULL ) {
600 if ( ptrTree == NULL ) {
604 if ( (e=ptrTree->CreateLeafNode( szNode, ptrNode, DmtData( szData, SYNCML_DM_DATAFORMAT_TIME) ) ) == NULL ) {
614 if ( ptrTree == NULL ) {
618 if ( (e=ptrTree->DeleteNode( szNode )) == NULL ) {
628 if ( ptrTree == NULL ) {
632 if ( (e=ptrTree->RenameNode( szNode, szNewName )) == NULL ) {
915 ptrTree = NULL;
927 ptrTree = NULL;
929 if ( (e=DmtTreeFactory::GetSubtreeEx(principal, s_strRootPath.c_str(), DmtTreeFactory::LOCK_TYPE_EXCLUSIVE, ptrTree)) != NULL ) {
939 ptrTree = NULL;
946 if (ptrTree != NULL) {
947 if ((e=ptrTree->Flush()) == NULL) {
961 if (ptrTree == NULL) {
964 if ( (e=ptrTree->Begin()) == NULL ) {
974 if (!s_bAtomic || ptrTree == NULL) {
976 } else if ( (e=ptrTree->Commit()) == NULL) {
986 if ( !s_bAtomic || ptrTree == NULL) {
988 } else if ( (e=ptrTree->Rollback()) == NULL) {
999 if (ptrTree == NULL) {
1003 if ( (e=ptrTree->Clone(szNode, szNewNode)) == NULL) {
1013 if (ptrTree == NULL) {
1018 if ( (e=ptrTree->GetChildValuesMap(szNode, oMap)) == NULL) {
1038 if (ptrTree == NULL) {
1053 if ( (e=ptrTree->SetChildValuesMap(szNode, oMap)) == NULL ) {
1239 ptrTree = NULL;
1242 if ( (e=DmtTreeFactory::GetTree(principal, ptrTree)) != NULL) {
1247 // if ( (e=ptrTree->Begin()) != NULL) {
1249 // ptrTree = NULL;
1256 if ( ptrTree->IsValidNode( strPath.c_str() ) ) {
1257 if ( (e=ptrTree->DeleteNode(strPath.c_str())) != NULL) {
1259 // ptrTree->Rollback();
1260 ptrTree = NULL;
1266 if ( (e=ptrTree->CreateInteriorNode(strPath.c_str(), ptrNode)) != NULL) {
1268 // ptrTree->Rollback();
1269 ptrTree = NULL;
1277 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("80")) ) != NULL) {
1279 // ptrTree->Rollback();
1280 ptrTree = NULL;
1287 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("SampleServer")) ) == NULL) {
1291 // ptrTree->Rollback();
1292 ptrTree = NULL;
1299 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("1")) ) == NULL) {
1303 // ptrTree->Rollback();
1304 ptrTree = NULL;
1316 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("http://10.72.34.36/Manage")) ) != NULL) {
1318 // ptrTree->Rollback();
1319 ptrTree = NULL;
1327 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("syncml:auth-Basic")) ) != NULL) {
1329 // ptrTree->Rollback();
1330 ptrTree = NULL;
1338 if ( (e=ptrTree
1340 // ptrTree->Rollback();
1341 ptrTree = NULL;
1349 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData((CPCHAR)"??????")) ) != NULL) {
1351 // ptrTree->Rollback();
1352 ptrTree = NULL;
1360 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("123abc")) ) != NULL) {
1362 // ptrTree->Rollback();
1363 ptrTree = NULL;
1371 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("Scts")) ) == NULL) {
1375 // ptrTree->Rollback();
1376 ptrTree = NULL;
1384 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData((CPCHAR)"??????")) ) != NULL) {
1386 // ptrTree->Rollback();
1387 ptrTree = NULL;
1395 if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("MTIzNDEyMzQxMjM0MTIzNA==")) ) != NULL) {
1397 // ptrTree->Rollback();
1398 ptrTree = NULL;
1405 // if ( (e=ptrTree->CreateLeafNode(strPath2.c_str(), ptrNode, DmtData("1")) ) == NULL) {
1409 // ptrTree->Rollback();
1410 // ptrTree = NULL;
1414 // ptrTree->Commit();
1415 ptrTree = NULL;
1515 ptrTree = NULL;
1639 ptrTree->DeleteNode("./DMAcc/Test");
1640 ptrTree->DeleteNode("./DMAcc/Test1");
1641 ptrTree->DeleteNode("./DMAcc/Test2");
1642 ptrTree->DeleteNode("./DMAcc/Test3");
1643 ptrTree->CreateInteriorNode( "./DMAcc/Test", ptrNode );
1644 ptrTree->CreateInteriorNode( "./DMAcc/Test1", ptrNode );
1645 ptrTree->CreateInteriorNode( "./DMAcc/Test2", ptrNode );
1646 ptrTree->CreateLeafNode( "./DMAcc/Test/ServerID", ptrNode, oData );
1647 ptrTree->CreateLeafNode( "./DMAcc/Test1/ServerID", ptrNode, oData );
1648 ptrTree->CreateLeafNode( "./DMAcc/Test2/ServerID", ptrNode, oData );
1655 ptrTree->RenameNode("./DMAcc/Test", "Test3");
1656 ptrTree->DeleteNode( "./DMAcc/Test3" );
1657 ptrTree->DeleteNode("./DMAcc/Test1");
1658 ptrTree->DeleteNode("./DMAcc/Test2");
1734 ptrTree = NULL;
1756 //ptrTree = NULL;
1889 ptrTree = NULL;
1904 if ( (e=DmtTreeFactory::GetTree(principal, ptrTree)) != NULL ) {
1912 if ( (e=ptrTree->GetNode( strNode, ptrNode )) != NULL )
1922 ptrTree = NULL;