19     throw std::runtime_error(
"Wrong amount!");
 
   22     throw std::runtime_error(
"Your account can't provide the requested amount!");
 
   30     throw std::runtime_error(
"Wrong amount!");
 
   35 int main(
int argc, 
char **argv)
 
   43     JParser<> zap(
"Example program to test mutex messaging.");
 
   49   catch(
const exception &error) {
 
   50     FATAL(error.what() << endl);
 
   56   cout << 
"Trying to deposit 1000 eur\n";
 
   63   cout << 
"Trying to put a negative amount\n";
 
   68   } 
catch (runtime_error 
const& e) {
 
   69     cout << e.what() << 
'\n';
 
   72   cout << 
"Let the wife do shopping\n";
 
   78       int const cost = rand() % 100;
 
   79       cout << 
"Paying " << cost << 
"for something\n";
 
   82   } 
catch (runtime_error 
const& e) {
 
   83     cout << e.what() << 
'\n';
 
General purpose messaging.
 
void withdraw(int &account, int amount)
 
int main(int argc, char **argv)
 
void deposit(int &account, int amount)
 
Very basic lock facilities to be used in multithreaded programs.
 
Utility class to parse command line options.
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).