-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxmlsqlmap.h
More file actions
31 lines (24 loc) · 819 Bytes
/
xmlsqlmap.h
File metadata and controls
31 lines (24 loc) · 819 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
/* This File includes the map that connects the xml tags from players.asp to the sql headers I used.
* Perhaps in future versions this map can be altered depending on language, or maybe the sql headers
* can be the same as the xml (for convenience) and the name mapping can be handled at runtime { ie with
* a SELECT xxx AS statement */
#ifndef XMLSQLMAP_H
#define XMLSQLMAP_H
#include<qmap.h>
#include<qstring.h>
#include<qvaluelist.h>
#include<iostream>
class xmlsqlmap{
public:
static QString translate(QString s);
static bool contains(QString s);
static xmlsqlmap* _singleton;
static QString language;
static void printMap();
private:
QMap<QString,QString> theMap;
xmlsqlmap();
static QValueList<QString> keys(){return(_singleton->theMap.keys());}
static bool instantiated;
};
#endif