From: <bl...@us...> - 2003-05-29 17:09:40
|
Update of /cvsroot/cpptool/rfta/src/pyrfta In directory sc8-pr-cvs1:/tmp/cvs-serv20024/src/pyrfta Modified Files: ExposeExpressions.cpp ExposeExpressions2.cpp ExposeStatements3.cpp pyrfta.dsp Log Message: * added missing exposition * now run .bat to install dlls in src/pyrfta/test/rfta Index: ExposeExpressions.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeExpressions.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExposeExpressions.cpp 6 Apr 2003 07:42:16 -0000 1.2 --- ExposeExpressions.cpp 29 May 2003 17:00:12 -0000 1.3 *************** *** 3,6 **** --- 3,7 ---- #include <rfta/refactoring/CodeModelStatements.h> #include <rfta/refactoring/CodeModelExpressions.h> + #include <xtl/python/ExposeEnumerator.h> using namespace boost::python; *************** *** 27,30 **** --- 28,37 ---- ; + class_<Identifier, IdentifierPtr, bases<Element>, boost::noncopyable>( "Identifier", + init<std::string>() ) + .add_property( "identifier", &Identifier::getIdentifier ) + ; + + Xtl::Python::ExposeEnumerator<DeclaratorPtr>( "DeclaratorEnumerator" ); class_<DeclaratorExpression, DeclaratorExpressionPtr, bases<Expression>, boost::noncopyable>( "DeclaratorExpression", init<TypePartPtr>() ) *************** *** 33,36 **** --- 40,44 ---- .def( "getDeclaratorCount", &DeclaratorExpression::getDeclaratorCount ) .def( "getDeclaratorAt", &DeclaratorExpression::getDeclaratorAt ) + .def( "getDeclarators", &DeclaratorExpression::getDeclarators ) .def( "insertDeclaratorAt", &DeclaratorExpression::insertDeclaratorAt ) .def( "appendDeclarator", &DeclaratorExpression::appendDeclarator ) Index: ExposeExpressions2.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeExpressions2.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExposeExpressions2.cpp 10 Apr 2003 08:40:34 -0000 1.2 --- ExposeExpressions2.cpp 29 May 2003 17:00:12 -0000 1.3 *************** *** 16,20 **** .add_property( "type", &Declarator::getType, &Declarator::setType ) .add_property( "typeSuffix", &Declarator::getTypeSuffix, &Declarator::setTypeSuffix ) ! .add_property( "getName", &Declarator::getName, &Declarator::setName ) .def( "hasInitializer", &Declarator::hasInitializer ) .add_property( "initializer", &Declarator::getInitializer, &Declarator::setInitializer ) --- 16,20 ---- .add_property( "type", &Declarator::getType, &Declarator::setType ) .add_property( "typeSuffix", &Declarator::getTypeSuffix, &Declarator::setTypeSuffix ) ! .add_property( "name", &Declarator::getName, &Declarator::setName ) .def( "hasInitializer", &Declarator::hasInitializer ) .add_property( "initializer", &Declarator::getInitializer, &Declarator::setInitializer ) Index: ExposeStatements3.cpp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeStatements3.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ExposeStatements3.cpp 6 Apr 2003 07:20:23 -0000 1.2 --- ExposeStatements3.cpp 29 May 2003 17:00:12 -0000 1.3 *************** *** 40,42 **** --- 40,50 ---- class_<NullStatement, NullStatementPtr, bases<Statement>, boost::noncopyable >( "NullStatement" ) ; + + + class_<DeclarationStatement, DeclarationStatementPtr, bases<Statement>, + boost::noncopyable >( "DeclarationStatement", init<DeclaratorExpressionPtr>() ) + .add_property( "declaration", + &DeclarationStatement::getDeclaration, + &DeclarationStatement::setDeclaration ) + ; } Index: pyrfta.dsp =================================================================== RCS file: /cvsroot/cpptool/rfta/src/pyrfta/pyrfta.dsp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** pyrfta.dsp 29 May 2003 14:05:51 -0000 1.9 --- pyrfta.dsp 29 May 2003 17:00:12 -0000 1.10 *************** *** 58,62 **** TargetPath=\prg\vc\Rfta\build\pyrfta\Release\_pyrfta.pyd SOURCE="$(InputPath)" ! PostBuild_Cmds=copy $(TargetPath) ..\..\bin\_pyrfta.pyd # End Special Build Tool --- 58,62 ---- TargetPath=\prg\vc\Rfta\build\pyrfta\Release\_pyrfta.pyd SOURCE="$(InputPath)" ! PostBuild_Cmds=copy $(TargetPath) ..\..\bin\_pyrfta.pyd cd ..\..\bin\ install-python-extension.bat # End Special Build Tool *************** *** 89,93 **** TargetPath=\prg\vc\Rfta\build\pyrfta\Debug\_pyrfta.pyd SOURCE="$(InputPath)" ! PostBuild_Cmds=copy $(TargetPath) ..\..\bin\_pyrfta.pyd # End Special Build Tool --- 89,93 ---- TargetPath=\prg\vc\Rfta\build\pyrfta\Debug\_pyrfta.pyd SOURCE="$(InputPath)" ! PostBuild_Cmds=copy $(TargetPath) ..\..\bin\_pyrfta.pyd cd ..\..\bin\ install-python-extension.bat # End Special Build Tool |