Changeset 178
- Timestamp:
- 06/17/08 16:14:37 (4 months ago)
- Files:
-
- trunk/core/src/astar_boost_wrapper.cpp (modified) (4 diffs)
- trunk/core/src/boost_wrapper.cpp (modified) (4 diffs)
- trunk/core/src/shooting_star_boost_wrapper.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/src/astar_boost_wrapper.cpp
r134 r178 183 183 if (source_vertex < 0) 184 184 { 185 *err_msg = "Source vertex not found";185 *err_msg = (char *) "Source vertex not found"; 186 186 return -1; 187 187 } … … 190 190 if (target_vertex < 0) 191 191 { 192 *err_msg = "Target vertex not found";192 *err_msg = (char *) "Target vertex not found"; 193 193 return -1; 194 194 } … … 217 217 if (target_vertex == predecessors[target_vertex]) 218 218 { 219 *err_msg = "No path found";219 *err_msg = (char *) "No path found"; 220 220 return 0; 221 221 … … 226 226 if (!max--) 227 227 { 228 *err_msg = "Overflow";228 *err_msg = (char *) "Overflow"; 229 229 return -1; 230 230 } trunk/core/src/boost_wrapper.cpp
r134 r178 106 106 if (_source < 0 /*|| _source >= num_nodes*/) 107 107 { 108 *err_msg = "Starting vertex not found";108 *err_msg = (char *) "Starting vertex not found"; 109 109 return -1; 110 110 } … … 113 113 if (_target < 0 /*|| _target >= num_nodes*/) 114 114 { 115 *err_msg = "Ending vertex not found";115 *err_msg = (char *) "Ending vertex not found"; 116 116 return -1; 117 117 } … … 132 132 if (_target == predecessors[_target]) 133 133 { 134 *err_msg = "No path found";134 *err_msg = (char *) "No path found"; 135 135 return 0; 136 136 } … … 140 140 if (!max--) 141 141 { 142 *err_msg = "Overflow";142 *err_msg = (char *) "Overflow"; 143 143 return -1; 144 144 } trunk/core/src/shooting_star_boost_wrapper.cpp
r158 r178 300 300 if (!source_found) 301 301 { 302 *err_msg = "Source edge not found";302 *err_msg = (char *) "Source edge not found"; 303 303 return -2; 304 304 } … … 318 318 if (!target_found) 319 319 { 320 *err_msg = "Target edge not found";320 *err_msg = (char *) "Target edge not found"; 321 321 return -3; 322 322 } … … 360 360 if ((target_edge == predecessors[graph[target_edge].id]) && (predecessors[graph[target_edge].id] != source_edge)) 361 361 { 362 *err_msg = "No path found";362 *err_msg = (char *) "No path found"; 363 363 return -1; 364 364 … … 377 377 if (!max--) 378 378 { 379 *err_msg = "No path found";379 *err_msg = (char *) "No path found"; 380 380 return -1; 381 381 } … … 405 405 } 406 406 407 *err_msg = "Target was not reached";407 *err_msg = (char *) "Target was not reached"; 408 408 return 0; 409 409

