Example program to test I/O manipulators.  
More...
#include <string>
#include <iostream>
#include <iomanip>
#include <vector>
#include "JLang/JManip.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 I/O manipulators. 
- Author
 - mdejong 
 
Definition in file JManip.cc.
 
      
        
          | int main  | 
          ( | 
          int  | 
          argc,  | 
        
        
           | 
           | 
          char *  | 
          argv[]  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Definition at line 54 of file JManip.cc.
   69   catch(
const exception &error) {
 
   70     FATAL(error.what() << endl);
 
   73   for (
int value = 1; value < 1000000000; value *= 10) {
 
   74     cout << 
"CENTER <" << 
CENTER(12)   << value << 
">" << endl;
 
   77   for (
int value = 1; value < 1000000000; value *= 10) {
 
   78     cout << 
"FILL   <" << 
FILL(12,
'.') << value << 
">" << 
FILL() << endl;
 
   81   for (
int value = 1; value < 1000000000; value *= 10) {
 
   82     cout << 
"RIGHT  <" << 
RIGHT(12)    << value << 
">" << endl;
 
   85   for (
int value = 1; value < 1000000000; value *= 10) {
 
   86     cout << 
"LEFT   <" << 
LEFT(12)     << value << 
">" << endl;
 
   89   for (
double value = 0.123456; value < 100000; value *= 10) {
 
   90     cout << 
"FIXED  <" << 
FIXED(12,6)  << value << 
">" << endl;
 
   95     const double c = 12.34;
 
  100     cout << 
"A  "; 
print(cout, getFormat<A>()); cout << 
" <" << 
a << 
">" << endl;
 
  101     cout << 
"c  "; cout << setw(5) << 
" ";      cout << 
" <" << c << 
">" << endl;
 
  102     cout << 
"B  "; 
print(cout, getFormat<B>()); cout << 
" <" << b << 
">" << endl;
 
  103     cout << 
"c  "; cout << setw(5) << 
" ";      cout << 
" <" << c << 
">" << endl;
 
  105     setFormat<A>(
JFormat_t(7, 3, std::ios::fixed));
 
  106     setFormat<B>(
JFormat_t(7, 3, std::ios::fixed));
 
  108     cout << 
"A  "; 
print(cout, getFormat<A>()); cout << 
" <" << 
a << 
">" << endl;
 
  109     cout << 
"c  "; cout << setw(5) << 
" ";      cout << 
" <" << c << 
">" << endl;
 
  110     cout << 
"B  "; 
print(cout, getFormat<B>()); cout << 
" <" << b << 
">" << endl;
 
  111     cout << 
"c  "; cout << setw(5) << 
" ";      cout << 
" <" << c << 
">" << endl;
 
Utility class to parse command line options. 
 
Auxiliary data structure for floating point format specification. 
 
Auxiliary data structure for alignment of data. 
 
#define make_field(A,...)
macro to convert parameter to JParserTemplateElement object 
 
Auxiliary data structure for sequence of same character. 
 
then $JPP_DIR software JCalibrate JCalibrateToT a
 
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A