#ifndef PROCESSIO_H_SEEN #define PROCESSIO_H_SEEN #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "Types.h" #include "HVStatus.h" #include "Log.h" #include "HVConfig.h" #include "Utilities.h" #include "HV.h" class ProcessIO { private: time_t StartTime; char str[MAX_COM_SIZE]; unsigned char wbuf[BUFFER_LENGTH]; unsigned char rbuf[BUFFER_LENGTH]; char bdata[16]; public: HVConfig* config; Status* status; Log* log; pthread_mutex_t control_mutex; pthread_cond_t control_cond; HV *hv; HVBoard *hvboard; ProcessIO(char *config_file); ~ProcessIO(); void Scan(); void PrintHelp(); void PrintDateAndTime(); void DoPrompt(char* str); void PrintMessage(char* str); void PrintMessageToLog(char *str); void PrintMessageO(char *Format, ...); int CommandControl(); int NBoards(); int InitializeHV(); void UpdateStatus(int i, unsigned char* rbuf); void StartMonitor(); void StopMonitor(); void Monitor(); void ResetActiveBoards(); void ResetAllBoards(); void ResetBoard(int i); int SaveHVSettings(char* filename); int IsBoard(int i); int GetBoardIdx(int board); }; #endif