~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/java/debugger/jdbparser.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          jdbparser.h  -  description
 
3
                             -------------------
 
4
    begin                : Tue Aug 17 1999
 
5
    copyright            : (C) 1999 by John Birch
 
6
    email                : jbb@kdevelop.org
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#ifndef _JDBPARSER_H_
 
19
#define _JDBPARSER_H_
 
20
 
 
21
#include "variablewidget.h"
 
22
 
 
23
namespace JAVADebugger
 
24
{
 
25
 
 
26
/**
 
27
 * @author John Birch
 
28
 */
 
29
class JDBParser
 
30
{
 
31
public:
 
32
    JDBParser();
 
33
    ~JDBParser();
 
34
 
 
35
    void parseData(TrimmableItem *parent, char *buf,
 
36
                   bool requested, bool params);
 
37
    DataType  determineType(char *buf) const;
 
38
 
 
39
    char *skipString(char *buf) const;
 
40
    char *skipQuotes(char *buf, char quote) const;
 
41
    char *skipDelim(char *buf, char open, char close) const;
 
42
 
 
43
private:
 
44
    TrimmableItem *getItem(TrimmableItem *parent, DataType itemType,
 
45
                           const QString &varName, bool requested);
 
46
 
 
47
    void parseArray(TrimmableItem *parent, char *buf);
 
48
 
 
49
    char *skipTokenEnd(char *buf) const;
 
50
    char *skipTokenValue(char *buf) const;
 
51
    char *skipNextTokenStart(char *buf) const;
 
52
 
 
53
    QString getName(char **buf);
 
54
    QCString getValue(char **buf, bool requested);
 
55
    void setItem(TrimmableItem *parent, const QString &varName, DataType dataType,
 
56
                 const QCString &value, bool requested, bool params);
 
57
};
 
58
 
 
59
}
 
60
 
 
61
#endif