LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
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
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
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
nutools
IFDatabase
Util.h
Generated on Thu Jul 26 2018 13:10:23 for LArSoft by
1.8.11