00001 #ifndef SIGHANDLER_H 00002 #define SIGHANDLER_H 00003 00004 #include "bcsignals.h" 00005 #include "file.h" 00006 00007 class SigHandler : public BC_Signals 00008 { 00009 public: 00010 SigHandler(); 00011 void signal_handler(int signum); 00012 00013 00014 // Put file pointer on table 00015 void push_file(File *file); 00016 // Remove file pointer from table 00017 void pull_file(File *file); 00018 00019 // Files currently open for writing. 00020 // During a crash, the sighandler should close them all. 00021 ArrayList<File*> files; 00022 }; 00023 00024 00025 #endif
1.5.5