47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/* pvDisplay.h */
|
|
/**
|
|
* Copyright - See the COPYRIGHT that is included with this distribution.
|
|
* EPICS pvData is distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
*/
|
|
/**
|
|
* @author mrk
|
|
*/
|
|
#ifndef PVDISPLAY_H
|
|
#define PVDISPLAY_H
|
|
|
|
#include <string>
|
|
|
|
#include <pv/pvType.h>
|
|
#include <pv/pvData.h>
|
|
#include <pv/display.h>
|
|
|
|
#include <shareLib.h>
|
|
|
|
namespace epics { namespace pvData {
|
|
|
|
class epicsShareClass PVDisplay {
|
|
public:
|
|
PVDisplay() {}
|
|
//default constructors and destructor are OK
|
|
//An automatic detach is issued if already attached.
|
|
bool attach(PVFieldPtr const & pvField);
|
|
void detach();
|
|
bool isAttached();
|
|
// each of the following throws logic_error is not attached to PVField
|
|
// a set returns false if field is immutable
|
|
void get(Display &) const;
|
|
bool set(Display const & display);
|
|
private:
|
|
static String noDisplayFound;
|
|
static String notAttached;
|
|
PVStringPtr pvDescription;
|
|
PVStringPtr pvFormat;
|
|
PVStringPtr pvUnits;
|
|
PVDoublePtr pvLow;
|
|
PVDoublePtr pvHigh;
|
|
};
|
|
|
|
}}
|
|
#endif /* PVDISPLAY_H */
|