summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 22:11:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 22:11:53 +0000
commit719f60cfc641d85c2cd41598bdff209400ab1fab (patch)
tree9ffc2ec36c98219ea1074108c8e266f9c7500b77 /include/modules.h
parent5ced4eea0a12c64c4e1425f22bb7dd311463ebcd (diff)
Add FileReader::ContentSize and FileReader::Contents
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4314 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index e326f6d97..33416a596 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1850,6 +1850,14 @@ class FileReader : public classbase
*/
void LoadFile(const std::string &filename);
+ /** Returns the whole content of the file as std::string
+ */
+ std::string Contents();
+
+ /** Returns the entire size of the file as std::string
+ */
+ unsigned long ContentSize();
+
/** Returns true if the file exists
* This function will return false if the file could not be opened.
*/