Fixed const mess
This commit is contained in:
75
pvDataApp/factory/StandardField.cpp
Normal file
75
pvDataApp/factory/StandardField.cpp
Normal file
@@ -0,0 +1,75 @@
|
||||
/* StandardField.cpp */
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
#include <lock.h>
|
||||
#include "convert.h"
|
||||
#include "standardField.h"
|
||||
|
||||
namespace epics { namespace pvData {
|
||||
|
||||
static String notImplemented("not implemented");
|
||||
|
||||
StandardField::StandardField(){}
|
||||
|
||||
StandardField::~StandardField(){}
|
||||
|
||||
PVScalar * StandardField::scalarValue(ScalarType type)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
PVScalarArray * StandardField::scalarArrayValue(ScalarType elementType)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
PVStructure * StandardField::scalarValue(ScalarType type,String properties)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
PVStructure * StandardField::scalarArrayValue(ScalarType elementType,
|
||||
String properties)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
PVStructure * StandardField::enumeratedValue(StringArray choices)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
PVStructure * StandardField::enumeratedValue(StringArray choices,
|
||||
String properties)
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
PVStructure * StandardField::alarm()
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
PVStructure * StandardField::timeStamp()
|
||||
{
|
||||
throw std::logic_error(notImplemented);
|
||||
}
|
||||
|
||||
|
||||
static StandardField* instance = 0;
|
||||
|
||||
|
||||
class StandardFieldExt : public StandardField {
|
||||
public:
|
||||
StandardFieldExt(): StandardField(){};
|
||||
};
|
||||
|
||||
StandardField * getStandardField() {
|
||||
static Mutex *mutex = new Mutex();
|
||||
Lock xx(mutex);
|
||||
|
||||
if(instance==0) instance = new StandardFieldExt();
|
||||
return instance;
|
||||
}
|
||||
|
||||
}}
|
||||
Reference in New Issue
Block a user