/* * mpvDoubletChannel.hh * * Created on: Sep 27, 2019 * Author: hovanes */ #ifndef VOLTAGEAPP_SRC_MPVDOUBLETCHANNEL_HH_ #define VOLTAGEAPP_SRC_MPVDOUBLETCHANNEL_HH_ #include #include #include #include #include #include #include #include "epicsChannel.hh" class mpvDoubletChannel: public baseEpicsChannel { protected: // macro name with full name without the last character class MacroDefault: public BaseMacro4DB { public: MacroDefault() { } virtual std::string operator()( std::string detPrefix, std::string iocPrefix, baseEpicsChannel* chanPtr ) { return std::string( "DETch=" ) + detPrefix + chanPtr->getFullName() + ",PREF=" + iocPrefix ; } }; std::string detectorName; MacroDefault macroDefault; map > macroFunctor; public: mpvDoubletChannel( std::string uri, std::string name, dbSubsystem* subsystemPtr, int chID ) ; virtual ~mpvDoubletChannel() { } virtual void loadRecords( std::string detectorPrefix, std::string iocPrefix = "" ); virtual void initBoardFileName(); virtual std::string getName() const { return ""; } }; #endif /* VOLTAGEAPP_SRC_MPVDOUBLETCHANNEL_HH_ */