X-Git-Url: http://www.andromeda.nl/gitweb/?a=blobdiff_plain;f=src%2Finclude%2Fdatabase.h;h=1a4763d99a410aaaec6bf33241dd00583fd31b1e;hb=62e25e5ccbfba86ce29ac2484770ff4ab2e24ff5;hp=8c3279afb42ee25a32ce2c8bfe15426ad6e93c94;hpb=8bfed3e88ad81ba25cf26ddcebf72b8d3f1ccd0f;p=gnucomo.git diff --git a/src/include/database.h b/src/include/database.h index 8c3279a..1a4763d 100644 --- a/src/include/database.h +++ b/src/include/database.h @@ -1,12 +1,14 @@ /************************************************************************** ** (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. @@ -25,7 +27,10 @@ /***************************** $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 @@ -33,7 +38,7 @@ *****************************/ -/* 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 #include "gnucomo_config.h" @@ -87,6 +92,11 @@ public: } } + 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);