forked from defuse/crackstation-hashdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.h
35 lines (28 loc) · 802 Bytes
/
main.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
#ifndef CRACKSTATION_MAIN_H
#define CRACKSTATION_MAIN_H
// Includes
#include <iostream>
#include <math.h>
#include <string>
#include <unordered_map>
#include <vector>
#include "checkidx.h"
#include "createidx.h"
#include "optionparser.h"
#include "progressbar.h"
#include "search.h"
#include "sortidx.h"
#include "util.h"
// Constants
constexpr size_t defaultRam = 256;
constexpr int exitSucess = EXIT_SUCCESS;
constexpr int exitGenericFailure = EXIT_FAILURE;
constexpr int exitTestFailure = exitGenericFailure + 1;
constexpr int exitParseFailure = exitTestFailure + 1;
// Variables
extern const option::Descriptor usage[];
// Functions
int main( int argc, char** argv );
matchMode getMatchMode( std::string str );
option::ArgStatus isMatchMode( const option::Option& option, bool msg );
#endif