32 lines
664 B
C++
32 lines
664 B
C++
/*PVScalar.cpp*/
|
|
/*
|
|
* Copyright information and license terms for this software can be
|
|
* found in the file LICENSE that is included with the distribution
|
|
*/
|
|
/**
|
|
* @author mrk
|
|
*/
|
|
#include <cstddef>
|
|
#include <cstdlib>
|
|
#include <string>
|
|
#include <cstdio>
|
|
|
|
#define epicsExportSharedSymbols
|
|
#include <pv/pvData.h>
|
|
#include <pv/factory.h>
|
|
|
|
using std::tr1::static_pointer_cast;
|
|
|
|
namespace epics { namespace pvData {
|
|
|
|
PVScalar::~PVScalar() {}
|
|
|
|
PVScalar::PVScalar(ScalarConstPtr const & scalar)
|
|
: PVField(scalar) {}
|
|
|
|
const ScalarConstPtr PVScalar::getScalar() const
|
|
{
|
|
return static_pointer_cast<const Scalar>(PVField::getField());
|
|
}
|
|
}}
|