/**************************************************************************
** (c) Copyright 2002, Andromeda Technology & Automation
+** This is free software; you can redistribute it and/or modify it under the
+** terms of the GNU General Public License, see the file COPYING.
***************************************************************************
** MODULE INFORMATION *
***********************
** FILE NAME : database.h
** SYSTEM NAME :
-** VERSION NUMBER : $Revision: 1.2 $
+** VERSION NUMBER : $Revision: 1.3 $
**
** DESCRIPTION : Classes to provide an abstract layer on the Gnucomo
** database.
/*****************************
$Log: database.h,v $
- Revision 1.2 2002-11-04 10:13:36 arjen
+ Revision 1.3 2002-11-09 08:04:27 arjen
+ Added a reference to the GPL
+
+ Revision 1.2 2002/11/04 10:13:36 arjen
Use proper namespace for iostream classes
Revision 1.1 2002/10/05 10:25:49 arjen
*****************************/
-/* static const char *RCSID = "$Id: database.h,v 1.2 2002-11-04 10:13:36 arjen Exp $"; */
+/* static const char *RCSID = "$Id: database.h,v 1.3 2002-11-09 08:04:27 arjen Exp $"; */
#include <libpq++/pgdatabase.h>
#include "gnucomo_config.h"
}
}
+ String Field(int tuple, const char *fieldname)
+ {
+ return String(db->GetValue(tuple, fieldname));
+ }
+
// Return the objectid of the host given its name.
String find_host(const String hostname);