TRuby.h

Go to the documentation of this file.
00001 // @(#)root/ruby:$Id: TRuby.h 20882 2007-11-19 11:31:26Z rdm $
00002 // Author:  Elias Athanasopoulos, May 2004
00003 
00004 #ifndef ROOT_TRuby
00005 #define ROOT_TRuby
00006 
00007 #ifndef ROOT_TObject
00008 #include "TObject.h"
00009 #endif
00010 
00011 class TRuby {
00012 
00013 private:
00014   static bool Initialize();
00015 public:
00016   virtual ~TRuby() { }
00017   // execute a Ruby statement (e.g. "require 'ruby'")
00018   static void Exec(const char *cmd);
00019 
00020   // evaluate a Ruby expression (e.g. "1+1")
00021   static TObject *Eval(const char *expr);
00022 
00023   // bind a ROOT object with, at the ruby side, the name "label"
00024   static bool Bind(TObject *obj, const char *label);
00025 
00026   // enter an interactive ruby session (exit with ^D)
00027   static void Prompt();
00028 
00029   ClassDef(TRuby,0)   //Ruby/ROOT interface
00030 };
00031 
00032 #endif

Generated on Tue Jul 5 14:10:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1