Example program to test JLANG::JSingleton class.  
More...
#include <iostream>
#include <iomanip>
#include "JLang/JSingleton.hh"
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | 
Example program to test JLANG::JSingleton class. 
- Author
 - mdejong 
 
Definition in file JSingleton.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 40 of file JSingleton.cc.
   48     JParser<> zap(
"Example program to test singleton.");
 
   54   catch(
const exception &error) {
 
   55     FATAL(error.what() << endl);
 
   61   cout << 
"Test of getInstance()" << endl;
 
   63   for (
int i = 0; i != 5; ++i) {
 
   65     cout << 
"[" << i << 
"]" << 
' ' << flush;
 
   69     cout << 
' ' << a.count;
 
   74   cout << 
"Test of constructor()" << endl;
 
   76   for (
int i = 0; i != 5; ++i) {
 
   78     cout << 
"[" << i << 
"]" << 
' ' << flush;
 
   82     cout << 
' ' << a.count << 
' ';
 
   85   cout << 
"end of main" << endl;
 
Utility class to parse command line options. 
 
T & getInstance(const T &object)
Get static instance from temporary object. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object