// ----------------------------------------------------------------------
//
// iosmanip.cc - Do we have the ios_base manipulators?
//
// History:
//   14-Jun-2000  WEB  Initial draft
//   12-Oct-2000  WEB  Test for all manipulators described in 27.4.5
//   25-Apr-2001  WEB  s/<ISOcxxSyntax.hh>/"ISOcxx\/ISOcxxSyntax.hh"/
//
// ----------------------------------------------------------------------


#include "ISOcxx/ISOcxxSyntax.hh"

#include <ios>
#include <iostream>


int  main()  {

  // Test 27.4.5.1 fmtflags manipulators:
  std::cin  >> std::boolalpha >> std::noboolalpha;
  std::cout << std::boolalpha << std::noboolalpha;
  std::cout << std::showbase  << std::noshowbase ;
  std::cout << std::showpoint << std::noshowpoint;
  std::cout << std::showpos   << std::noshowpos  ;
  std::cin  >> std::skipws    >> std::noskipws   ;
  std::cout << std::uppercase << std::nouppercase;
  std::cout << std::unitbuf   << std::nounitbuf  ;

  // Test 27.4.5.2 adjustfield manipulators:
  std::cout << std::internal << std::left << std::right;

  // Test 27.4.5.3 basefield manipulators:
  std::cin  >> std::dec >> std::hex >> std::oct;
  std::cout << std::dec << std::hex << std::oct;

  // Test 27.4.5.4 floatfield manipulators:
  std::cout << std::fixed << std::scientific;

  return 0;

}  // main()
