38 using _Context = CONTEXT;
41 const OPTIONS _fOptions;
52 InstrumentRep_COMMON (
const OPTIONS& options,
const shared_ptr<CONTEXT>& context = make_shared<CONTEXT> ());
69 template <
typename INFO_TYPE>
74 INFO_TYPE rawMeasurement = internalCapture ();
75 if (outMeasuredAt !=
nullptr) {
79 return rawMeasurement;
83 virtual shared_ptr<Instrument::ICaptureContext> GetContext ()
const override
86 return _fContext.
load ();
88 virtual void SetContext (
const shared_ptr<Instrument::ICaptureContext>& context)
override
90 _fContext.
store ((context ==
nullptr) ? make_shared<CONTEXT> () : dynamic_pointer_cast<CONTEXT> (context));