pluto  1
Small utility library for UUIDs, SHA1, and Encryption
FileDataReader.h
Go to the documentation of this file.
1 #pragma once
2 
12 #include "IDataReader.h"
13 #include <fstream>
14 #include <iostream>
15 
16 namespace plt {
17 
23  class FileDataReader: public IDataReader<char> {
24 
25  public:
26 
33  FileDataReader(const char* fileName);
34 
41  char* toRAM();
42 
47  void toSource(char* source, int size);
48 
54  int getSize();
55 
56  ~FileDataReader();
57  private:
58  std::fstream file;
59  char* ptr;
60  int size;
61  };
62 }
Header for Plutos functionality for processing data used in encryption.
class used in processing the file data for the encryption
Definition: FileDataReader.h:23
void toSource(char *source, int size)
pushes data to source
char * toRAM()
places the data inside of memory
int getSize()
get size of data
FileDataReader(const char *fileName)
Constructor for FileDataReader class.
Template type, input the data type that is to be encrypted.
Definition: IDataReader.h:21
Do not use these functions.
Definition: FileDataReader.h:16