1 #ifndef __JLANG_JMANIP__ 
    2 #define __JLANG_JMANIP__ 
   16 namespace JPP { 
using namespace JLANG; }
 
   27     static const int index = std::ios_base::xalloc();
 
  185 inline std::ostream& 
newline(std::ostream& out)
 
  209 inline std::ostream& 
tab(std::ostream& out)
 
  221 inline std::ostream& 
rewind(std::ostream& out)
 
  223   return (out << 
'\r').flush();
 
  253     return out << setw(format.
width);
 
  287     return out << setw(format.width) << left;
 
  319     return out << setw(format.width) << right;
 
  337        const char fill  = 
' ') :
 
  355     return out << setfill(format.
fill) << setw(format.
width); 
 
  404       const int  w = this->width - os.str().size();
 
  405       const char c = this->out.fill();
 
  408         return this->out << 
FILL(
w/2) << 
' ' << os.str() << 
FILL((
w+1)/2) << 
' ' << setfill(c);
 
  410         return this->out << os.str();
 
  455         const int precision) :
 
  458     this->precision = precision;
 
  473     return out << fixed << right << setw(format.
width) << setprecision(format.
precision);
 
  493              const int precision) :
 
  496     this->precision = precision;
 
  511     return out << scientific << right << setw(format.
width) << setprecision(format.
precision);
 
  545             const int      precision  = 0,
 
  547             const char     fill       = 
' ') :
 
  549     precision(precision),
 
  582   void get(std::ostream& out)
 
  584     this->width     = out.width();
 
  585     this->precision = out.precision();
 
  586     this->flags     = out.flags();
 
  587     this->fill      = out.fill();
 
  596   void put(std::ostream& out)
 const 
  598     out.width    (this->width);
 
  599     out.precision(this->precision);
 
  600     out.flags    (this->flags);
 
  601     out.fill     (this->fill);
 
  696   const JFormat_t& buffer = getFormat<T>();
 
  713   getFormat<T>() = format;
 
RIGHT(const int width)
Constructor. 
 
Auxiliary data structure for alignment of data. 
 
friend std::ostream & operator<<(std::ostream &out, const WIDTH &format)
Format specifier. 
 
bool getMediumprint(std::ostream &out)
Get medium print option. 
 
friend std::ostream & operator<<(std::ostream &out, const SCIENTIFIC &format)
Format specifier. 
 
JFormat_t & getFormat()
Get format for given type. 
 
friend std::ostream & operator<<(std::ostream &out, const RIGHT &format)
Format specifier. 
 
WIDTH(const int width)
Constructor. 
 
Auxiliary data structure for floating point format specification. 
 
friend std::ostream & operator<<(std::ostream &out, const FIXED &format)
Format specifier. 
 
Auxiliary data structure for alignment of data. 
 
void setShortprint(std::ostream &out)
Set short print option. 
 
std::ostream & rewind(std::ostream &out)
Rewind character. 
 
Auxiliary class for format center. 
 
void setLongprint(std::ostream &out)
Set long print option. 
 
std::ostream & newline(std::ostream &out)
Print newline character. 
 
LEFT(const int width)
Constructor. 
 
do set_variable OUTPUT_DIRECTORY $WORKDIR T
 
bool getLongprint(std::ostream &out)
Get long print option. 
 
int getIndex()
Get index for user I/O manipulation. 
 
std::ostream & shortprint(std::ostream &out)
Set short printing. 
 
Auxiliary data structure for sequence of same character. 
 
std::ostream & longprint(std::ostream &out)
Set long printing. 
 
friend std::ostream & operator<<(std::ostream &out, const LEFT &format)
Format specifier. 
 
int getPrintOption(std::ostream &out)
Get print option. 
 
SCIENTIFIC(const int width, const int precision)
Constructor. 
 
JCenter(std::ostream &out, const WIDTH &format)
Constructor. 
 
void setPrintOption(std::ostream &out, const int option)
Set print option. 
 
friend std::ostream & operator<<(std::ostream &out, const FILL &format)
Format specifier. 
 
std::ostream & whitespace(std::ostream &out)
Print white space character. 
 
FILL(const int width=0, const char fill= ' ')
Constructor. 
 
bool getShortprint(std::ostream &out)
Get short print option. 
 
CENTER(const int width)
Constructor. 
 
FIXED(const int width, const int precision)
Constructor. 
 
JPrintOption_t
Print options. 
 
std::ostream & tab(std::ostream &out)
Print tab character. 
 
Auxiliary data structure for floating point format specification. 
 
std::ostream & operator<<(const T &value)
Write value to output stream. 
 
void setFormat(const JFormat_t &format)
Set format for given type. 
 
std::ostream & mediumprint(std::ostream &out)
Set medium printing. 
 
void setMediumprint(std::ostream &out)
Set medium print option. 
 
friend JCenter operator<<(std::ostream &out, const CENTER &format)
Format specifier.