13 #include <epicsThread.h> 16 #include <pv/pvAccess.h> 17 #include <pv/serverContext.h> 18 #include <pv/pvData.h> 19 #include <pv/pvTimeStamp.h> 20 #include <pv/rpcService.h> 23 #include <epicsExport.h> 24 #define epicsExportSharedSymbols 34 static const iocshArg testArg0 = {
"recordName", iocshArgString };
35 static const iocshArg *testArgs[] = {
38 static const iocshFuncDef removeRecordFuncDef = {
"removeRecordCreate", 1,testArgs};
40 static void removeRecordCallFunc(
const iocshArgBuf *args)
42 char *recordName = args[0].sval;
44 throw std::runtime_error(
"removeRecordCreate invalid number of arguments");
47 bool result = PVDatabase::getMaster()->addRecord(record);
48 if(!result) cout <<
"recordname" <<
" not added" << endl;
51 static void removeRecordRegister(
void)
53 static int firstTime = 1;
56 iocshRegister(&removeRecordFuncDef, removeRecordCallFunc);
std::tr1::shared_ptr< RemoveRecord > RemoveRecordPtr
epicsExportRegistrar(removeRecordRegister)