Loading [MathJax]/extensions/tex2jax.js
ROOT
6.06/09
Reference Guide
ROOT Home Page
Main Page
Related Pages
User's Classes
Namespaces
All Classes
Files
Release Notes
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
bindings
ruby
inc
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
TRuby::~TRuby
virtual ~TRuby()
Definition:
TRuby.h:16
Bool_t
bool Bool_t
Definition:
RtypesCore.h:59
TRuby::Exec
static void Exec(const char *cmd)
Definition:
TRuby.cxx:34
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
TRuby::Eval
static TObject * Eval(const char *expr)
Definition:
TRuby.cxx:45
TObject
Mother of all ROOT objects.
Definition:
TObject.h:58
TRuby::Prompt
static void Prompt()
Definition:
TRuby.cxx:87
TObject.h
TRuby
Definition:
TRuby.h:11
TRuby::Bind
static Bool_t Bind(TObject *obj, const char *label)
Definition:
TRuby.cxx:75
TRuby::Initialize
static Bool_t Initialize()
Definition:
TRuby.cxx:21
obj
TObject * obj
Definition:
TStreamerInfo.cxx:83