IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3865


Ignore:
Timestamp:
May 5, 2005, 6:30:50 PM (21 years ago)
Author:
jhoblitt
Message:

change from table_name -> namespace where appropriate
change from table_name -> [foo]_TABLE_NAME where appropriate

Location:
trunk/glueforge/templates/psdb
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/code.tt

    r3504 r3865  
    1 #include "[% table_name %]db.h"
     1#include "[% namespace %]db.h"
    22
    33[% INCLUDE init.tt %]
  • trunk/glueforge/templates/psdb/create.tt

    r3597 r3865  
    1 bool [% table_name %]CreateTable(psDB *dbh) {
     1bool [% namespace %]CreateTable(psDB *dbh) {
    22    psMetadata          *md;
    33    bool                status;
     
    2020        [%- i = i + 1 %]
    2121    [%- END %]
    22     status = psDBCreateTable(dbh, "[% table_name %]", md);
     22    status = psDBCreateTable(dbh, "[% namespace FILTER upper %]_TABLE_NAME", md);
    2323    psFree(md);
    2424
  • trunk/glueforge/templates/psdb/init.tt

    r3506 r3865  
    1 psDB *[% table_name %]Init(const char *host, const char *user, const char *passwd, const char *dbname) {
     1psDB *[% namespace %]Init(const char *host, const char *user, const char *passwd, const char *dbname) {
    22
    33    psDB            *dbh;
  • trunk/glueforge/templates/psdb/insert.tt

    r3581 r3865  
    1 bool [% table_name %]Insert(psDB * dbh,
     1bool [% namespace %]Insert(psDB * dbh,
    22    [%- SET i = 0 -%]
    33    [%- FOREACH item = columns -%]
     
    2222        [%- i = i + 1 %]
    2323    [%- END %]
    24     status = psDBInsertOneRow(dbh, "[% table_name %]", row);
     24    status = psDBInsertOneRow(dbh, "[% namespace FILTER upper %]_TABLE_NAME", row);
    2525    psFree(row);
    2626
  • trunk/glueforge/templates/psdb/makefile.tt

    r3581 r3865  
    66
    77
    8 objects=[% table_name %]db.o
     8objects=[% namespace %]db.o
    99
    10 all: lib[% table_name %]db.so
     10all: lib[% namespace %]db.so
    1111
    12 lib[% table_name %]db.so: $(objects)
    13         $(CC) $(CFLAGS) -shared -o lib[% table_name %]db.so $(objects) $(LIBS)
     12lib[% namespace %]db.so: $(objects)
     13        $(CC) $(CFLAGS) -shared -o lib[% namespace %]db.so $(objects) $(LIBS)
    1414
    1515$(objects): %.o : %.c
Note: See TracChangeset for help on using the changeset viewer.