Update of /cvsroot/cpptool/rfta/include/rfta/refactoring
In directory sc8-pr-cvs1:/tmp/cvs-serv18423/include/rfta/refactoring
Modified Files:
CodeModelElement.h CodeModelExpressions.h
Log Message:
* introduced TextElement base class for simple text holder element
* refactored some to use TextElement
Index: CodeModelElement.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/include/rfta/refactoring/CodeModelElement.h,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** CodeModelElement.h 26 May 2003 21:12:33 -0000 1.15
--- CodeModelElement.h 28 May 2003 07:34:54 -0000 1.16
***************
*** 73,76 ****
--- 73,90 ----
+ class RFTA_API TextElement : public Element
+ {
+ public:
+ TextElement( const std::string &text );
+
+ protected:
+ std::string getElementText() const;
+
+ private:
+ std::string text_;
+ };
+
+
+
} // namespace CodeModel
Index: CodeModelExpressions.h
===================================================================
RCS file: /cvsroot/cpptool/rfta/include/rfta/refactoring/CodeModelExpressions.h,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** CodeModelExpressions.h 10 Apr 2003 08:37:47 -0000 1.16
--- CodeModelExpressions.h 28 May 2003 07:34:54 -0000 1.17
***************
*** 51,55 ****
! class RFTA_API TypePart : public Element
{
public:
--- 51,55 ----
! class RFTA_API TypePart : public TextElement
{
public:
***************
*** 60,66 ****
// overridden from Element
void accept( ElementVisitor &visitor );
-
- private:
- std::string typePart_;
};
--- 60,63 ----
|