14 #include <epicsThread.h> 17 #include <pv/pvAccess.h> 18 #include <pv/serverContext.h> 19 #include <pv/pvData.h> 20 #include <pv/pvTimeStamp.h> 21 #include <pv/rpcService.h> 24 #include <epicsExport.h> 25 #define epicsExportSharedSymbols 36 static const iocshArg testArg0 = {
"recordName", iocshArgString };
37 static const iocshArg testArg1 = {
"delay", iocshArgDouble };
38 static const iocshArg *testArgs[] = {
41 static const iocshFuncDef processRecordFuncDef = {
"processRecordCreate", 2,testArgs};
43 static void processRecordCallFunc(
const iocshArgBuf *args)
45 char *recordName = args[0].sval;
47 throw std::runtime_error(
"processRecordCreate invalid number of arguments");
49 double delay = args[1].dval;
50 if(delay<0.0) delay = 1.0;
52 bool result = PVDatabase::getMaster()->addRecord(record);
53 if(!result) cout <<
"recordname" <<
" not added" << endl;
56 static void processRecordRegister(
void)
58 static int firstTime = 1;
61 iocshRegister(&processRecordFuncDef, processRecordCallFunc);
epicsExportRegistrar(processRecordRegister)
std::tr1::shared_ptr< ProcessRecord > ProcessRecordPtr