------ Original message------
From: Marty Kraimer via Tech-talk
Date: Fri, Nov 22, 2019 04:52
Cc:
Subject:Re: BigRecord in exampleCPP
On 11/21/19 4:03 PM, Pierrick M Hanlet via Tech-talk wrote:
Never mind.
On 11/20/19 12:33 PM, Pierrick M Hanlet via Tech-talk wrote:
If I wanted to write to a particular NestedStructure in BigRecord, from exampleDatabase.cpp,
what would be my syntax? I cannot find this documented.
I have:
PVRecordPtr pvPtr = PVDatabase::getMaster()->findRecord("myRecord");
and I'm expecting to need to do something like:
PVDoublePtr pvReading = pvPtr->getPVStructure()->getNested???()->getSubField<PVDouble>("value");
What should I have instead of getNested?
try
PVDoublePtr pvReading = pvPtr->getPVStructure()->getSubField<PVDouble>("scalarArray.double.value");
Marty
Thank you,
Pierrick
--
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile
"Whether you think you can or think you can't, you're right" -- Henry Ford
--
Pierrick Hanlet
Fermi National Accelerator
Accelerator Front End Controls
+1-630-840-5555 -- lab
+1-312-687-4980 -- mobile
"Whether you think you can or think you can't, you're right" -- Henry Ford