Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30853
Modified Files:
CEL-Atom.cpp CEL-Atom.h
Log Message:
New CelContainer class.
Index: CEL-Atom.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL/CEL-Atom.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CEL-Atom.h 5 Mar 2007 20:32:39 -0000 1.1
--- CEL-Atom.h 6 Mar 2007 19:32:00 -0000 1.2
***************
*** 35,38 ****
--- 35,50 ----
virtual ~CelAtom();
};
+
+ class CelContainer : public CelAtom {
+ protected:
+ public:
+ CelContainer();
+
+ virtual std::string xmlEntityName(void);
+ virtual std::string Evaluate(void);
+
+ virtual ~CelContainer();
+ };
+
}
Index: CEL-Atom.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL/CEL-Atom.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CEL-Atom.cpp 5 Mar 2007 20:32:39 -0000 1.1
--- CEL-Atom.cpp 6 Mar 2007 19:32:00 -0000 1.2
***************
*** 98,99 ****
--- 98,129 ----
{
}
+
+ CelContainer::CelContainer()
+ : CelAtom()
+ {
+ }
+
+ std::string CelContainer::xmlEntityName(void)
+ {
+ return("cel");
+ }
+
+ std::string CelContainer::Evaluate(void)
+ {
+ int i;
+ int n = childs.size();
+ CelAtom *A;
+
+ std::string r;
+
+ for(i=0; i<n; i++) {
+ A=childs[i];
+ r=A->Evaluate();
+ }
+
+ return(r);
+ }
+
+ CelContainer::~CelContainer()
+ {
+ }
|