blob: b448fb0c778f85294957c838f4d1a11a5e1f3432 (
plain)
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
42
43
44
45
46
47
|
#ifndef _TUSERLIST_H_
#define _TUSERLIST_H_
#include <algorithm>
#include <map>
#include <string>
#include <fstream>
#include <iostream>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <cstring>
#include <dlfcn.h>
using namespace std;
#include "mytypes.h"
#include "myfuncs.h"
class TUserList
{
public:
TUserList();
TUserList(string file);
~TUserList();
void loadfromfile(string file);
void savetofile();
void savetofile(string file);
void removefromlist(string word);
void addtolist (string word);
void addtolist (string word,string add);
void edit (string word, string add);
string get_info(string word);
bool isinlist(string word);
void show_list();
void clear();
map<string,string> give_list();
private:
string filename;
map<string,string> entry;
};
#endif
|