Debian Codegraph @

CodeLite/PHPDocProperty.h

raw
1 #ifndef PHPDOCPROPERTY_H
2 #define PHPDOCPROPERTY_H
3
4 #include "PHPSourceFile.h"
5 #include "codelite_exports.h"
6 #include "wxStringHash.h"
7 #include <tuple>
8 #include <vector>
9
10 class WXDLLIMPEXP_CL PHPDocProperty
11 {
12 public:
13 typedef std::vector<std::tuple<wxString, wxString, wxString> > Tuple_t;
14
15 protected:
16 PHPSourceFile& m_sourceFile;
17 const wxString& m_comment;
18 PHPDocProperty::Tuple_t m_params;
19
20 bool NextWord(const wxString& str, size_t &offset, wxString& word);
21
22 public:
23 PHPDocProperty(PHPSourceFile& sourceFile, const wxString& comment);
24 ~PHPDocProperty();
25
26 /**
27 * @brief parse comment for @params
28 */
29 const PHPDocProperty::Tuple_t& ParseParams();
30 /**
31 * @brief parse comment for @method
32 */
33 const PHPDocProperty::Tuple_t& ParseMethods();
34 };
35
36 #endif // PHPDOCPROPERTY_H