another atrempt to fix jenkins failure
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author mrk
|
* @author mrk
|
||||||
* @date 2021.03.12
|
* @date 2021.04.07
|
||||||
*/
|
*/
|
||||||
#include <iocsh.h>
|
#include <iocsh.h>
|
||||||
#include <pv/standardField.h>
|
#include <pv/standardField.h>
|
||||||
@ -20,13 +20,12 @@
|
|||||||
// The following must be the last include for code exampleLink uses
|
// The following must be the last include for code exampleLink uses
|
||||||
#include <epicsExport.h>
|
#include <epicsExport.h>
|
||||||
#define epicsExportSharedSymbols
|
#define epicsExportSharedSymbols
|
||||||
#include "pv/pvStructureCopy.h"
|
|
||||||
#include "pv/channelProviderLocal.h"
|
|
||||||
#include "pv/pvDatabase.h"
|
#include "pv/pvDatabase.h"
|
||||||
using namespace epics::pvData;
|
using namespace epics::pvData;
|
||||||
using namespace epics::pvDatabase;
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
namespace epics { namespace pvDatabase {
|
||||||
|
|
||||||
class PvdbcrAddRecord;
|
class PvdbcrAddRecord;
|
||||||
typedef std::tr1::shared_ptr<PvdbcrAddRecord> PvdbcrAddRecordPtr;
|
typedef std::tr1::shared_ptr<PvdbcrAddRecord> PvdbcrAddRecordPtr;
|
||||||
|
|
||||||
@ -122,6 +121,7 @@ void PvdbcrAddRecord::process()
|
|||||||
pvResult->put("failure");
|
pvResult->put("failure");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
static const iocshArg arg0 = { "recordName", iocshArgString };
|
static const iocshArg arg0 = { "recordName", iocshArgString };
|
||||||
static const iocshArg arg1 = { "asLevel", iocshArgInt };
|
static const iocshArg arg1 = { "asLevel", iocshArgInt };
|
||||||
@ -143,10 +143,10 @@ static void pvdbcrAddRecordCallFunc(const iocshArgBuf *args)
|
|||||||
if(sval) {
|
if(sval) {
|
||||||
asGroup = string(sval);
|
asGroup = string(sval);
|
||||||
}
|
}
|
||||||
PvdbcrAddRecordPtr record = PvdbcrAddRecord::create(recordName);
|
epics::pvDatabase::PvdbcrAddRecordPtr record = epics::pvDatabase::PvdbcrAddRecord::create(recordName);
|
||||||
record->setAsLevel(asLevel);
|
record->setAsLevel(asLevel);
|
||||||
record->setAsGroup(asGroup);
|
record->setAsGroup(asGroup);
|
||||||
PVDatabasePtr master = PVDatabase::getMaster();
|
epics::pvDatabase::PVDatabasePtr master = epics::pvDatabase::PVDatabase::getMaster();
|
||||||
bool result = master->addRecord(record);
|
bool result = master->addRecord(record);
|
||||||
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author mrk
|
* @author mrk
|
||||||
* @date 2021.03.12
|
* @date 2021.04.07
|
||||||
*/
|
*/
|
||||||
#include <epicsThread.h>
|
#include <epicsThread.h>
|
||||||
#include <epicsGuard.h>
|
#include <epicsGuard.h>
|
||||||
@ -23,14 +23,12 @@
|
|||||||
|
|
||||||
#include <epicsExport.h>
|
#include <epicsExport.h>
|
||||||
#define epicsExportSharedSymbols
|
#define epicsExportSharedSymbols
|
||||||
#include "pv/pvStructureCopy.h"
|
|
||||||
#include "pv/channelProviderLocal.h"
|
|
||||||
#include "pv/pvDatabase.h"
|
#include "pv/pvDatabase.h"
|
||||||
|
|
||||||
using namespace epics::pvData;
|
using namespace epics::pvData;
|
||||||
using namespace epics::pvDatabase;
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
namespace epics { namespace pvDatabase {
|
||||||
|
|
||||||
typedef std::tr1::shared_ptr<epicsThread> EpicsThreadPtr;
|
typedef std::tr1::shared_ptr<epicsThread> EpicsThreadPtr;
|
||||||
class PvdbcrProcessRecord;
|
class PvdbcrProcessRecord;
|
||||||
typedef std::tr1::shared_ptr<PvdbcrProcessRecord> PvdbcrProcessRecordPtr;
|
typedef std::tr1::shared_ptr<PvdbcrProcessRecord> PvdbcrProcessRecordPtr;
|
||||||
@ -185,6 +183,7 @@ void PvdbcrProcessRecord::run()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
static const iocshArg arg0 = { "recordName", iocshArgString };
|
static const iocshArg arg0 = { "recordName", iocshArgString };
|
||||||
static const iocshArg arg1 = { "delay", iocshArgDouble };
|
static const iocshArg arg1 = { "delay", iocshArgDouble };
|
||||||
@ -209,10 +208,11 @@ static void pvdbcrProcessRecordCallFunc(const iocshArgBuf *args)
|
|||||||
if(sval) {
|
if(sval) {
|
||||||
asGroup = string(sval);
|
asGroup = string(sval);
|
||||||
}
|
}
|
||||||
PvdbcrProcessRecordPtr record = PvdbcrProcessRecord::create(recordName,delay);
|
epics::pvDatabase::PvdbcrProcessRecordPtr record
|
||||||
|
= epics::pvDatabase::PvdbcrProcessRecord::create(recordName,delay);
|
||||||
record->setAsLevel(asLevel);
|
record->setAsLevel(asLevel);
|
||||||
record->setAsGroup(asGroup);
|
record->setAsGroup(asGroup);
|
||||||
PVDatabasePtr master = PVDatabase::getMaster();
|
epics::pvDatabase::PVDatabasePtr master = epics::pvDatabase::PVDatabase::getMaster();
|
||||||
bool result = master->addRecord(record);
|
bool result = master->addRecord(record);
|
||||||
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author mrk
|
* @author mrk
|
||||||
* @date 2021.03.12
|
* @date 2021.04.07
|
||||||
*/
|
*/
|
||||||
#include <iocsh.h>
|
#include <iocsh.h>
|
||||||
#include <pv/standardField.h>
|
#include <pv/standardField.h>
|
||||||
@ -19,13 +19,12 @@
|
|||||||
|
|
||||||
#include <epicsExport.h>
|
#include <epicsExport.h>
|
||||||
#define epicsExportSharedSymbols
|
#define epicsExportSharedSymbols
|
||||||
#include "pv/pvStructureCopy.h"
|
|
||||||
#include "pv/channelProviderLocal.h"
|
|
||||||
#include "pv/pvDatabase.h"
|
#include "pv/pvDatabase.h"
|
||||||
using namespace epics::pvData;
|
using namespace epics::pvData;
|
||||||
using namespace epics::pvDatabase;
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
namespace epics { namespace pvDatabase {
|
||||||
|
|
||||||
class PvdbcrRemoveRecord;
|
class PvdbcrRemoveRecord;
|
||||||
typedef std::tr1::shared_ptr<PvdbcrRemoveRecord> PvdbcrRemoveRecordPtr;
|
typedef std::tr1::shared_ptr<PvdbcrRemoveRecord> PvdbcrRemoveRecordPtr;
|
||||||
|
|
||||||
@ -96,6 +95,7 @@ void PvdbcrRemoveRecord::process()
|
|||||||
pvRecord->remove();
|
pvRecord->remove();
|
||||||
pvResult->put("success");
|
pvResult->put("success");
|
||||||
}
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
static const iocshArg arg0 = { "recordName", iocshArgString };
|
static const iocshArg arg0 = { "recordName", iocshArgString };
|
||||||
static const iocshArg arg1 = { "asLevel", iocshArgInt };
|
static const iocshArg arg1 = { "asLevel", iocshArgInt };
|
||||||
@ -117,10 +117,10 @@ static void pvdbcrRemoveRecordCallFunc(const iocshArgBuf *args)
|
|||||||
if(sval) {
|
if(sval) {
|
||||||
asGroup = string(sval);
|
asGroup = string(sval);
|
||||||
}
|
}
|
||||||
PvdbcrRemoveRecordPtr record = PvdbcrRemoveRecord::create(recordName);
|
epics::pvDatabase::PvdbcrRemoveRecordPtr record = epics::pvDatabase::PvdbcrRemoveRecord::create(recordName);
|
||||||
record->setAsLevel(asLevel);
|
record->setAsLevel(asLevel);
|
||||||
record->setAsGroup(asGroup);
|
record->setAsGroup(asGroup);
|
||||||
PVDatabasePtr master = PVDatabase::getMaster();
|
epics::pvDatabase::PVDatabasePtr master = epics::pvDatabase::PVDatabase::getMaster();
|
||||||
bool result = master->addRecord(record);
|
bool result = master->addRecord(record);
|
||||||
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author mrk
|
* @author mrk
|
||||||
* @date 2021.03.12
|
* @date 2021.04.07
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -23,11 +23,8 @@
|
|||||||
// The following must be the last include for code pvDatabase implements
|
// The following must be the last include for code pvDatabase implements
|
||||||
#include <epicsExport.h>
|
#include <epicsExport.h>
|
||||||
#define epicsExportSharedSymbols
|
#define epicsExportSharedSymbols
|
||||||
#include "pv/pvStructureCopy.h"
|
|
||||||
#include "pv/channelProviderLocal.h"
|
|
||||||
#include "pv/pvDatabase.h"
|
#include "pv/pvDatabase.h"
|
||||||
using namespace epics::pvData;
|
using namespace epics::pvData;
|
||||||
using namespace epics::pvDatabase;
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
static const iocshArg arg0 = { "recordName", iocshArgString };
|
static const iocshArg arg0 = { "recordName", iocshArgString };
|
||||||
@ -42,12 +39,12 @@ static void pvdbcrScalarArrayCallFunc(const iocshArgBuf *args)
|
|||||||
{
|
{
|
||||||
char *sval = args[0].sval;
|
char *sval = args[0].sval;
|
||||||
if(!sval) {
|
if(!sval) {
|
||||||
throw std::runtime_error("pvdbcrScalarArrayCreate recordName not specified");
|
throw std::runtime_error("pvdbcrScalarArray recordName not specified");
|
||||||
}
|
}
|
||||||
string recordName = string(sval);
|
string recordName = string(sval);
|
||||||
sval = args[1].sval;
|
sval = args[1].sval;
|
||||||
if(!sval) {
|
if(!sval) {
|
||||||
throw std::runtime_error("pvdbcrScalarArrayCreate scalarType not specified");
|
throw std::runtime_error("pvdbcrScalarArray scalarType not specified");
|
||||||
}
|
}
|
||||||
string scalarType = string(sval);
|
string scalarType = string(sval);
|
||||||
int asLevel = args[2].ival;
|
int asLevel = args[2].ival;
|
||||||
@ -66,10 +63,11 @@ static void pvdbcrScalarArrayCallFunc(const iocshArgBuf *args)
|
|||||||
add("alarm",standardField->alarm()) ->
|
add("alarm",standardField->alarm()) ->
|
||||||
createStructure();
|
createStructure();
|
||||||
PVStructurePtr pvStructure = pvDataCreate->createPVStructure(top);
|
PVStructurePtr pvStructure = pvDataCreate->createPVStructure(top);
|
||||||
PVRecordPtr record = PVRecord::create(recordName,pvStructure);
|
epics::pvDatabase::PVRecordPtr record
|
||||||
|
= epics::pvDatabase::PVRecord::create(recordName,pvStructure);
|
||||||
record->setAsLevel(asLevel);
|
record->setAsLevel(asLevel);
|
||||||
record->setAsGroup(asGroup);
|
record->setAsGroup(asGroup);
|
||||||
PVDatabasePtr master = PVDatabase::getMaster();
|
epics::pvDatabase::PVDatabasePtr master = epics::pvDatabase::PVDatabase::getMaster();
|
||||||
bool result = master->addRecord(record);
|
bool result = master->addRecord(record);
|
||||||
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author mrk
|
* @author mrk
|
||||||
* @date 2021.03.12
|
* @date 2021.04.07
|
||||||
*/
|
*/
|
||||||
#include <iocsh.h>
|
#include <iocsh.h>
|
||||||
#include <pv/standardField.h>
|
#include <pv/standardField.h>
|
||||||
@ -20,11 +20,8 @@
|
|||||||
// The following must be the last include for code pvDatabase implements
|
// The following must be the last include for code pvDatabase implements
|
||||||
#include <epicsExport.h>
|
#include <epicsExport.h>
|
||||||
#define epicsExportSharedSymbols
|
#define epicsExportSharedSymbols
|
||||||
#include "pv/pvStructureCopy.h"
|
|
||||||
#include "pv/channelProviderLocal.h"
|
|
||||||
#include "pv/pvDatabase.h"
|
#include "pv/pvDatabase.h"
|
||||||
using namespace epics::pvData;
|
using namespace epics::pvData;
|
||||||
using namespace epics::pvDatabase;
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
static const iocshArg arg0 = { "recordName", iocshArgString };
|
static const iocshArg arg0 = { "recordName", iocshArgString };
|
||||||
@ -39,12 +36,12 @@ static void pvdbcrScalarCallFunc(const iocshArgBuf *args)
|
|||||||
{
|
{
|
||||||
char *sval = args[0].sval;
|
char *sval = args[0].sval;
|
||||||
if(!sval) {
|
if(!sval) {
|
||||||
throw std::runtime_error("pvdbcrScalarArrayCreate recordName not specified");
|
throw std::runtime_error("pvdbcrScalar recordName not specified");
|
||||||
}
|
}
|
||||||
string recordName = string(sval);
|
string recordName = string(sval);
|
||||||
sval = args[1].sval;
|
sval = args[1].sval;
|
||||||
if(!sval) {
|
if(!sval) {
|
||||||
throw std::runtime_error("pvdbcrScalarArrayCreate scalarType not specified");
|
throw std::runtime_error("pvdbcrScalar scalarType not specified");
|
||||||
}
|
}
|
||||||
string scalarType = string(sval);
|
string scalarType = string(sval);
|
||||||
int asLevel = args[2].ival;
|
int asLevel = args[2].ival;
|
||||||
@ -63,10 +60,10 @@ static void pvdbcrScalarCallFunc(const iocshArgBuf *args)
|
|||||||
add("alarm",standardField->alarm()) ->
|
add("alarm",standardField->alarm()) ->
|
||||||
createStructure();
|
createStructure();
|
||||||
PVStructurePtr pvStructure = pvDataCreate->createPVStructure(top);
|
PVStructurePtr pvStructure = pvDataCreate->createPVStructure(top);
|
||||||
PVRecordPtr record = PVRecord::create(recordName,pvStructure);
|
epics::pvDatabase::PVRecordPtr record = epics::pvDatabase::PVRecord::create(recordName,pvStructure);
|
||||||
record->setAsLevel(asLevel);
|
record->setAsLevel(asLevel);
|
||||||
record->setAsGroup(asGroup);
|
record->setAsGroup(asGroup);
|
||||||
PVDatabasePtr master = PVDatabase::getMaster();
|
epics::pvDatabase::PVDatabasePtr master = epics::pvDatabase::PVDatabase::getMaster();
|
||||||
bool result = master->addRecord(record);
|
bool result = master->addRecord(record);
|
||||||
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author mrk
|
* @author mrk
|
||||||
* @date 2021.03.12
|
* @date 2021.04.07
|
||||||
*/
|
*/
|
||||||
#include <iocsh.h>
|
#include <iocsh.h>
|
||||||
#include <pv/standardField.h>
|
#include <pv/standardField.h>
|
||||||
@ -20,14 +20,12 @@
|
|||||||
// The following must be the last include
|
// The following must be the last include
|
||||||
#include <epicsExport.h>
|
#include <epicsExport.h>
|
||||||
#define epicsExportSharedSymbols
|
#define epicsExportSharedSymbols
|
||||||
#include "pv/pvStructureCopy.h"
|
|
||||||
#include "pv/channelProviderLocal.h"
|
|
||||||
#include "pv/pvDatabase.h"
|
#include "pv/pvDatabase.h"
|
||||||
|
|
||||||
using namespace epics::pvData;
|
using namespace epics::pvData;
|
||||||
using namespace epics::pvDatabase;
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
namespace epics { namespace pvDatabase {
|
||||||
|
|
||||||
class PvdbcrTraceRecord;
|
class PvdbcrTraceRecord;
|
||||||
typedef std::tr1::shared_ptr<PvdbcrTraceRecord> PvdbcrTraceRecordPtr;
|
typedef std::tr1::shared_ptr<PvdbcrTraceRecord> PvdbcrTraceRecordPtr;
|
||||||
|
|
||||||
@ -102,6 +100,7 @@ void PvdbcrTraceRecord::process()
|
|||||||
pvRecord->setTraceLevel(pvLevel->get());
|
pvRecord->setTraceLevel(pvLevel->get());
|
||||||
pvResult->put("success");
|
pvResult->put("success");
|
||||||
}
|
}
|
||||||
|
}}
|
||||||
|
|
||||||
static const iocshArg arg0 = { "recordName", iocshArgString };
|
static const iocshArg arg0 = { "recordName", iocshArgString };
|
||||||
static const iocshArg arg1 = { "asLevel", iocshArgInt };
|
static const iocshArg arg1 = { "asLevel", iocshArgInt };
|
||||||
@ -123,10 +122,11 @@ static void pvdbcrTraceRecordCallFunc(const iocshArgBuf *args)
|
|||||||
if(sval) {
|
if(sval) {
|
||||||
asGroup = string(sval);
|
asGroup = string(sval);
|
||||||
}
|
}
|
||||||
PvdbcrTraceRecordPtr record = PvdbcrTraceRecord::create(recordName);
|
epics::pvDatabase::PvdbcrTraceRecordPtr record
|
||||||
|
= epics::pvDatabase::PvdbcrTraceRecord::create(recordName);
|
||||||
record->setAsLevel(asLevel);
|
record->setAsLevel(asLevel);
|
||||||
record->setAsGroup(asGroup);
|
record->setAsGroup(asGroup);
|
||||||
PVDatabasePtr master = PVDatabase::getMaster();
|
epics::pvDatabase::PVDatabasePtr master = epics::pvDatabase::PVDatabase::getMaster();
|
||||||
bool result = master->addRecord(record);
|
bool result = master->addRecord(record);
|
||||||
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
if(!result) cout << "recordname " << recordName << " not added" << endl;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user