ROOT  6.06/09
Reference Guide
TRuby.h
Go to the documentation of this file.
1 // @(#)root/ruby:$Id$
2 // Author: Elias Athanasopoulos, May 2004
3 
4 #ifndef ROOT_TRuby
5 #define ROOT_TRuby
6 
7 #ifndef ROOT_TObject
8 #include "TObject.h"
9 #endif
10 
11 class TRuby {
12 
13 private:
14  static Bool_t Initialize();
15 public:
16  virtual ~TRuby() { }
17  // execute a Ruby statement (e.g. "require 'ruby'")
18  static void Exec(const char *cmd);
19 
20  // evaluate a Ruby expression (e.g. "1+1")
21  static TObject *Eval(const char *expr);
22 
23  // bind a ROOT object with, at the ruby side, the name "label"
24  static Bool_t Bind(TObject *obj, const char *label);
25 
26  // enter an interactive ruby session (exit with ^D)
27  static void Prompt();
28 
29  ClassDef(TRuby,0) //Ruby/ROOT interface
30 };
31 
32 #endif
virtual ~TRuby()
Definition: TRuby.h:16
bool Bool_t
Definition: RtypesCore.h:59
static void Exec(const char *cmd)
Definition: TRuby.cxx:34
#define ClassDef(name, id)
Definition: Rtypes.h:254
static TObject * Eval(const char *expr)
Definition: TRuby.cxx:45
Mother of all ROOT objects.
Definition: TObject.h:58
static void Prompt()
Definition: TRuby.cxx:87
Definition: TRuby.h:11
static Bool_t Bind(TObject *obj, const char *label)
Definition: TRuby.cxx:75
static Bool_t Initialize()
Definition: TRuby.cxx:21
TObject * obj