newly added. Not for productive used yetsvn diff | grep Index:

This commit is contained in:
nemu
2008-01-08 08:31:58 +00:00
commit c6cc508aaf
85 changed files with 14397 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
#include <iostream>
using namespace std;
#include <TROOT.h>
#include <TSystem.h>
int main(int argc, char *argv[])
{
if (argc != 2) {
cout << endl;
cout << "SYNTAX: rootSystemTest PathFileName";
cout << endl;
return 1;
}
TROOT root("rootSystemTest", "rootSystemTest", 0);
cout << endl;
cout << "Path name: " << argv[1] << endl;
char *str = gSystem->ExpandPathName(argv[1]);
cout << "Path name expanded: " << str << endl;
if (gSystem->AccessPathName(str)==true) {
cout << endl << "file " << str << " doesn't exist :-(" << endl;
} else {
cout << endl << "file " << str << " exists :-)" << endl;
}
cout << "done ..." << endl;
if (str)
delete str;
return 0;
}

View File

@@ -0,0 +1,22 @@
#------------------------------------------------------
# rootSystemTest.pro
# qmake file for rootSystemTest
#
# Andreas Suter, 2007/05/14
#
# $Id$
#
#------------------------------------------------------
MAKEFILE = Makefile
CONFIG += warn_on debug
SOURCES = rootSystemTest.cpp \
INCLUDEPATH += $$(ROOTSYS)/include
ROOTLIBS = -lCore -lCint
unix:LIBS += -L$$(ROOTSYS)/lib $${ROOTLIBS} -lbsd -lm -ldl -lutil
TARGET=rootSystemTest