]> git.sesse.net Git - freerainbowtables/blob - Server Applications/rtperfectp/RTWrite.h
initial
[freerainbowtables] / Server Applications / rtperfectp / RTWrite.h
1 /*
2         Copyright (C) 2008 Steve Thomas <SMT837784@yahoo.com>
3
4         This file is part of RT Perfecter v0.0.
5
6         RT Perfecter v0.0 is free software: you can redistribute it and/or modify
7         it under the terms of the GNU General Public License as published by
8         the Free Software Foundation, either version 3 of the License, or
9         (at your option) any later version.
10
11         RT Perfecter v0.0 is distributed in the hope that it will be useful,
12         but WITHOUT ANY WARRANTY; without even the implied warranty of
13         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14         GNU General Public License for more details.
15
16         You should have received a copy of the GNU General Public License
17         along with RT Perfecter v0.0.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef RTWRITE_H
21 #define RTWRITE_H
22
23 #include "RTCommon.h"
24
25 class RTWrite
26 {
27 public:
28          RTWrite(char *fileName, int maxChainsPerFile);
29         ~RTWrite();
30
31         void writeChain(RTChainCP *c);
32
33 private:
34         uint64 m_prevEndpt;
35         unsigned int m_curFile, m_curFileChains, m_chainsPerFile;
36         char *m_file, *m_fileTemp;
37         FILE *m_pFile;
38         int m_verbose;
39 };
40
41 #endif
42