pluto  1
Small utility library for UUIDs, SHA1, and Encryption
Public Member Functions | List of all members
plt::FileDataReader Class Reference

class used in processing the file data for the encryption More...

#include <FileDataReader.h>

Inheritance diagram for plt::FileDataReader:
plt::IDataReader< char >

Public Member Functions

 FileDataReader (const char *fileName)
 Constructor for FileDataReader class. More...
 
char * toRAM ()
 places the data inside of memory More...
 
void toSource (char *source, int size)
 pushes data to source More...
 
int getSize ()
 get size of data More...
 

Detailed Description

class used in processing the file data for the encryption

Used when the data that needs to be encrypted is stored inside of a file.

Constructor & Destructor Documentation

§ FileDataReader()

plt::FileDataReader::FileDataReader ( const char *  fileName)

Constructor for FileDataReader class.

Takes in a filename that is to be processed by pluto for encryption

Parameters
fileNamefile that is to be processed

Member Function Documentation

§ getSize()

int plt::FileDataReader::getSize ( )
virtual

get size of data

gets the character count for your file.

Returns
how many characters were counted in your file.

Implements plt::IDataReader< char >.

§ toRAM()

char* plt::FileDataReader::toRAM ( )
virtual

places the data inside of memory

Creates a pointer to chars that contains the contents of your file

Returns
pointer to the characters inside of the file

Implements plt::IDataReader< char >.

§ toSource()

void plt::FileDataReader::toSource ( char *  source,
int  size 
)
virtual

pushes data to source

Takes the size and the data and puts them into a file

Implements plt::IDataReader< char >.


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