-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmisc.h
More file actions
41 lines (37 loc) · 806 Bytes
/
misc.h
File metadata and controls
41 lines (37 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* FDS - Fuse Door System.
* misc.h
* contains miscellaneous functions.
*
* Created on: 17-Jun-2009
* Author: matthew
*/
#ifndef MISC_H_
#define MISC_H_
#include <string>
#include <vector>
using namespace std;
struct optStruct
{
string strLDAPuri;
vector<string> vecStrSearchGroups;
vector<string> vecStrSearchOnAirGroups;
int intTimeout;
int intDoorOpenTime;
string strErrorDir;
string strSqlServer;
string strSqlUser;
string basedn;
string strSqlPassword;
string strSqlTable;
};
//Function fnGetDateTime. This will get the current date and time in a human readable format
void
fnLogError(string strFile, string errorMessage);
string
fnGetCurrentTime();
string
fnConvertIntToString(int number);
bool
fnGetOpt(string strFile, optStruct* opts);
#endif /* MISC_H_ */