~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic-proposed

« back to all changes in this revision

Viewing changes to pgadmin/include/debugger/dbgBreakPoint.h

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-09-10 16:16:38 UTC
  • mfrom: (1.3.4)
  • Revision ID: package-import@ubuntu.com-20130910161638-wwup1q553ylww7dr
Tags: 1.18.0-1
* New upstream release.
* Don't install /usr/bin/png2c anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
//
3
3
// pgAdmin III - PostgreSQL Tools
4
4
//
5
 
// Copyright (C) 2002 - 2012, The pgAdmin Development Team
 
5
// Copyright (C) 2002 - 2013, The pgAdmin Development Team
6
6
// This software is released under the PostgreSQL Licence
7
7
//
8
8
// dbgBreakPoint.h - debugger
21
21
class dbgBreakPoint
22
22
{
23
23
public:
24
 
 
25
 
        enum eTargetType
26
 
        {
27
 
            TRIGGER,
28
 
            FUNCTION,
29
 
            PROCEDURE,
30
 
            OID
31
 
        };
32
 
 
33
 
        dbgBreakPoint(eTargetType targetType, const wxString &target, const wxString &process ): m_targetType(targetType), m_target(target), m_targetProcess(process) {}
34
 
 
35
 
        eTargetType   getTargetType()
36
 
        {
37
 
                return( m_targetType );
38
 
        }
39
 
        wxString     &getTarget()
40
 
        {
41
 
                return( m_target );
42
 
        }
43
 
        wxString     &getTargetProcess()
44
 
        {
45
 
                return( m_targetProcess );
46
 
        }
 
24
        dbgBreakPoint(const wxString &_funcOid, const wxString &_pkgOid = wxT("-1"),
 
25
                      const int &_lineNo = -1)
 
26
                : m_func(_funcOid), m_pkg(_pkgOid), m_lineNo(_lineNo) {}
 
27
 
 
28
        wxString &GetFunctionOid()
 
29
        {
 
30
                return m_func;
 
31
        }
 
32
        wxString &GetPackageOid()
 
33
        {
 
34
                return m_pkg;
 
35
        }
 
36
        int      &GetLineNo()
 
37
        {
 
38
                return m_lineNo;
 
39
        }
 
40
 
47
41
private:
48
 
        eTargetType     m_targetType;
49
 
        wxString        m_target;
50
 
        wxString        m_targetProcess;
51
 
 
 
42
        wxString m_func;
 
43
        wxString m_pkg;
 
44
        int      m_lineNo;
52
45
};
53
46
 
54
 
WX_DECLARE_LIST( dbgBreakPoint, dbgBreakPointList );
 
47
WX_DECLARE_LIST(dbgBreakPoint, dbgBreakPointList);
55
48
 
56
49
#endif