1 /* 2 * This file is licensed under the GNU General Public License, version 3 3 * http://www.gnu.org/licenses/gpl-3.0.html 4 * 5 * Author: Darius Markauskas 6 * 7 */ 8 9 #ifndef LINEADDRESS_H_INCLUDED 10 #define LINEADDRESS_H_INCLUDED 11 12 #include <sdk.h> 13 #ifndef CB_PRECOMP 14 #include <wx/string.h> 15 #endif 16 #include <list> 17 18 19 class LineAddress; 20 typedef std::list<LineAddress> JumpAddressList; 21 22 class LineAddress 23 { 24 public: 25 LineAddress(); 26 ~LineAddress(); 27 28 void Init(const wxString& fileName, int lineNumber, bool isFinish); 29 bool IsSameAs(LineAddress &other); GetFilename()30 wxString GetFilename()const {return m_Filename;}; GetLineNumber()31 int GetLineNumber()const {return m_LineNumber;}; IsFinish()32 bool IsFinish()const {return m_IsFinish;}; 33 34 private: 35 wxString m_Filename; 36 int m_LineNumber; 37 bool m_IsFinish; 38 }; 39 40 #endif //LINEADDRESS_H_INCLUDED 41