Added utils and tests for it. It's a work in progress. ArrayFIFOTest is still not finished.

This commit is contained in:
miha_vitorovic
2010-11-10 14:17:36 +01:00
parent 620f0f0681
commit f53aad747c
17 changed files with 1743 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
/*
* version.cpp
*
* Created on: Oct 8, 2010
* Author: Miha Vitorovic
*/
#include "version.h"
namespace epics {
namespace pvAccess {
using epics::pvData::String;
const String Version::getLongVersionString() const {
String ret;
ret += getProductName();
ret += " [";
ret += getImplementationLanguage();
ret += "] v";
ret += getMajorVersion();
ret += ".";
ret += getMinorVersion();
ret += ".";
if(getDevelopmentVersion()>0) {
ret += "D";
ret += getDevelopmentVersion();
} else
ret += getMaintenanceVersion();
return ret;
}
const String Version::getVersionString() const {
String ret;
ret += getProductName();
ret += " v";
ret += getMajorVersion();
ret += ".";
ret += getMinorVersion();
ret += ".";
if(getDevelopmentVersion()>0) {
ret += "D";
ret += getDevelopmentVersion();
} else
ret += getMaintenanceVersion();
return ret;
}
}
}