Update of /cvsroot/cpptool/rfta/include/rfta/refactoring
In directory sc8-pr-cvs1:/tmp/cvs-serv23046/include/rfta/refactoring
Modified Files:
CodeModelElement.h CodeModelForward.h
Log Message:
* renamed CodeModel.[ch] to CodeModelGenerator.[ch]
* introduced a level of indirection between the code model and ast node, there allowing for alternative parser implementation.
Index: CodeModelElement.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/include/rfta/refactoring/CodeModelElement.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CodeModelElement.h 10 Apr 2003 08:37:46 -0000 1.14
--- CodeModelElement.h 26 May 2003 21:12:33 -0000 1.15
***************
*** 7,11 ****
#include <rfta/refactoring/CodeModelForward.h>
! #include <rfta/parser/ASTNodeForward.h>
#include <boost/enable_shared_from_this.hpp>
#include <boost/utility.hpp>
--- 7,11 ----
#include <rfta/refactoring/CodeModelForward.h>
! #include <rfta/parser/SourceRange.h>
#include <boost/enable_shared_from_this.hpp>
#include <boost/utility.hpp>
***************
*** 15,18 ****
--- 15,32 ----
+ class RFTA_API ElementASTSource
+ {
+ public:
+ virtual ~ElementASTSource()
+ {
+ }
+
+ virtual SourceRange getSourceRange() const = 0;
+
+ virtual std::string getSourceText() const = 0;
+ };
+
+
+
/// This class represents
class RFTA_API Element : public boost::enable_shared_from_this<Element>
***************
*** 39,43 ****
/** Set the source for this element.
*/
! void setSource( const ASTNodePtr &node );
virtual void accept( ElementVisitor &visitor );
--- 53,57 ----
/** Set the source for this element.
*/
! void setSource( const ElementASTSourcePtr &node );
virtual void accept( ElementVisitor &visitor );
***************
*** 55,59 ****
virtual void setElementIsFromSource();
! ASTNodePtr node_;
};
--- 69,73 ----
virtual void setElementIsFromSource();
! ElementASTSourcePtr astSource_;
};
Index: CodeModelForward.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/include/rfta/refactoring/CodeModelForward.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CodeModelForward.h 6 Apr 2003 18:06:59 -0000 1.14
--- CodeModelForward.h 26 May 2003 21:12:33 -0000 1.15
***************
*** 12,15 ****
--- 12,16 ----
class Change;
+ class ElementASTSource;
class Element;
class Label;
***************
*** 69,72 ****
--- 70,74 ----
typedef boost::shared_ptr<Element> ElementPtr;
+ typedef boost::shared_ptr<ElementASTSource> ElementASTSourcePtr;
typedef boost::shared_ptr<Label> LabelPtr;
typedef boost::shared_ptr<TypePart> TypePartPtr;
|