/* main () ** ** Scan the command line arguments, then enter into the command loop. */ int main (int argc, char ** argv) { checkHostCompatibility (); checkArithmetic (); processCommandLine (argc, argv); /* If the "write" option (-w) was given, write a file to the DISK. */ if (commandOptionW) { writeCommand (); } else if (commandOptionI) { initializeCommand (); } else if (commandOptionL) { listCommand (); } else if (commandOptionC) { createCommand (); } else if (commandOptionR) { removeCommand (); } else if (commandOptionA) { addCommand (); } else if (commandOptionE) { extractCommand (); } else { fatalError ("No commands given; Use -h for help display"); return -1; } return 0; }
void FriExampleAbstract::stopHook(){ //Reset all commands sent to the fri initializeCommand(); doStop(); }
bool FriExampleAbstract::startHook(){ initializeCommand(); return doStart(); }