Program Listing for File PVScalar.cpp

Return to documentation for file (src/factory/PVScalar.cpp)

/*PVScalar.cpp*/
/*
 * Copyright information and license terms for this software can be
 * found in the file LICENSE that is included with the distribution
 */
#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());
    }
}}