Debian Codegraph @

CodeLite/PHPEntityFunctionAlias.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // Copyright : (C) 2015 Eran Ifrah
5 // File name : PHPEntityFunctionAlias.h
6 //
7 // -------------------------------------------------------------------------
8 // A
9 // _____ _ _ _ _
10 // / __ \ | | | | (_) |
11 // | / \/ ___ __| | ___| | _| |_ ___
12 // | | / _ \ / _ |/ _ \ | | | __/ _ )
13 // | \__/\ (_) | (_| | __/ |___| | || __/
14 // \____/\___/ \__,_|\___\_____/_|\__\___|
15 //
16 // F i l e
17 //
18 // This program is free software; you can redistribute it and/or modify
19 // it under the terms of the GNU General Public License as published by
20 // the Free Software Foundation; either version 2 of the License, or
21 // (at your option) any later version.
22 //
23 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25
26 #ifndef PHPENTITYFUNCTIONALIAS_H
27 #define PHPENTITYFUNCTIONALIAS_H
28
29 #include "codelite_exports.h"
30 #include "PHPEntityBase.h"
31
32 class WXDLLIMPEXP_CL PHPEntityFunctionAlias : public PHPEntityBase
33 {
34 wxString m_realname;
35 wxString m_scope;
36
37 PHPEntityBase::Ptr_t m_func;
38
39 public:
40 virtual wxString FormatPhpDoc(const CommentConfigData& data) const;
41 virtual wxString GetDisplayName() const;
42 virtual void PrintStdout(int indent) const;
43 virtual wxString Type() const;
44 PHPEntityFunctionAlias();
45 virtual ~PHPEntityFunctionAlias();
46
47 void FromJSON(const JSONItem &json);
48 JSONItem ToJSON() const;
49
50 public:
51 virtual bool Is(eEntityType type) const;
52 virtual void Store(PHPLookupTable* lookup);
53 virtual void FromResultSet(wxSQLite3ResultSet& res);
54
55 void SetScope(const wxString& scope) { this->m_scope = scope; }
56 const wxString& GetScope() const { return m_scope; }
57 void SetRealname(const wxString& realname) { this->m_realname = realname; }
58 const wxString& GetRealname() const { return m_realname; }
59 void SetFunc(PHPEntityBase::Ptr_t func) { this->m_func = func; }
60 PHPEntityBase::Ptr_t GetFunc() const { return m_func; }
61 };
62
63 #endif // PHPENTITYFUNCTIONALIAS_H