25 #define epicsExportSharedSymbols 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;
epicsExportRegistrar(processRecordRegister)
void iocshRegister(const char *name)
C++ and C descriptions for a thread.
std::tr1::shared_ptr< ProcessRecord > ProcessRecordPtr