Changeset 4326 for trunk/glueforge/templates/psdb/popobject.tt
- Timestamp:
- Jun 20, 2005, 2:54:17 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/glueforge/templates/psdb/popobject.tt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/glueforge/templates/psdb/popobject.tt
r4265 r4326 3 3 [% object_name %] *[% namespace %]PopObject(psDB *dbh) 4 4 { 5 bool status;6 [% indented(object_name, "*object") %];7 5 [% FOREACH item = columns -%] 8 6 [% IF item.type == "STR" -%] … … 13 11 [% END -%] 14 12 15 status =[% namespace %]Pop(dbh,13 if (![% namespace %]Pop(dbh, 16 14 [%- SET i = 0 -%] 17 15 [% FOREACH item = columns -%] … … 22 20 &[% item.name -%] 23 21 [% END -%] 24 [% END %]); 25 if (!status) { 22 [% END %])) { 26 23 // psError(); something bad happened 27 24 return NULL; 28 25 } 29 26 30 object =[% object_name %]Alloc(27 return [% object_name %]Alloc( 31 28 [%- SET i = 0 -%] 32 29 [% FOREACH item = columns -%] … … 34 31 [% item.name %] 35 32 [%- END -%]); 36 37 return object;38 33 }
Note:
See TracChangeset
for help on using the changeset viewer.
