added shared_pointer typedefs, monitor.h IF changed to used shared_pointers

This commit is contained in:
Matej Sekoranja
2011-04-24 23:56:58 +02:00
parent fc74317993
commit b45b965f14
9 changed files with 141 additions and 44 deletions

View File

@@ -129,7 +129,7 @@ namespace epics { namespace pvData {
void PVStructure::appendPVField(PVFieldPtr pvField)
{
Structure::Ptr structure = const_pointer_cast<Structure>(getStructure());
Structure::shared_pointer structure = const_pointer_cast<Structure>(getStructure());
structure->appendField(pvField->getField());
int origLength = pImpl->numberFields;
PVFieldPtrArray oldPVFields = pImpl->pvFields;
@@ -149,7 +149,7 @@ namespace epics { namespace pvData {
if (numberNewFields<0)
throw std::logic_error("Number of fields must be >=0");
Structure::Ptr structure = const_pointer_cast<Structure>(getStructure());
Structure::shared_pointer structure = const_pointer_cast<Structure>(getStructure());
FieldConstPtr fields[numberNewFields];
for(int i=0; i<numberNewFields; i++) fields[i] = pvFields[i]->getField();
structure->appendFields(numberNewFields,fields);