HttpOdb.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef INCLUDE_HttpOdb_H
00011 #define INCLUDE_HttpOdb_H
00012
00013 #include "VirtualOdb.h"
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 class HttpOdb : public VirtualOdb
00028 {
00029 protected:
00030 const char* fUrl;
00031 int fDebug;
00032
00033 public:
00034
00035 HttpOdb(const char* url);
00036
00037
00038 virtual ~HttpOdb();
00039
00040 int odbReadAny( const char*name, int index, int tid,void* buf, int bufsize=0);
00041 int odbReadInt( const char*name, int index, int defaultValue);
00042 uint32_t odbReadUint32(const char*name, int index, uint32_t defaultValue);
00043 bool odbReadBool( const char*name, int index, bool defaultValue);
00044 double odbReadDouble(const char*name, int index, double defaultValue);
00045 float odbReadFloat(const char*name, int index, float defaultValue);
00046 const char* odbReadString(const char*name, int index, const char* defaultValue);
00047 int odbReadArraySize(const char*name);
00048
00049 protected:
00050 const char* jkey(const char* path);
00051 const char* jget(const char* path, int index);
00052
00053 protected:
00054 char fRequestBuf[1024];
00055 char fReplyBuf[1024];
00056 };
00057
00058 #endif
00059