Files
pvAccess/pvAccessApp/ca/version.cpp
miha_vitorovic 5379cd638a - Finished the ArrayFIFO test and debugged the implementation.
- Moved all the local #include directives to the top of the files, to catch any missing global #include directives.
2010-11-11 09:14:39 +01:00

45 lines
1.0 KiB
C++

/*
* version.cpp
*
* Created on: Oct 8, 2010
* Author: Miha Vitorovic
*/
#include <sstream>
#include "version.h"
using std::stringstream;
using epics::pvData::String;
namespace epics {
namespace pvAccess {
const String Version::getLongVersionString() const {
stringstream ret;
ret<<getProductName()<<" ["<<getImplementationLanguage();
ret<<"] v"<<getMajorVersion()<<"."<<getMinorVersion()<<".";
if(getDevelopmentVersion()>0) {
ret<<"D"<<getDevelopmentVersion();
} else
ret<<getMaintenanceVersion();
return ret.str();
}
const String Version::getVersionString() const {
stringstream ret;
ret<<getProductName()<<" v"<<getMajorVersion()<<".";
ret<<getMinorVersion()<<".";
if(getDevelopmentVersion()>0) {
ret<<"D"<<getDevelopmentVersion();
} else
ret<<getMaintenanceVersion();
return ret.str();
}
}
}