/* This file is part of the Transient Recorder Framework. * It is subject to the license terms in the LICENSE.txt file found in the * top-level directory of this distribution and at * https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part * of the Transient Recorder Framework, including this file, may be copied, * modified, propagated, or distributed except according to the terms * contained in the LICENSE.txt file. */ /** * @file * * Defines the TRArmInfo class, used for passing information to the framework during arming. */ #ifndef TRANSREC_ARM_INFO_H #define TRANSREC_ARM_INFO_H #include #include "TRNonCopyable.h" class TRBaseDriver; /** * Information provided by the driver to the framework at the start of arming. * * An instance of this is passed to the driver in TRBaseDriver::checkSettings * where the driver should fill in the relevant data. */ class TRArmInfo : private TRNonCopyable { friend class TRBaseDriver; private: inline TRArmInfo () : rate_for_display(NAN) { } public: /** * The driver MUST set this to the display sample rate. * * Notably, this will used for computing the time array. */ double rate_for_display; }; #endif