#ifndef TSL_Tally_Set_INCLUDED #define TSL_Tally_Set_INCLUDED #include #ifdef WIN32 #ifdef DOEXPORT_SCRIPT #define EXPORT_SCRIPT __declspec(dllexport) #else #define EXPORT_SCRIPT #endif #else #define EXPORT_SCRIPT #endif class TSL_Tally_Set : public bncs_script_helper { public: TSL_Tally_Set( bncs_client_callback * parent, const char* path ); virtual ~TSL_Tally_Set(); void buttonCallback( buttonNotify *b ); int revertiveCallback( revertiveNotify * r ); void databaseCallback( revertiveNotify * r ); bncs_string parentCallback( parentNotify *p ); void timerCallback( int ); private: int myContact; // gpi contact or infodriver slot to monitor int myDriverMon; // driver id of myContact int mySetSlot; // slot number of TSL tally infodriver to set int mySetDriver; // driver ID of TSL tally infodriver int mySlotOffset; // Offset to add to setSlot int gpiTallyTest; // value of gpi for active state bool isGPI; // set true if myDriverMon is a GPI driver bool can_register; // Set true if all conditions for revertive registration are met. bncs_string m_instance; // m_instance gpi contact/info slot to monitor bncs_string m_monitoring; // m_monitoring is label to show in component GUI bncs_string m_setslot; // m_setslot is entry in instances.xml that defines driver/slot_id to be set bncs_string m_slotoffset; // m_slotoffset is value added to slot_id to define slot to set in defined driver bncs_string m_tally_on; // m_tally_on is value to be matched to cause active tally to be asserted bncs_string m_tally_val; // m_tally_val is value to set when tally condition is active }; #endif // TSL_Tally_Set_INCLUDED