Changeset 125 for trunk/src/fortran
- Timestamp:
- Nov 4, 2005 3:19:11 PM (18 years ago)
- Location:
- trunk/src/fortran
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fortran/RpLibraryFInterface.cc
r122 r125 462 462 463 463 if (lib) { 464 xmlText = lib->get(inPath); 465 if (!xmlText.empty()) { 466 fortranify(xmlText.c_str(),retText,retText_len); 467 } 468 469 } 470 } 471 } 472 473 /**********************************************************************/ 474 // FUNCTION: rp_lib_get_str() 475 /// Get data located at 'path' and return it as a string value. 476 /** 477 */ 478 void rp_lib_get_str( int* handle, /* integer handle of library */ 479 char* path, /* null terminated path */ 480 char* retText, /* return text buffer for fortran*/ 481 int path_len, 482 int retText_len /* length of return text buffer */ 483 ) 484 { 485 std::string xmlText = ""; 486 487 RpLibrary* lib = NULL; 488 489 std::string inPath = ""; 490 491 inPath = null_terminate_str(path,path_len); 492 493 if ((handle) && (*handle != 0)) { 494 lib = getObject_Lib(*handle); 495 496 if (lib) { 464 497 xmlText = lib->getString(inPath); 465 498 if (!xmlText.empty()) { … … 470 503 } 471 504 } 505 472 506 473 507 /**********************************************************************/ -
trunk/src/fortran/RpLibraryFStubs.c
r119 r125 238 238 } 239 239 240 void 241 rp_lib_get_str_ ( int* handle, 242 char* path, 243 char* retText, 244 int path_len, 245 int retText_len ) { 246 247 return rp_lib_get_str(handle,path,retText,path_len,retText_len); 248 } 249 250 void 251 rp_lib_get_str__ ( int* handle, 252 char* path, 253 char* retText, 254 int path_len, 255 int retText_len ) { 256 257 return rp_lib_get_str(handle,path,retText,path_len,retText_len); 258 } 259 260 void 261 RP_LIB_GET_STR ( int* handle, 262 char* path, 263 char* retText, 264 int path_len, 265 int retText_len ) { 266 267 return rp_lib_get_str(handle,path,retText,path_len,retText_len); 268 } 269 240 270 double 241 271 rp_lib_get_double_ ( int* handle,
Note: See TracChangeset
for help on using the changeset viewer.