From: <bl...@us...> - 2003-05-28 07:36:25
|
Update of /cvsroot/cpptool/rfta/include/rfta/refactoring In directory sc8-pr-cvs1:/tmp/cvs-serv19238/include/rfta/refactoring Added Files: CodeModelParser.h Log Message: * added CodeModelParser, similar to CPPParser but returns CodeModel object instead of ASTNode. --- NEW FILE: CodeModelParser.h --- #ifndef RFTA_CODEMODELPARSER_H_INCLUDED #define RFTA_CODEMODELPARSER_H_INCLUDED #include <rfta/refactoring/Config.h> #include <rfta/parser/CPPParser.h> #include <rfta/refactoring/CodeModelForward.h> namespace Refactoring { namespace CodeModel { class RFTA_API Parser { public: Parser( const std::string &source ); /*! Returns the function body which contains the specified location. * \return Compound statement if a function body is found including * the specified location, 0 otherwise. * \exception ParserError is throw if a failure occurs during parsing. */ FunctionDeclarationPtr getFunctionBodyAt( int position ); private: CPPParser parser_; }; }} // namespace Refactoring { namespace CodeModel #endif // RFTA_CODEMODELPARSER_H_INCLUDED |