Desafio Labsec (SGC)
include
utils
FileIo.h
Go to the documentation of this file.
1
#ifndef FILEIO_H
2
#define FILEIO_H
3
4
#include <fstream>
5
#include <libcryptosec/ByteArray.h>
6
#include "
exceptions/IoException.h
"
7
#include "
utils/trace.h
"
8
#include "
utils/macros.h
"
9
28
class
FileIo
{
29
30
public
:
31
32
virtual
~FileIo
();
33
41
static
ByteArray
readFile
(
const
char
* filePath);
42
50
static
void
writeToFile
(
const
char
* filePath, ByteArray& data);
51
};
52
#endif
/*FILEIO_H*/
trace.h
macros.h
FileIo
I/O handling functions
Definition:
FileIo.h:28
IoException.h
FileIo::writeToFile
static void writeToFile(const char *filePath, ByteArray &data)
Definition:
FileIo.cpp:21
FileIo::~FileIo
virtual ~FileIo()
Definition:
FileIo.cpp:3
FileIo::readFile
static ByteArray readFile(const char *filePath)
Definition:
FileIo.cpp:5
Generated by
1.8.13