-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomDBgenerator.hpp
More file actions
36 lines (30 loc) · 883 Bytes
/
Copy pathRandomDBgenerator.hpp
File metadata and controls
36 lines (30 loc) · 883 Bytes
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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: RandomDBgenerator.hpp
* Author: mahdi
*
* Created on January 6, 2018, 2:50 PM
*/
#ifndef RANDOMDBGENERATOR_HPP
#define RANDOMDBGENERATOR_HPP
#include <string>
class RandomDBgenerator {
public:
RandomDBgenerator();
RandomDBgenerator(const RandomDBgenerator& orig);
virtual ~RandomDBgenerator();
int setParameters(std::string t_directory, size_t t_numberOfFiles, size_t t_fileSize, int t_verbose);
int generateRandomFile(std::string t_fileName, size_t t_size);
int generate();
int fastGenerate();
private:
std::string m_directory;
size_t m_numberOfFiles;
size_t m_fileSize;
int m_verbose = 0;
};
#endif /* RANDOMDBGENERATOR_HPP */