PPL Assignment
IRM2015006
CSVCreator Class Reference

#include <csv_creator.h>

Collaboration diagram for CSVCreator:
Collaboration graph

Public Member Functions

 CSVCreator (std::string filename, std::string type, std::vector< std::string > headers, std::vector< int > min_value, std::vector< int > max_value)
 
void generate (int n)
 

Private Member Functions

int get_random_int (int min, int max)
 

Private Attributes

std::vector< std::string > headers
 
std::vector< int > min_value
 
std::vector< int > max_value
 
std::string filename
 
std::string type
 
int fields
 

Detailed Description

Definition at line 10 of file csv_creator.h.

Constructor & Destructor Documentation

CSVCreator::CSVCreator ( std::string  filename,
std::string  type,
std::vector< std::string >  headers,
std::vector< int >  min_value,
std::vector< int >  max_value 
)

Definition at line 7 of file csv_creator.cpp.

Member Function Documentation

void CSVCreator::generate ( int  n)

Definition at line 25 of file csv_creator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int CSVCreator::get_random_int ( int  min,
int  max 
)
private

Definition at line 49 of file csv_creator.cpp.

Here is the caller graph for this function:

Member Data Documentation

int CSVCreator::fields
private

Definition at line 18 of file csv_creator.h.

std::string CSVCreator::filename
private

Definition at line 16 of file csv_creator.h.

std::vector<std::string> CSVCreator::headers
private

Definition at line 13 of file csv_creator.h.

std::vector<int> CSVCreator::max_value
private

Definition at line 15 of file csv_creator.h.

std::vector<int> CSVCreator::min_value
private

Definition at line 14 of file csv_creator.h.

std::string CSVCreator::type
private

Definition at line 17 of file csv_creator.h.


The documentation for this class was generated from the following files: