KDevelop API Documentation

jdbparser.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           jdbparser.h  -  description
00003                              -------------------
00004     begin                : Tue Aug 17 1999
00005     copyright            : (C) 1999 by John Birch
00006     email                : jbb@kdevelop.org
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef _JDBPARSER_H_
00019 #define _JDBPARSER_H_
00020 
00021 #include "variablewidget.h"
00022 
00023 namespace JAVADebugger
00024 {
00025 
00029 class JDBParser
00030 {
00031 public:
00032     JDBParser();
00033     ~JDBParser();
00034 
00035     void parseData(TrimmableItem *parent, char *buf,
00036                    bool requested, bool params);
00037     DataType  determineType(char *buf) const;
00038 
00039     char *skipString(char *buf) const;
00040     char *skipQuotes(char *buf, char quote) const;
00041     char *skipDelim(char *buf, char open, char close) const;
00042 
00043 private:
00044     TrimmableItem *getItem(TrimmableItem *parent, DataType itemType,
00045                            const QString &varName, bool requested);
00046 
00047     void parseArray(TrimmableItem *parent, char *buf);
00048 
00049     char *skipTokenEnd(char *buf) const;
00050     char *skipTokenValue(char *buf) const;
00051     char *skipNextTokenStart(char *buf) const;
00052 
00053     QString getName(char **buf);
00054     QCString getValue(char **buf, bool requested);
00055     void setItem(TrimmableItem *parent, const QString &varName, DataType dataType,
00056                  const QCString &value, bool requested, bool params);
00057 };
00058 
00059 }
00060 
00061 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:30 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003