-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.h
36 lines (35 loc) · 1.17 KB
/
constants.h
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
#pragma once
namespace Commands {
const char SIGNUP[] = "signup";
const char LOGIN[] = "login";
const char LOGOUT[] = "logout";
const char SEARCH[] = "search";
const char CREATE[] = "create";
const char OPEN[] = "open";
const char POST[] = "post";
const char P_OPEN[] = "p_open";
const char COMMENT[] = "comment";
const char COMMENTS[] = "comments";
const char REPLY[] = "reply";
const char UPVOTE[] = "upvote";
const char DOWNVOTE[] = "downvote";
const char P_CLOSE[] = "p_close";
const char QUIT[] = "quit";
const char EXIT[] = "exit";
const char WHOAMI[] = "whoami";
const char ABOUT[] = "about";
const char LIST[] = "list";
const char ONE[] = "1";
}
namespace Constants {
const size_t MAX_ID_SIZE = 20;
const size_t MAX_COMMAND_SIZE = 100;
}
namespace FileNames {
const char topicsBinaryFile[] = "topics.dat";
const char usersBinaryFile[] = "users.dat";
const char postIdentificatorFileName[] = "postIdentificator.txt";
const char topicsIdetificatorFileName[] = "topicIdentificator.txt";
const char commentIdentificatorFileName[] = "commentIdentifcator.txt";
const char usersIdentificatorFileName[] = "userIdentificator.txt";
}