00001
00002 #ifndef _EPICS_PVFLOAT_H
00003 #define _EPICS_PVFLOAT_H
00004
00005 #include "epics/pvdata/PVField.h"
00006
00007 namespace EPICS
00008 {
00009
00012 class PVFloat : public PVField
00013 {
00014 public:
00015
00017 PVFloat();
00018
00020 PVFloat(const PVFloat& pvFloat);
00021
00022 public:
00023
00024
00025
00026 virtual PVField* clone() const;
00027
00028 virtual const FieldType* getType() const;
00029
00030 virtual int getByteSize() const;
00031
00032 public:
00033
00035 void put(float value) { m_value = value; }
00036
00038 float get() const { return m_value; }
00039
00041 float& get() { return m_value; }
00042
00043 protected:
00044
00046 float m_value;
00047
00048
00049 };
00050 }
00051
00052
00053 #endif
00054