Update of /cvsroot/cpptool/rfta/src/pyrfta
In directory sc8-pr-cvs1:/tmp/cvs-serv10010/src/pyrfta
Modified Files:
ExposeCPPParser.cpp ExposeStatements.cpp Forwards.h pyrfta.cpp
pyrfta.dsp
Log Message:
* exposed code model declaration and parser
Index: ExposeCPPParser.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeCPPParser.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ExposeCPPParser.cpp 27 Apr 2003 13:00:52 -0000 1.1
--- ExposeCPPParser.cpp 28 May 2003 20:47:27 -0000 1.2
***************
*** 4,7 ****
--- 4,8 ----
#include <rfta/parser/ASTNodePropertyVisitor.h>
#include <rfta/parser/ASTNodeVisitor.h>
+ #include <rfta/refactoring/CodeModelParser.h>
using namespace boost::python;
***************
*** 51,54 ****
--- 52,59 ----
exposeCPPParser()
{
+ class_<CodeModel::Parser>( "Parser", init<std::string>() )
+ .def( "getFunctionAt", &CodeModel::Parser::getFunctionAt )
+ ;
+
class_<CPPParser>( "CPPParser", init<std::string>() )
.def( "parseAll", &CPPParser::parseAll )
Index: ExposeStatements.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeStatements.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ExposeStatements.cpp 30 Apr 2003 08:06:29 -0000 1.4
--- ExposeStatements.cpp 28 May 2003 20:47:27 -0000 1.5
***************
*** 14,18 ****
void (Statement::*mfAcceptStatementVisitor)( StatementVisitor & ) = &Statement::accept;
! class_<Statement, bases<Element>, boost::noncopyable >( "Statement", no_init )
.def( "accept", mfAcceptStatementVisitor )
;
--- 14,18 ----
void (Statement::*mfAcceptStatementVisitor)( StatementVisitor & ) = &Statement::accept;
! class_<Statement, StatementPtr, bases<Element>, boost::noncopyable >( "Statement", no_init )
.def( "accept", mfAcceptStatementVisitor )
;
Index: Forwards.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/Forwards.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Forwards.h 27 Apr 2003 13:00:53 -0000 1.3
--- Forwards.h 28 May 2003 20:47:27 -0000 1.4
***************
*** 11,14 ****
--- 11,15 ----
void exposeExpressions();
void exposeExpressions2();
+ void exposeDeclarations();
Index: pyrfta.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/pyrfta.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pyrfta.cpp 27 Apr 2003 13:00:53 -0000 1.6
--- pyrfta.cpp 28 May 2003 20:47:27 -0000 1.7
***************
*** 102,105 ****
--- 102,106 ----
exposeExpressions();
exposeExpressions2();
+ exposeDeclarations();
class_<B, boost::shared_ptr<B> >( "B", init<int>() )
Index: pyrfta.dsp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/pyrfta.dsp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** pyrfta.dsp 16 May 2003 19:55:01 -0000 1.7
--- pyrfta.dsp 28 May 2003 20:47:27 -0000 1.8
***************
*** 124,127 ****
--- 124,131 ----
# Begin Source File
+ SOURCE=.\ExposeDeclarations.cpp
+ # End Source File
+ # Begin Source File
+
SOURCE=..\..\include\xtl\python\ExposeEnumerator.h
# End Source File
|