15 for (
int x=strlen(s)-1;
x>=0;
x--) {
16 if (isspace(s[
x])) s[
x]=0;
21 if (
env!=0)
return true;
26 s[0]=0; fgets(s,100,f);
clean(s); username=
s;
27 s[0]=0; fgets(s,100,f);
clean(s); password=
s;
28 s[0]=0; fgets(s,100,f);
clean(s); database=
s;
33 env = oracle::occi::Environment::createEnvironment (oracle::occi::Environment::DEFAULT);
34 conn =
env->createConnection (username, password, database);
42 return conn->createStatement(query);
47 oracle::occi::Environment::terminateEnvironment(
env);
oracle::occi::Connection * conn
oracle::occi::Statement * getStatement(const std::string &query)
T x() const
Cartesian x coordinate.
static const std::string keyFile("/nfshome0/hcalsw/.ReadOMDSKey")
oracle::occi::Environment * env