Changeset 872 for trunk/examples
- Timestamp:
- Feb 8, 2008, 2:01:38 PM (17 years ago)
- Location:
- trunk/examples/c-example
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/c-example/compress.c
r597 r872 13 13 14 14 RpLibrary* lib = NULL; 15 RapptureBuffer buf; 15 16 16 17 const char* xmlFilePath = NULL; … … 39 40 dxFilePath,RPLIB_COMPRESS,RPLIB_OVERWRITE); 40 41 42 RapptureBufferInit(&buf); 43 rpGetData(lib,"output.field(dxFile1).component.dx",&buf); 44 RapptureBufferDecode(&buf,1,1); 45 RapptureBufferDump(&buf,"bufferDump.txt"); 46 RapptureBufferFree(&buf); 47 41 48 // write output to run file and signal 42 49 rpResult(lib); 43 50 51 rpFreeLibrary(&lib); 52 44 53 return 0; 45 54 } -
trunk/examples/c-example/compress.cc
r597 r872 43 43 // write output to run file and signal 44 44 lib->result(); 45 delete lib; 45 46 46 47 return 0; -
trunk/examples/c-example/plot.cc
r561 r872 58 58 else { 59 59 printf("lib->xml() failed\n"); 60 delete lib; 60 61 exit(1); 61 62 } … … 66 67 if ( xmltext.empty() ) { 67 68 std::cout << "lib->getString(input.number(xmin).current) returns null" << std::endl; 69 delete lib; 68 70 exit(1); 69 71 } … … 109 111 lib->result(); 110 112 113 delete lib; 114 111 115 return 0; 112 116 }
Note: See TracChangeset
for help on using the changeset viewer.