#ifndef b4_mon_INCLUDED #define b4_mon_INCLUDED #include #ifdef WIN32 #ifdef DOEXPORT_SCRIPT #define EXPORT_SCRIPT __declspec(dllexport) #else #define EXPORT_SCRIPT #endif #else #define EXPORT_SCRIPT #endif class b4_mon : public bncs_script_helper { public: b4_mon(bncs_client_callback * parent, const char* path); virtual ~b4_mon(); void buttonCallback(buttonNotify *b); int revertiveCallback(revertiveNotify *r); void databaseCallback(revertiveNotify *r); bncs_string parentCallback(parentNotify *p); void timerCallback(int); private: bncs_string m_myParam; bncs_string m_instance; int video_id; // BNCS driver id of video matrix int audio_id; // BNCS driver id of audio matrix int package_id; // BNCS driver id of package names int package_xpts; // BNCS driver id of package crosspoints int mon_id; // Holds the id of the monitor. 1=Bay 4, 2=Bay 3 3=Bay 2, 4=Bay1, 5=Control Desk int vid_dest[6]; // Holds the id of the monitor video destinations. vid_dest[x] is the id for monitor x int aud_dest[6]; // Holds the id of the monitor audio destinations. aud_dest[x] is the id for monitor x bool video_enabled; bool audio_enabled; // Local Methods void extract_xpts(int pkg_id, int database, int *viddest, int *auddest); }; #endif // b4_mon_INCLUDED