15     A(
const double value) : value(value) {}
 
   17     friend inline std::ostream& 
operator<<(std::ostream& out, 
const A& 
object)
 
   19        const JFormat format(out, getFormat<A>(
JFormat_t(5, 2, std::ios::fixed | std::ios::showpos)));
 
   21        return out << format << 
object.value;
 
   29     B(
const double value) : value(value) {}
 
   31     friend inline std::ostream& 
operator<<(std::ostream& out, 
const B& 
object)
 
   33        const JFormat format(out, getFormat<B>(
JFormat_t(12, 3, std::ios::scientific | std::ios::showpos)));
 
   35        return out << format << 
object.value;
 
   54 int main(
int argc, 
char* argv[])
 
   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 
 
General purpose messaging. 
 
Auxiliary data structure for sequence of same character. 
 
Utility class to parse command line options. 
 
source $JPP_DIR setenv csh $JPP_DIR eval JShellParser o a A
 
int main(int argc, char *argv[])