23 if (lunin == 0)
return -1;
24 while (!feof(lunin)) {
26 if (
c != 0x0d &&
c != 0x0a)
34void guitest_playback()
37 Int_t guitest_ref[11], guitest_err[11], guitest_size[11];
46 TRecorder r(
"http://root.cern/files/guitest_playback.root");
60 guitest_ref[0] = 23319;
61 guitest_ref[1] = 5633;
62 guitest_ref[2] = 14939;
63 guitest_ref[3] = 9459;
64 guitest_ref[4] = 5351;
65 guitest_ref[5] = 22982;
66 guitest_ref[6] = 23812;
67 guitest_ref[7] = 23869;
68 guitest_ref[8] = 23918;
69 guitest_ref[9] = 24067;
70 guitest_ref[10] = 65517;
72 printf(
"**********************************************************************\n");
73 printf(
"* Results of guitest_playback.C *\n");
74 printf(
"**********************************************************************\n");
77 printf(
"guitest %02d: output............................................", i+1);
78 if (
TMath::Abs(guitest_ref[i] - guitest_size[i]) <= guitest_err[i]) {
87 printf(
"**********************************************************************\n");
R__EXTERN TBenchmark * gBenchmark
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
R__EXTERN TSystem * gSystem
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
Class provides direct recorder/replayer interface for a user.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
virtual void Sleep(UInt_t milliSec)
Sleep milliSec milli seconds.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
virtual int Unlink(const char *name)
Unlink, i.e.
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.