Changes between Version 3 and Version 4 of BackendUtilities


Ignore:
Timestamp:
Jun 10, 2008, 1:55:11 PM (16 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BackendUtilities

    v3 v4  
    55----
    66{{{
    7 int get_output_file_path(RESULT const&, std::string&);
     7struct FILE_INFO {
     8    std::string path;
     9    bool optional;
     10};
     11
     12extern int get_output_file_info(RESULT& result, FILE_INFO&);
     13extern int get_output_file_infos(RESULT& result, std::vector<FILE_INFO>&);
     14extern int get_output_file_path(RESULT& result, std::string&);
     15extern int get_output_file_paths(RESULT& result, std::vector<std::string>&);
    816}}}
    917
    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.
     18Returns the paths of a result's output file(s).
     19The FILE_INFO variants also return each files "optional" attribute.
    1720
    1821----
     
    2124}}}
    2225
    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).
     26Open a file, distinguishing between recoverable and nonrecoverable errors.
     27Returns zero on success.
     28Returns ERR_FOPEN if the directory is present but not the file
     29(this is considered a nonrecoverable error).
     30Returns ERR_OPENDIR if the directory is not there
     31(this is generally a recoverable error, like NFS mount failure).
    2432
    2533----