#63: implemented PVStructure.get<type>Field() using template method, no more messages emitted

This commit is contained in:
Matej Sekoranja
2014-02-14 15:10:18 +01:00
parent 39c43c4c02
commit 8205be5220
2 changed files with 30 additions and 285 deletions

View File

@@ -144,6 +144,19 @@ static void testRemove()
testOk1(scont[3]==check[2]);
}
static void testFromRaw()
{
testDiag("Test structure array external allocation for shared_vector");
PVStructurePtr* raw = new PVStructurePtr[4];
raw[0] = pvDataCreate->createPVStructure(standardField->alarm());
raw[1] = pvDataCreate->createPVStructure(standardField->alarm());
raw[2] = pvDataCreate->createPVStructure(standardField->alarm());
raw[3] = pvDataCreate->createPVStructure(standardField->alarm());
PVStructureArray::svector cont(raw, 1, 2);
}
MAIN(testPVStructureArray)
{
testPlan(0);
@@ -155,5 +168,6 @@ MAIN(testPVStructureArray)
testBasic();
testCompress();
testRemove();
testFromRaw();
return testDone();
}