#include <fstream>#include <math.h>#include <stdio.h>#include "SeqBitmap.h"#include "Bitmap4.h"#include "Bitmap8.h"#include "Bitmap16.h"#include "Bitmap32.h"#include "Bitmap64.h"#include "DatasetInfo.h"#include "ResizableArray.h"#include "StringMap.h"#include <iostream>Include dependency graph for FileInput.cpp:

Go to the source code of this file.
| Defines | |
| #define | FILEERR_64TRANSACTIONS 1 | 
| FileInput.cpp. | |
| #define | FILEERR_NOTFOUNDBINARY 2 | 
| #define | FILEERR_NOTFOUNDASCII 3 | 
| Functions | |
| void | PrintFileReadError (int errorType) | 
| It prints an error related to the data file input. | |
| void | IncArraySize (int *&array, int oldSize, int newSize) | 
| It resizes the array to have an increased size. | |
| bool | CollectBinaryInfo (char *filename, int &custCount, int &itemCount, int &transCount, int *&custTransCount, int *&itemCustCount, int *&cids, int *&tids, int *&iids, int *&transLens, int &overallCount, int &transLensLength) | 
| It collects information about a binary data file. | |
| bool | CollectASCIIInfo (char *filename, bool isStringFile, StringMap *&custStrMap, StringMap *&transStrMap, StringMap *&itemStrMap, int &custCount, int &itemCount, int &lineCount, int *&custTransCount, int *&itemCustCount, int *&cids, int *&tids, int *&iids, int &overallCount) | 
| It collects information about an ASCII data file. | |
| bool | ReadBinary (char *filename, int *cids, int *tids, int *iids, int numEntries, int *transLens, int transLensLength, int *custBitmapMap, int **custMap, int *itemMap, SeqBitmap **f1Buff) | 
| It reads stores the binary data file. | |
| bool | ReadASCII (char *filename, int *cids, int *tids, int *iids, int numEntries, int *custBitmapMap, int **custMap, int *itemMap, SeqBitmap **f1Buff) | 
| It reads stores the ASCII data file. | |
| DatasetInfo * | ReadDataset (bool isBinaryFile, bool isStringFile, char *filename, double minSupPercent, StringMap *&custStrMap, StringMap *&transStrMap, StringMap *&itemStrMap) | 
| It reads the input file and finds the frequent-1 itemsets. | |
| Variables | |
| const int | NUM_BITMAP = 5 | 
| number of different bitmaps in SeqBitmap | |
| const int | BITMAP_LENGTH [5] | 
| the size of each customer data in each bitmap | |
| const int | NUM_BITMAPS_USED = 4 | 
| tempAndBitmap, specialBitmap, returnBitmap, SBitmap | |
| const int | MAX_STRING_SIZE = 256 | 
| Maximum length of strings used to represent customers, transactions, and items when -str is used. | |
| 
 | 
| 
 Definition at line 52 of file FileInput.cpp. Referenced by PrintFileReadError(), and ReadDataset(). | 
| 
 | 
| 
 Definition at line 54 of file FileInput.cpp. Referenced by CollectASCIIInfo(), and PrintFileReadError(). | 
| 
 | 
| 
 Definition at line 53 of file FileInput.cpp. Referenced by CollectBinaryInfo(), and PrintFileReadError(). | 
 1.3.4
 
1.3.4