66 lines
2.4 KiB
C++
66 lines
2.4 KiB
C++
/* standardField.h */
|
|
/**
|
|
* Copyright - See the COPYRIGHT that is included with this distribution.
|
|
* EPICS pvDataCPP is distributed subject to a Software License Agreement found
|
|
* in file LICENSE that is included with this distribution.
|
|
*/
|
|
#ifndef STANDARDFIELD_H
|
|
#define STANDARDFIELD_H
|
|
#include <string>
|
|
#include <stdexcept>
|
|
#include <pv/pvIntrospect.h>
|
|
|
|
namespace epics { namespace pvData {
|
|
|
|
class StandardField : private NoDefaultMethods {
|
|
public:
|
|
StandardField();
|
|
~StandardField();
|
|
ScalarConstPtr scalar(String fieldName,ScalarType type);
|
|
StructureConstPtr scalar(String fieldName,
|
|
ScalarType type,String properties);
|
|
ScalarArrayConstPtr scalarArray(String fieldName,
|
|
ScalarType elementType);
|
|
StructureConstPtr scalarArray(String fieldName,
|
|
ScalarType elementType, String properties);
|
|
StructureArrayConstPtr structureArray(String fieldName,
|
|
StructureConstPtr structure);
|
|
StructureConstPtr structureArray(String fieldName,
|
|
StructureConstPtr structure,String properties);
|
|
StructureConstPtr structure(String fieldName,
|
|
int numFields,FieldConstPtrArray fields);
|
|
StructureConstPtr enumerated(String fieldName);
|
|
StructureConstPtr enumerated(String fieldName, String properties);
|
|
ScalarConstPtr scalarValue(ScalarType type);
|
|
StructureConstPtr scalarValue(ScalarType type,String properties);
|
|
ScalarArrayConstPtr scalarArrayValue(ScalarType elementType);
|
|
StructureConstPtr scalarArrayValue(ScalarType elementType,
|
|
String properties);
|
|
StructureArrayConstPtr structureArrayValue(StructureConstPtr structure);
|
|
StructureConstPtr structureArrayValue(StructureConstPtr structure,
|
|
String properties);
|
|
StructureConstPtr structureValue(
|
|
int numFields,FieldConstPtrArray fields);
|
|
StructureConstPtr enumeratedValue();
|
|
StructureConstPtr enumeratedValue(String properties);
|
|
StructureConstPtr alarm();
|
|
StructureConstPtr timeStamp();
|
|
StructureConstPtr display();
|
|
StructureConstPtr control();
|
|
StructureConstPtr booleanAlarm();
|
|
StructureConstPtr byteAlarm();
|
|
StructureConstPtr shortAlarm();
|
|
StructureConstPtr intAlarm();
|
|
StructureConstPtr longAlarm();
|
|
StructureConstPtr floatAlarm();
|
|
StructureConstPtr doubleAlarm();
|
|
StructureConstPtr enumeratedAlarm();
|
|
private:
|
|
static void init();
|
|
};
|
|
|
|
extern StandardField * getStandardField();
|
|
|
|
}}
|
|
#endif /* STANDARDFIELD_H */
|