Changes between Version 3 and Version 4 of BackendUtilities
- Timestamp:
- Jun 10, 2008, 1:55:11 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BackendUtilities
v3 v4 5 5 ---- 6 6 {{{ 7 int get_output_file_path(RESULT const&, std::string&); 7 struct FILE_INFO { 8 std::string path; 9 bool optional; 10 }; 11 12 extern int get_output_file_info(RESULT& result, FILE_INFO&); 13 extern int get_output_file_infos(RESULT& result, std::vector<FILE_INFO>&); 14 extern int get_output_file_path(RESULT& result, std::string&); 15 extern int get_output_file_paths(RESULT& result, std::vector<std::string>&); 8 16 }}} 9 17 10 Returns the path of a result's output file (parses result.xml_doc_out and computes the file's position in the [DirHierarchy hierarchical directory structure]). 11 12 {{{ 13 int get_output_file_paths(RESULT const&, vector<string>&); 14 }}} 15 16 Same, for multiple output files. 18 Returns the paths of a result's output file(s). 19 The FILE_INFO variants also return each files "optional" attribute. 17 20 18 21 ---- … … 21 24 }}} 22 25 23 Open a file, distinguishing between recoverable and nonrecoverable errors. Returns zero on success. Returns ERR_FOPEN if the directory is present but not the file (this is considered a nonrecoverable error). Returns ERR_OPENDIR if the directory is not there (this is generally a recoverable error, like NFS mount failure). 26 Open a file, distinguishing between recoverable and nonrecoverable errors. 27 Returns zero on success. 28 Returns ERR_FOPEN if the directory is present but not the file 29 (this is considered a nonrecoverable error). 30 Returns ERR_OPENDIR if the directory is not there 31 (this is generally a recoverable error, like NFS mount failure). 24 32 25 33 ----