Update of /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30458
Modified Files:
CEL-Version.cpp CEL-Version.h
Log Message:
Version is coded both for internal usage (as std::string coding a formated int) and XML usage.
Index: CEL-Version.h
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL/CEL-Version.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CEL-Version.h 5 Mar 2007 20:32:40 -0000 1.1
--- CEL-Version.h 6 Mar 2007 19:31:15 -0000 1.2
***************
*** 25,29 ****
--- 25,32 ----
protected:
std::string version;
+ std::string x_version;
+
virtual std::string xmlEntityName(void);
+ virtual std::string xmlValue(void);
public:
Index: CEL-Version.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/libcompbenchmarks/CEL/CEL-Version.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CEL-Version.cpp 5 Mar 2007 20:32:40 -0000 1.1
--- CEL-Version.cpp 6 Mar 2007 19:31:15 -0000 1.2
***************
*** 15,18 ****
--- 15,19 ----
: CelAtom()
{
+ version=_version;
setInternal(_version);
updateVersion();
***************
*** 24,27 ****
--- 25,33 ----
}
+ std::string CelVersion::xmlValue(void)
+ {
+ return(version);
+ }
+
void CelVersion::setInternal(std::string _version)
{
***************
*** 75,84 ****
/* sprintf(c, "%d", internal); */
sprintf(c, "%0*d", digits, internal);
! version=c;
}
std::string CelVersion::Evaluate(void)
{
! return(version);
}
--- 81,90 ----
/* sprintf(c, "%d", internal); */
sprintf(c, "%0*d", digits, internal);
! x_version=c;
}
std::string CelVersion::Evaluate(void)
{
! return(x_version);
}
|