Update of /cvsroot/cpptool/rfta/src/pyrfta
In directory sc8-pr-cvs1:/tmp/cvs-serv28189/src/pyrfta
Modified Files:
ExposeBase.cpp ExposeExpressions2.cpp ExposeStatements.cpp
Log Message:
* updated some, still need more for Declarator
Index: ExposeBase.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeBase.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ExposeBase.cpp 5 Apr 2003 18:29:01 -0000 1.1
--- ExposeBase.cpp 10 Apr 2003 08:40:34 -0000 1.2
***************
*** 2,5 ****
--- 2,6 ----
#include <boost/python.hpp>
#include <rfta/refactoring/CodeModelElement.h>
+ #include <rfta/refactoring/ChangeTrackers.h>
using namespace boost::python;
***************
*** 17,20 ****
--- 18,22 ----
.def( "wasAdded", &Change::wasAdded )
.def( "isUnmodified", &Change::isUnmodified )
+ .def( "hasSourceRange", &Change::hasSourceRange )
.def_readwrite( "type", &Change::type_ )
.def_readwrite( "oldRange", &Change::oldRange_ )
Index: ExposeExpressions2.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeExpressions2.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ExposeExpressions2.cpp 6 Apr 2003 07:20:23 -0000 1.1
--- ExposeExpressions2.cpp 10 Apr 2003 08:40:34 -0000 1.2
***************
*** 11,18 ****
exposeExpressions2()
{
- // Not derived from Element at the time
class_<Declarator, DeclaratorPtr, bases<Element>, boost::noncopyable>( "Declarator",
! init<std::string, std::string, std::string>() )
! .def( init<std::string, std::string, std::string, ExpressionPtr>() )
.add_property( "type", &Declarator::getType, &Declarator::setType )
.add_property( "typeSuffix", &Declarator::getTypeSuffix, &Declarator::setTypeSuffix )
--- 11,17 ----
exposeExpressions2()
{
class_<Declarator, DeclaratorPtr, bases<Element>, boost::noncopyable>( "Declarator",
! init<TypePartPtr, IdentifierPtr, TypePartPtr>() )
! .def( init<TypePartPtr, IdentifierPtr, TypePartPtr, ExpressionPtr>() )
.add_property( "type", &Declarator::getType, &Declarator::setType )
.add_property( "typeSuffix", &Declarator::getTypeSuffix, &Declarator::setTypeSuffix )
Index: ExposeStatements.cpp
===================================================================
RCS file: /cvsroot/cpptool/rfta/src/pyrfta/ExposeStatements.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ExposeStatements.cpp 6 Apr 2003 07:20:23 -0000 1.2
--- ExposeStatements.cpp 10 Apr 2003 08:40:34 -0000 1.3
***************
*** 15,23 ****
;
- class_<CompoundStatement::StatementChange, bases<Change> >( "CompoundStatementChange",
- init<Change::ChangeType, StatementPtr>() )
- // .def_readwrite( "statement", &CompoundStatement::StatementChange::statement_ )
- ;
-
class_<CompoundStatement, CompoundStatementPtr, bases<Statement>, boost::noncopyable >( "CompoundStatement" )
.def( "removeStatementAt", &CompoundStatement::removeStatementAt )
--- 15,18 ----
***************
*** 29,32 ****
--- 24,28 ----
.def( "getChangeCount", &CompoundStatement::getChangeCount )
.def( "getChangeAt", &CompoundStatement::getChangeAt )
+ .def( "getChangeStatementAt", &CompoundStatement::getChangeStatementAt )
;
|