Index: /trunk/glueforge/templates/psdb/header.tt
===================================================================
--- /trunk/glueforge/templates/psdb/header.tt	(revision 3909)
+++ /trunk/glueforge/templates/psdb/header.tt	(revision 3910)
@@ -18,4 +18,5 @@
 [% INCLUDE insertobject_h.tt %]
 [% INCLUDE popobject_h.tt %]
+[% INCLUDE insertfits_h.tt %]
 
 /// @}
Index: /trunk/glueforge/templates/psdb/insertfits_h.tt
===================================================================
--- /trunk/glueforge/templates/psdb/insertfits_h.tt	(revision 3910)
+++ /trunk/glueforge/templates/psdb/insertfits_h.tt	(revision 3910)
@@ -0,0 +1,16 @@
+[% USE format -%]
+[% indented = format('%-15s %-20s') -%]
+/** Insert data from a binary FITS table [% object_name %] into the database
+ *
+ * This function expects a psFits object with a FITS table as the first
+ * extension.  The table must have at least one row of data in it, that is of
+ * the appropriate format (number of columns and their type).  All other
+ * extensions are ignored.
+ *
+ * @return true on success
+ */
+
+bool [% namespace %]InsertFits(
+    psDB            *dbh,               ///< Database handle
+    psFits          *fits               ///< psFits object
+);
