Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv28704
Modified Files:
CEL-Str.cpp CEL-Str.h
Log Message:
<cel-str-sp/> added to get spaces.
Index: CEL-Str.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL/CEL-Str.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CEL-Str.cpp 11 Mar 2007 18:47:49 -0000 1.2
--- CEL-Str.cpp 13 Mar 2007 20:30:56 -0000 1.3
***************
*** 13,17 ****
: CelAtom()
{
! string=_string;
}
--- 13,20 ----
: CelAtom()
{
! if (!_string.empty())
! string=_string;
! else
! string="";
}
***************
*** 37,41 ****
--- 40,62 ----
+ CelStrSp::CelStrSp()
+ : CelAtom()
+ {
+ }
+ std::string CelStrSp::xmlEntityName(void)
+ {
+ return("cel-str-sp");
+ }
+
+
+ std::string CelStrSp::evaluate(void)
+ {
+ return(" ");
+ }
+
+ CelStrSp::~CelStrSp()
+ {
+ }
CelStrConcat::CelStrConcat()
Index: CEL-Str.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL/CEL-Str.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CEL-Str.h 11 Mar 2007 18:47:49 -0000 1.2
--- CEL-Str.h 13 Mar 2007 20:30:56 -0000 1.3
***************
*** 29,32 ****
--- 29,43 ----
};
+ class CelStrSp : public CelAtom {
+ protected:
+ virtual std::string xmlEntityName(void);
+ virtual std::string evaluate(void);
+
+ public:
+ CelStrSp();
+
+ virtual ~CelStrSp();
+ };
+
class CelStrConcat : public CelAtom {
protected:
|