IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 10, 2008, 10:28:59 AM (18 years ago)
Author:
jhoblitt
Message:

add truncate parameter to pmConfigConvertFilename()

Location:
trunk/psModules/src/config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r18036 r18061  
    556556        }
    557557        if (logDest) {
    558             psString resolved = pmConfigConvertFilename(logDest, config, true); // Resolved filename
     558            psString resolved = pmConfigConvertFilename(logDest, config, true, false); // Resolved filename
    559559            if (!resolved || strlen(resolved) == 0) {
    560560                psWarning("Unable to resolve log destination: %s --- ignored", logDest);
     
    614614        }
    615615        if (traceDest) {
    616             psString resolved = pmConfigConvertFilename(traceDest, config, true); // Resolved filename
     616            psString resolved = pmConfigConvertFilename(traceDest, config, true, false); // Resolved filename
    617617            if (!resolved || strlen(resolved) == 0) {
    618618                psWarning("Unable to resolve trace destination: %s --- ignored", traceDest);
     
    14901490
    14911491// convert the supplied name, create a new output psString
    1492 psString pmConfigConvertFilename(const char *filename, const pmConfig *config, bool create)
     1492psString pmConfigConvertFilename(const char *filename, const pmConfig *config, bool create, bool truncate)
    14931493{
    14941494    PS_ASSERT_STRING_NON_EMPTY(filename, NULL);
  • trunk/psModules/src/config/pmConfig.h

    r17992 r18061  
    55 *  @author Eugene Magnier, IfA
    66 *
    7  *  @version $Revision: 1.36 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2008-06-09 00:38:42 $
     7 *  @version $Revision: 1.37 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-06-10 20:28:25 $
    99 *  Copyright 2005-2006 Institute for Astronomy, University of Hawaii
    1010 */
     
    163163    const char *filename,               ///< file path/URI
    164164    const pmConfig *config,             ///< configuration
    165     bool create                         ///< create the file if it doesn't exist
     165    bool create,                        ///< create the file if it doesn't exist
     166    bool truncate                       ///< truncate the file (if it exists)
    166167);
    167168
Note: See TracChangeset for help on using the changeset viewer.