Example program to test JLANG::JSharedPointer class.  
More...
#include <iostream>
#include <iomanip>
#include <vector>
#include "JLang/JSharedPointer.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::JSharedPointer class. 
- Author
 - mdejong 
 
Definition in file JSharedPointer.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char **  | 
          argv  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 35 of file JSharedPointer.cc.
   44     JParser<> zap(
"Example program to test shared pointer.");
 
   51   catch(
const exception &error) {
 
   52     FATAL(error.what() << endl);
 
   59   typedef JSharedPointer<__A__>   JSharedPointer_t;
 
   63   cout << 
"JSharedPointer::create()" << endl;
 
   69   for (
unsigned int i = 0; i != 
N; ++i) {
 
   71     cout << 
"buffer.push_back() " << i << endl;
 
   76   for (
unsigned int i = 0; i != 
N; ++i) {
 
   77     cout << 
"buffer[" << i << 
"] is valid? " << buffer[i].is_valid() << endl;
 
Utility class to parse command line options. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
then usage $script< input file >[option[primary[working directory]]] nWhere option can be N