]> git.sesse.net Git - freerainbowtables/blob - Common/rt api/RTIReader.h
becb0003d506c9d89e295b54fc0a0f62711b1218
[freerainbowtables] / Common / rt api / RTIReader.h
1 /*
2  * freerainbowtables is a project for generating, distributing, and using
3  * perfect rainbow tables
4  *
5  * Copyright 2010, 2011 Martin Westergaard Jørgensen <martinwj2005@gmail.com>
6  * Copyright 2010, 2011 James Nobis <frt@quelrod.net>
7  *
8  * This file is part of freerainbowtables.
9  *
10  * freerainbowtables is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation, either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * freerainbowtables is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with freerainbowtables.  If not, see <http://www.gnu.org/licenses/>.
22  */
23
24 #ifndef __RTIREADER_H__
25 #define __RTIREADER_H__
26
27 #include <string>
28 #ifdef WIN32
29 #include <io.h>
30 #endif
31 #include "Public.h"
32 #include "BaseRTReader.h"
33 using namespace std;
34
35 class RTIReader : BaseRTReader
36 {
37 private:
38         FILE *m_pFile;
39         unsigned int m_chainPosition;
40         unsigned int m_nIndexSize;
41         IndexChain *m_pIndex;
42 public:
43         RTIReader(string Filename);
44         ~RTIReader(void);
45
46         int ReadChains(unsigned int &numChains, RainbowChain *pData);
47         unsigned int GetChainsLeft();
48
49 };
50
51 #endif