https://github.com/root-project/root
Raw File
Tip revision: 2cd3aafb76e161c5e687de877863ffeb4022b4b0 authored by Gerardo Ganis on 11 June 2012, 16:52:22 UTC
Import patch r44048 removing the automatic creation of TDrawFeedback in TProofChain
Tip revision: 2cd3aaf
t1067.h
/* -*- C++ -*- */
/*************************************************************************
 * Copyright(c) 1995~2005  Masaharu Goto (cint@pcroot.cern.ch)
 *
 * For the licensing terms see the file COPYING
 *
 ************************************************************************/

#include <stdio.h>
#include <stdlib.h>
#include <string.h>


typedef const char Option_t;
class TString {
  char dum[4];
  char buf[100];
 public:
  TString(const char* s="") { 
    strcpy(dum,"XXX");
    strcpy(buf,s); 
  }
  TString(const TString& x) { 
    strcpy(dum,"YYY");
    strcpy(buf,x.buf); 
  }
  operator const char*() {
    printf("TString::operator const char*()\n");
    return(buf);
  }
};

class TTree {
 public:
  void Draw(Option_t* x) {
    printf("TTree::Draw(%s)\n",x);
  }
  void Draw(const char* a, const char* b) {
    printf("TTree::Draw(%s,%s)\n",a,b);
  }
};


back to top