Changes between Version 2 and Version 3 of BackendUtilities


Ignore:
Timestamp:
Apr 25, 2007, 10:34:51 AM (17 years ago)
Author:
Nicolas
Comment:

Required manual changes to automatic conversion.

Legend:

Unmodified
Added
Removed
Modified
  • BackendUtilities

    v2 v3  
    11= Back-end utility functions =
    22
    3       The following functions can be used in your validator and assimilator code:
     3The following functions can be used in your validator and assimilator code:
     4
    45----
    5 
    66{{{
    77int get_output_file_path(RESULT const&, std::string&);
    88}}}
    9       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]).
     9
     10Returns 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
    1012{{{
    1113int get_output_file_paths(RESULT const&, vector<string>&);
    1214}}}
    13       Same, for multiple output files.
    1415
     16Same, for multiple output files.
    1517
    1618----
    17 
    1819{{{
    1920int try_fopen(char* path, FILE*& f, char* mode);
    2021}}}
    21       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).
     22
     23Open 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).
     24
    2225----
    23 
    2426{{{
    2527double median_mean_credit(vector<RESULT> const& results);
    2628}}}
    27       Given a vector of N correct results, computes a canonical credit as follows:
     29
     30Given a vector of N correct results, computes a canonical credit as follows:
     31
    2832 * if N==1, return that result's claimed credit
    2933 * if N==2, return min of claimed credits