diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-02-05 12:59:12 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-02-05 12:59:12 +0000 |
| commit | f9862aff32f7ea5aa10f9362d7598480b1c9cf28 (patch) | |
| tree | df14985bee0e52f284ffa4c0881a61b32848f5d0 /src/file.cc | |
| parent | 9acb2e83ed4a39ece8d39dd479c160b79b02d7ab (diff) | |
Comments / tweaks.
Diffstat (limited to 'src/file.cc')
| -rw-r--r-- | src/file.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/file.cc b/src/file.cc index d39f93e0..aabda166 100644 --- a/src/file.cc +++ b/src/file.cc @@ -17,11 +17,18 @@ */ +/** @file src/file.cc + * @brief File class. + */ + #include "file.h" #include "util.h" using namespace dcp; +/** Read a file into memory. + * @param file to read. + */ File::File (boost::filesystem::path file) { _size = boost::filesystem::file_size (file); @@ -32,6 +39,7 @@ File::File (boost::filesystem::path file) fclose (f); } +/** File destructor */ File::~File () { delete[] _data; |
