Still working on initial version

This commit is contained in:
Marty Kraimer
2010-09-17 11:34:26 -04:00
parent 10c2be9a3f
commit 7abba9ef7b
7 changed files with 174 additions and 8 deletions

View File

@@ -6,6 +6,7 @@
#include "pvData.h"
#include "factory.h"
#include "AbstractPVField.h"
#include "BasePVDouble.h"
namespace epics { namespace pvData {
@@ -27,6 +28,13 @@ namespace epics { namespace pvData {
PVScalar *PVDataCreate::createPVScalar(PVStructure *parent,ScalarConstPtr scalar) const
{
ScalarType scalarType = scalar->getScalarType();
switch(scalarType) {
case pvDouble:
return new BasePVDouble(parent,scalar);
default:
throw std::logic_error(notImplemented);
}
throw std::logic_error(notImplemented);
};