Added database abstractions
[gnucomo.git] / src / include / object.h
1
2 /**************************************************************************
3 **  (c) Copyright 2005, Andromeda Technology & Automation
4 ** This is free software; you can redistribute it and/or modify it under the
5 ** terms of the GNU General Public License, see the file COPYING.
6 ***************************************************************************
7 ** MODULE INFORMATION *
8 ***********************
9 **      FILE NAME      : object.h
10 **      SYSTEM NAME    : 
11 **      VERSION NUMBER : $Revision: 1.1 $
12 **
13 **  DESCRIPTION      :  
14 **
15 **  EXPORTED OBJECTS : 
16 **  LOCAL    OBJECTS : 
17 **  MODULES  USED    :
18 ***************************************************************************
19 **  ADMINISTRATIVE INFORMATION *
20 ********************************
21 **      ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
22 **      CREATION DATE   : Jun 07, 2005
23 **      LAST UPDATE     : 
24 **      MODIFICATIONS   : 
25 **************************************************************************/
26
27 #include <date.h>
28
29 #include "objectlog.h"
30
31 /*
32 ///////////////////////////////////////////////////////////////////////////
33 //  NAME           : Object
34 //  BASECLASS      : database_entity
35 //  MEMBERS        :
36 //  OPERATORS      :
37 //  METHODS        : 
38 //
39 //  DESCRIPTION    : 
40 //
41 //  RELATIONS      :
42 //  SEE ALSO       :
43 //  LAST MODIFIED  : Jun 07, 2005
44 ///////////////////////////////////////////////////////////////////////////
45 */
46
47 class Object : public database_entity
48 {
49
50    String  hostname;
51    String  id;
52
53 public:
54
55    Object(gnucomo_database &);
56    Object(gnucomo_database &, String);
57
58    String   Hostname();  // Return the database access string.
59
60    std::list<ObjectLog> select_logs(UTC, UTC, String);
61 };
62