85 auto flags = std::ofstream::out;
88 flags = flags | std::ofstream::binary;
93 fStream =
new std::ofstream(fname, flags);
122 Int_t len = strlen(str);
137 if (str[len-1] ==
'@') lenText--;
151 if (!len || !str)
return;
161 while ((nWrite >= 0) && (
fBuffer[nWrite] !=
' ')) nWrite--;
274 for(
Int_t i = 0; i < 2*
n; i += 2)
275 if ((xw[i] != xw[i+1]) || (yw[i] != yw[i+1]))
276 DrawPS(2, &xw[i], &yw[i]);
int Int_t
Signed integer 4 bytes (int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
externTVirtualPS * gVirtualPS
TVirtualPS is an abstract interface to Postscript, PDF, SVG.
virtual void WriteInteger(Int_t i, Bool_t space=kTRUE)
Write one Integer to the file.
virtual void PrintRaw(Int_t len, const char *str)
Print a raw.
void CloseStream()
Close existing stream.
virtual void DrawPS(Int_t n, Float_t *xw, Float_t *yw)=0
virtual void PrintStr(const char *string="")
Output the string str in the output buffer.
virtual void PrintFast(Int_t nch, const char *string="")
Fast version of Print.
Bool_t OpenStream(const char *fname, Bool_t binary=kFALSE)
Open output stream.
TVirtualPS()
VirtualPS default constructor.
void ClearBuffer()
Clear content of internal buffer.
const char * fImplicitCREsc
virtual void DrawSegments(Int_t n, Double_t *xw, Double_t *yw)
Print N segments.
virtual ~TVirtualPS()
VirtualPS destructor.
virtual void WriteReal(Float_t r, Bool_t space=kTRUE)
Write a Real number to the file.