#include <string>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "Jeep/JParser.hh"
#include "Jeep/JMessage.hh"
#include "JLang/JString.hh"
#include "JLang/JCppFacet.hh"
 
Go to the source code of this file.
 | 
| int  | main (int argc, char **argv) | 
|   | Auxiliary program to test JCppFacet class.  
  | 
|   | 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Auxiliary program to test JCppFacet class. 
Definition at line 16 of file JCppFacet.cc.
   17{
   20 
   21  string      buffer;
   23 
   24  try {
   25 
   27 
   30 
   31    if (zap.
read(argc, argv) != 0)
 
   32      return 1;
   33  }
   34  catch(const exception &error) {
   35    FATAL(error.what() << endl);
 
   36  }
   37 
   38 
   40 
   42 
   43  istringstream is(buffer);
   44 
   45  is.imbue(locale(cout.getloc(), cpp.
clone()));
 
   46 
   47  while (is >> var) {
   48    cout << "<" << var << ">" << endl;
   49  }
   50}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Facet class to specify parsing of a C[++] variable name.
 
virtual JCppFacet * clone() const override
Clone this facet.
 
Wrapper class around STL string class.
 
Utility class to parse command line options.
 
int read(const int argc, const char *const argv[])
Parse the program's command line options.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).