IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2006, 2:16:35 PM (21 years ago)
Author:
jhoblitt
Message:

split global and per table data
forward port generated code to pslib 0.9.0

File:
1 edited

Legend:

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

    r4334 r5907  
    1 #include "[% namespace %]db.h"
     1#include "[% pkg_name %].h"
    22
    3 #define [% namespace FILTER upper %]_TABLE_NAME "[% table_name %]"
    4 #define [% namespace FILTER upper %]_INDEX_NAME "position"
     3[% FOREACH table = tables -%]
     4#define [% table.namespace FILTER upper %]_TABLE_NAME "[% table.name %]"
     5#define [% table.namespace FILTER upper %]_INDEX_NAME "position"
     6[% END -%]
    57#define MAX_STRING_LENGTH 1024
    68
     9[% FOREACH table = tables -%]
    710[% INCLUDE alloc.tt %]
    811[% INCLUDE init.tt %]
     
    1922[% INCLUDE metadatafromobject.tt %]
    2023[% INCLUDE objectfrommetadata.tt -%]
     24[% END -%]
Note: See TracChangeset for help on using the changeset viewer.