Copy of old lessons from afs webpage

This commit is contained in:
2026-02-06 10:10:27 +01:00
commit 80df91d0df
43 changed files with 6945 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#include "epicsPV.h"
using namespace std;
int main (int argc, const char** argv)
{
try {
epicsPV pv(argv[1]);
pv.get();
cout << pv.name() << " = " << pv <<
" SEVR=" << pv.alarmSeverity() <<
" STAT=" << pv.alarmStatus() << endl;
if (argc == 3)
{
pv.put(argv[2]);
pv.get();
cout << pv.name() << " = " << pv <<
" SEVR=" << pv.alarmSeverity() <<
" STAT=" << pv.alarmStatus() << endl;
}
}
catch (exception& e)
{
cout << endl << "Error: " << e.what() << endl;
}
return 0;
}