Source-highlight Library
|
00001 // 00002 // C++ Interface: parsestruct 00003 // 00004 // Description: 00005 // 00006 // 00007 // Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004 00008 // 00009 // Copyright: See COPYING file that comes with this distribution 00010 // 00011 // 00012 00013 #ifndef PARSESTRUCT_H 00014 #define PARSESTRUCT_H 00015 00016 #include <string> 00017 #include <boost/shared_ptr.hpp> 00018 00019 namespace srchilite { 00020 00021 struct ParseStruct 00022 { 00023 const std::string path; 00024 const std::string file_name; 00025 unsigned int line; 00026 unsigned int pos; 00027 00028 ParseStruct(const std::string &pa, const std::string &name) : 00029 path(pa), file_name(name), line(1), pos(0) {} 00030 }; 00031 00032 typedef boost::shared_ptr<ParseStruct> ParseStructPtr; 00033 00034 } 00035 00036 #endif // PARSESTRUCT_H