I/O manipulators.  
More...
#include <string>
#include <ostream>
#include <sstream>
#include <iomanip>
Go to the source code of this file.
 | 
| struct   | WIDTH | 
|   | Auxiliary data structure for alignment of data.  More...
  | 
|   | 
| struct   | LEFT | 
|   | Auxiliary data structure for alignment of data.  More...
  | 
|   | 
| struct   | RIGHT | 
|   | Auxiliary data structure for alignment of data.  More...
  | 
|   | 
| struct   | FILL | 
|   | Auxiliary data structure for sequence of same character.  More...
  | 
|   | 
| struct   | CENTER | 
|   | Auxiliary data structure for alignment of data.  More...
  | 
|   | 
| struct   | CENTER::JCenter | 
|   | Auxiliary class for format center.  More...
  | 
|   | 
| struct   | FIXED | 
|   | Auxiliary data structure for floating point format specification.  More...
  | 
|   | 
| struct   | SCIENTIFIC | 
|   | Auxiliary data structure for floating point format specification.  More...
  | 
|   | 
| struct   | JFormat_t | 
|   | Data structure for format specifications.  More...
  | 
|   | 
| struct   | JFormat | 
|   | Auxiliary class to temporarily define format specifications.  More...
  | 
|   | 
 | 
|   | JLANG | 
|   | Auxiliary classes and methods for language specific functionality. 
  | 
|   | 
|   | JPP | 
|   | This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES). 
  | 
|   | 
I/O manipulators. 
- Author
 - mdejong 
 
Definition in file JManip.hh.
 
  
  
      
        
          | int getPrintOption  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get print option. 
- Parameters
 - 
  
  
 
- Returns
 - print option 
 
Definition at line 50 of file JManip.hh.
int getIndex()
Get index for user I/O manipulation. 
 
 
 
 
  
  
      
        
          | void setPrintOption  | 
          ( | 
          std::ostream &  | 
          out,  | 
         
        
           | 
           | 
          const int  | 
          option  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inline   | 
  
 
Set print option. 
- Parameters
 - 
  
    | out | output stream  | 
    | option | print option  | 
  
   
Definition at line 62 of file JManip.hh.
int getIndex()
Get index for user I/O manipulation. 
 
 
 
 
  
  
      
        
          | bool getShortprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get short print option. 
- Parameters
 - 
  
  
 
- Returns
 - true if short print option is on; else false 
 
Definition at line 74 of file JManip.hh.
int getPrintOption(std::ostream &out)
Get print option. 
 
 
 
 
  
  
      
        
          | void setShortprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set short print option. 
- Parameters
 - 
  
  
 
Definition at line 85 of file JManip.hh.
void setPrintOption(std::ostream &out, const int option)
Set print option. 
 
 
 
 
  
  
      
        
          | bool getMediumprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get medium print option. 
- Parameters
 - 
  
  
 
- Returns
 - true if medium print option is on; else false 
 
Definition at line 97 of file JManip.hh.
int getPrintOption(std::ostream &out)
Get print option. 
 
 
 
 
  
  
      
        
          | void setMediumprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set medium print option. 
- Parameters
 - 
  
  
 
Definition at line 108 of file JManip.hh.
void setPrintOption(std::ostream &out, const int option)
Set print option. 
 
 
 
 
  
  
      
        
          | bool getLongprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Get long print option. 
- Parameters
 - 
  
  
 
- Returns
 - true if long print option is on; else false 
 
Definition at line 120 of file JManip.hh.
int getPrintOption(std::ostream &out)
Get print option. 
 
 
 
 
  
  
      
        
          | void setLongprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set long print option. 
- Parameters
 - 
  
  
 
Definition at line 131 of file JManip.hh.
void setPrintOption(std::ostream &out, const int option)
Set print option. 
 
 
 
 
  
  
      
        
          | std::ostream& shortprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set short printing. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 143 of file JManip.hh.
void setShortprint(std::ostream &out)
Set short print option. 
 
 
 
 
  
  
      
        
          | std::ostream& mediumprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set medium printing. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 157 of file JManip.hh.
void setMediumprint(std::ostream &out)
Set medium print option. 
 
 
 
 
  
  
      
        
          | std::ostream& longprint  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Set long printing. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 171 of file JManip.hh.
void setLongprint(std::ostream &out)
Set long print option. 
 
 
 
 
  
  
      
        
          | std::ostream& newline  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Print newline character. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 185 of file JManip.hh.
 
 
  
  
      
        
          | std::ostream& whitespace  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Print white space character. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 197 of file JManip.hh.
 
 
  
  
      
        
          | std::ostream& tab  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Print tab character. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 209 of file JManip.hh.
 
 
  
  
      
        
          | std::ostream& rewind  | 
          ( | 
          std::ostream &  | 
          out | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Rewind character. 
- Parameters
 - 
  
  
 
- Returns
 - output stream 
 
Definition at line 221 of file JManip.hh.
  223   return (out << 
'\r').flush();
 
 
 
 
Get format for given type. 
- Returns
 - format 
 
Definition at line 679 of file JManip.hh.
 
 
Get format for given type. 
- Parameters
 - 
  
  
 
- Returns
 - actual format 
 
Definition at line 694 of file JManip.hh.
  696   const JFormat_t& buffer = getFormat<T>();
 
 
 
 
Set format for given type. 
- Parameters
 - 
  
  
 
Definition at line 711 of file JManip.hh.
  713   getFormat<T>() = format;