Example program to test JLANG::getSize method.  
More...
#include <iostream>
#include <iomanip>
#include <vector>
#include "JLang/JLangToolkit.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::getSize method. 
- Author
 - mdejong 
 
Definition in file JSize.cc.
 
◆ main()
      
        
          | int main  | 
          ( | 
          int |           argc,  | 
        
        
           | 
           | 
          char ** |           argv ) | 
        
      
 
Definition at line 18 of file JSize.cc.
   19{
   21 
   23 
   24  try {
   25 
   26    JParser<> zap(
"Example program to test getSize.");
 
   27 
   29 
   30    zap(argc, argv);
   31  }
   32  catch(const exception &error) {
   33    FATAL(error.what() << endl);
 
   34  }
   35 
   37 
   38  {
   39    int buffer[10];
   40 
   41    cout << 
getSize(buffer) << endl;
 
   42  }
   43  {
   44    const int buffer[] = { 1, 2, 3 };
   45 
   46    cout << 
getSize(buffer) << endl;
 
   47  }
   48}
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object
 
Utility class to parse command line options.
 
size_t getSize(T(&array)[N])
Get size of c-array.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).