Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
nutools
old
IFDatabase
Util.h
Go to the documentation of this file.
1
#ifndef __DBIUTIL_HPP_
2
#define __DBIUTIL_HPP_
3
4
#include <string>
5
#include <ctime>
6
7
namespace
nutools
{
8
namespace
dbi {
9
10
/**
11
* Generalized Database Table Interface Utilities
12
*
13
* @author Jonathan Paley
14
* @version $Id: Util.h,v 1.9 2011/08/08 16:03:04 jpaley Exp $
15
*/
16
class
Util
17
{
18
public
:
19
20
static
bool
CheckConnection
(
std::string
dbname,
21
std::string
server
,
22
std::string
user =
""
,
23
std::string
port =
""
);
24
static
std::string
GetFarPastTimeAsString
();
25
static
std::string
GetCurrentTimeAsString
();
26
static
std::string
GetCurrentDateAsString
();
27
static
std::string
GetFarFutureTimeAsString
();
28
static
bool
TimeAsStringToTime_t
(
std::string
ts, time_t&
t
);
29
static
bool
DateAsStringToTime_t
(
std::string
date, time_t& t);
30
static
bool
RunningOnGrid
();
31
};
32
33
}
// namespace dbi close
34
}
// namespace nova close
35
36
#endif
nutools::dbi::Util::RunningOnGrid
static bool RunningOnGrid()
Definition:
Util.cpp:132
generate_CCQE_events.t
t
Definition:
generate_CCQE_events.py:68
string
std::string string
Definition:
nybbler.cc:12
nutools::dbi::Util::GetCurrentTimeAsString
static std::string GetCurrentTimeAsString()
Definition:
Util.cpp:42
nutools
Simple service to provide a RunHistory configured to the right run.
Definition:
Column.cpp:14
nutools::dbi::Util::GetFarFutureTimeAsString
static std::string GetFarFutureTimeAsString()
Definition:
Util.cpp:75
python.batchstatus.server
server
Definition:
batchstatus.py:25
nutools::dbi::Util::CheckConnection
static bool CheckConnection(std::string dbname, std::string server, std::string user="", std::string port="")
Definition:
Util.cpp:13
nutools::dbi::Util::GetFarPastTimeAsString
static std::string GetFarPastTimeAsString()
Definition:
Util.cpp:70
nutools::dbi::Util::TimeAsStringToTime_t
static bool TimeAsStringToTime_t(std::string ts, time_t &t)
Definition:
Util.cpp:81
nutools::dbi::Util::DateAsStringToTime_t
static bool DateAsStringToTime_t(std::string date, time_t &t)
Definition:
Util.cpp:106
nutools::dbi::Util::GetCurrentDateAsString
static std::string GetCurrentDateAsString()
Definition:
Util.cpp:56
nutools::dbi::Util
Definition:
Util.h:16
Generated by
1.8.11