-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommandparser.h
More file actions
30 lines (27 loc) · 1.3 KB
/
Copy pathcommandparser.h
File metadata and controls
30 lines (27 loc) · 1.3 KB
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
#pragma once
#include "commandparsertypes.h"
class CommandParser
{
private:
int ArgCount;
char** Args;
void PrintHelp();
bool ConfigureSocketAddress(AllPrimebotSettings& Settings, int Flags, std::string Address);
bool ConfigureServer(AllPrimebotSettings& Settings, std::string Address);
bool ConfigureClient(AllPrimebotSettings& Settings, std::string Address);
bool ConfigureAsync(AllPrimebotSettings& Settings);
bool ConfigureReverse(AllPrimebotSettings& Settings);
bool ConfigureThreads(AllPrimebotSettings& Settings, std::string Threads);
bool ConfigurePath(AllPrimebotSettings& Settings, std::string Path);
bool ConfigureSeed(AllPrimebotSettings& Settings, std::string Seed);
bool ConfigureBits(AllPrimebotSettings& Settings, std::string Bits);
bool ConfigurePrint(AllPrimebotSettings& Settings);
bool ConfigureText(AllPrimebotSettings& Settings);
bool ConfigureBatchSize(AllPrimebotSettings& Settings, std::string Size);
bool ConfigureBatches(AllPrimebotSettings& Settings, std::string Batches);
bool ConfigureStartValue(AllPrimebotSettings& Settings, std::string Start);
bool ConfigureStartValueBase(AllPrimebotSettings& Settings, std::string StartBase);
public:
CommandParser(int argc, char** argv);
AllPrimebotSettings ParseArguments();
};