Debian Codegraph @

CodeLite/PHPEntityNamespace.h

raw
1 //////////////////////////////////////////////////////////////////////////////
2 //////////////////////////////////////////////////////////////////////////////
3 //
4 // Copyright : (C) 2015 Eran Ifrah
5 // File name : PHPEntityNamespace.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 PHPENTITYNAMESPACE_H
27 #define PHPENTITYNAMESPACE_H
28
29 #include "codelite_exports.h"
30 #include "PHPEntityBase.h" // Base class: PHPEntityBase
31 #include <wx/string.h>
32
33 class WXDLLIMPEXP_CL PHPEntityNamespace : public PHPEntityBase
34 {
35 protected:
36 void DoEnsureNamespacePathExists(wxSQLite3Database& db, const wxString& path);
37
38 public:
39 void FromJSON(const JSONItem& json);
40 JSONItem ToJSON() const;
41
42 wxString GetParentNamespace() const;
43 virtual wxString FormatPhpDoc(const CommentConfigData& data) const;
44 virtual wxString GetDisplayName() const;
45 virtual bool Is(eEntityType type) const;
46 virtual wxString Type() const;
47 virtual void FromResultSet(wxSQLite3ResultSet& res);
48 virtual void Store(PHPLookupTable* lookup);
49 virtual void PrintStdout(int indent) const;
50 PHPEntityNamespace();
51 virtual ~PHPEntityNamespace();
52
53 /**
54 * @brief build namespace from 2 strings
55 */
56 static wxString BuildNamespace(const wxString &part1, const wxString &part2);
57 };
58
59 #endif // PHPENTITYNAMESPACE_H