Data structure for size of TCanvas.  
 More...
#include <JCanvas.hh>
 | 
|   | JCanvas () | 
|   | Default constructor.  
  | 
|   | 
|   | JCanvas (const int __x, const int __y) | 
|   | Constructor.  
  | 
|   | 
 | 
| int  | x | 
|   | number of pixels in X  
  | 
|   | 
| int  | y | 
|   | number of pixels in Y  
  | 
|   | 
 | 
| std::istream &  | operator>> (std::istream &in, JCanvas &cv) | 
|   | Read canvas from input stream.  
  | 
|   | 
| std::ostream &  | operator<< (std::ostream &out, const JCanvas &cv) | 
|   | Write canvas to output stream.  
  | 
|   | 
Data structure for size of TCanvas. 
Definition at line 26 of file JCanvas.hh.
 
◆ JCanvas() [1/2]
  
  
      
        
          | JROOT::JCanvas::JCanvas  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Default constructor. 
Definition at line 31 of file JCanvas.hh.
   31              :
   34    {}
int y
number of pixels in Y
 
int x
number of pixels in X
 
 
 
 
◆ JCanvas() [2/2]
  
  
      
        
          | JROOT::JCanvas::JCanvas  | 
          ( | 
          const int |           __x,  | 
         
        
           | 
           | 
          const int |           __y ) | 
         
       
   | 
  
inline   | 
  
 
Constructor. 
- Parameters
 - 
  
  
 
Definition at line 43 of file JCanvas.hh.
 
 
◆ operator>>
  
  
      
        
          | std::istream & operator>>  | 
          ( | 
          std::istream & |           in,  | 
         
        
           | 
           | 
          JCanvas & |           cv ) | 
         
       
   | 
  
friend   | 
  
 
Read canvas from input stream. 
- Parameters
 - 
  
  
 
- Returns
 - input stream 
 
Definition at line 57 of file JCanvas.hh.
   58    { 
   60 
   61      string buffer;
   62 
   64 
   66 
   67      if (pos != string::npos) {
   68 
   69        if (!(istringstream(buffer.substr(0,pos)) >> cv.x)) { in.setstate(ios::badbit); }
   70        if (!(istringstream(buffer.substr(pos+1)) >> cv.y)) { in.setstate(ios::badbit); }
   71 
   72      } else {
   73 
   74        THROW(JParseError, 
"JCanvas error parsing " << buffer);
 
   75      }
   76 
   77      return in;
   78    }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
 
static const char SEPARATOR
 
std::istream & getline(std::istream &in, JString &object)
Read string from input stream until end of line.
 
 
 
 
◆ operator<<
  
  
      
        
          | std::ostream & operator<<  | 
          ( | 
          std::ostream & |           out,  | 
         
        
           | 
           | 
          const JCanvas & |           cv ) | 
         
       
   | 
  
friend   | 
  
 
Write canvas to output stream. 
- Parameters
 - 
  
    | out | output stream  | 
    | cv | canvas  | 
  
   
- Returns
 - output stream 
 
Definition at line 88 of file JCanvas.hh.
   89    { 
   91 
   92      return out; 
   93    }
 
 
 
◆ SEPARATOR
  
  
      
        
          | const char JROOT::JCanvas::SEPARATOR = 'x' | 
         
       
   | 
  
static   | 
  
 
 
number of pixels in X 
Definition at line 98 of file JCanvas.hh.
 
 
number of pixels in Y 
Definition at line 99 of file JCanvas.hh.
 
 
The documentation for this class was generated from the following file: