Changeset 38 for SH_SHM/trunk


Ignore:
Timestamp:
10/30/2008 10:43:13 PM (15 years ago)
Author:
marcus
Message:

r23 | stittgen | 2008-02-05 12:56:20 +0100 (Di, 05 Feb 2008) | 1 line

Added flag -go in sfd2db (needed for ingres)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/seed_io/sfd2db.c

    r32 r38  
    33 *      ======== 
    44 * 
    5  * $Revision: 17 $, $Date: 2008-01-30 15:59:13 +0100 (Mi, 30 Jan 2008) $ 
     5 * $Revision: 23 $, $Date: 2008-02-05 12:56:20 +0100 (Di, 05 Feb 2008) $ 
    66 * 
    77 * reads lines from sfdfile and creates commands to insert into sfdb database 
     
    4949        int      dataformat;                /* data format ID */ 
    5050        char     ignstr[cBcShortStrLth];    /* ignore string */ 
     51        char     gostr[cBcShortStrLth];     /* go string */ 
    5152        TSyBoolean pipe_io;                 /* input/output on stdin/stdout */ 
    5253        TSyBoolean pathid_set;              /* path ID set on command line */ 
     
    5657        TSyBoolean invhdr;                  /* invert header info in sfd entry */ 
    5758        TSyBoolean baynet;                  /* convert SH to BH for Bayernnetz */ 
     59        TSyBoolean go;                      /* end tmpfile with insert statements with \g */ 
     60 
    5861 
    5962        /* executable code */ 
     
    7275        invhdr = pa_qspecified( "-invhdr" ); 
    7376        baynet = pa_qspecified( "-baynet" ); 
     77        go = pa_qspecified( "-go" ); 
    7478 
    7579        if  (noignore)  { 
     
    7781        } else { 
    7882                strcpy( ignstr, "ignore " ); 
     83        } /*endif*/ 
     84 
     85        if  (go)  { 
     86                strcpy( gostr, "\\g" ); 
     87        } else { 
     88                *gostr = '\0'; 
    7989        } /*endif*/ 
    8090 
     
    308318 
    309319        if  (!pipe_io)  { 
     320 
     321                fprintf( out, gostr); 
    310322                fclose( fp ); 
    311323                fclose( out ); 
Note: See TracChangeset for help on using the changeset viewer.