15 for (
int x=strlen(s)-1;
x>=0;
x--) {
16 if (isspace(s[
x])) s[
x]=0;
21 if (
env!=
nullptr)
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;
34 conn =
env->createConnection (username, password, database);
41 if (
env==
nullptr)
return nullptr;
42 return conn->createStatement(query);
45 if (
env==
nullptr)
return;
47 oracle::occi::Environment::terminateEnvironment(
env);
oracle::occi::Connection * conn
oracle::occi::Statement * getStatement(const std::string &query)
static void clean(char *s)
static const std::string keyFile("/nfshome0/hcalsw/.ReadOMDSKey")
oracle::occi::Environment * env