rllib  1
rlbussignaldatabase.h
Go to the documentation of this file.
1 /***************************************************************************
2  rlbussignaldatabase.h - description
3  -------------------
4  begin : Mon Aug 02 2002
5  copyright : (C) 2002 by R. Lehrig
6  email : lehrig@t-online.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as *
13  * published by the Free Software Foundation *
14  * *
15  ***************************************************************************/
16 #ifndef _RL_BUSSIGNAL_DATABASE_H_
17 #define _RL_BUSSIGNAL_DATABASE_H_
18 
19 #include "rldefine.h"
20 
22 {
23  public:
25  virtual ~rlBussignalDatabase();
26  int openDatabase(const char *database, const char *table);
27  int writeDatabaseInt(const char *item, int val);
28  int writeDatabaseIntArray(const char *item, int *val, int len);
29  int writeDatabaseFloat(const char *item, float val);
30  int writeDatabaseFloatArray(const char *item, float *val, int len);
31  int writeDatabaseString(const char *item, char *val);
32  int readDatabase(const char *item, char *type, char *value);
33  int closeDatabase();
34  private:
35  int writeDatabaseString(const char *item);
36  int myquery(const char *query);
37  void *database;
38  void *connection;
39  char *databaseName;
40  char *tableName;
42  char typebuf[16];
43 };
44 
45 #endif
int readDatabase(const char *item, char *type, char *value)
char buf[rl_PRINTF_LENGTH]
int writeDatabaseIntArray(const char *item, int *val, int len)
#define rl_PRINTF_LENGTH
Definition: rldefine.h:71
int writeDatabaseFloatArray(const char *item, float *val, int len)
int writeDatabaseString(const char *item, char *val)
int myquery(const char *query)
int openDatabase(const char *database, const char *table)
int writeDatabaseFloat(const char *item, float val)
int writeDatabaseInt(const char *item, int val)