From a753fb1bc711e10794e939e424f3cdd703116d82 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Apr 2004 12:38:41 +0000 Subject: Added support for modules to create commands - this needs a proof-of-concept module yet, do not use unless you like to live dangerously. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@351 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/classFileReader.html | 151 +++++++++++++++++++++++------------ 1 file changed, 98 insertions(+), 53 deletions(-) (limited to 'docs/module-doc/classFileReader.html') diff --git a/docs/module-doc/classFileReader.html b/docs/module-doc/classFileReader.html index b60532125..d2ba2399b 100644 --- a/docs/module-doc/classFileReader.html +++ b/docs/module-doc/classFileReader.html @@ -24,18 +24,19 @@ Inheritance diagram for FileReader:
-Definition at line 297 of file modules.h.
Secondary constructor.
-This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0. +This method initialises the class with a file loaded into it ready for GetLine and and other methods to be called. If the file could not be loaded, FileReader::FileSize returns 0.
-Definition at line 186 of file modules.cpp. +Definition at line 258 of file modules.cpp.
-References fc, and file_cache. +References fc, and file_cache.
-
00187 {
-00188 file_cache c;
-00189 readfile(c,filename.c_str());
-00190 this->fc = c;
-00191 }
+00259 {
+00260 file_cache c;
+00261 readfile(c,filename.c_str());
+00262 this->fc = c;
+00263 }
This deletes the memory allocated to the file.
-Definition at line 204 of file modules.cpp. +Definition at line 277 of file modules.cpp.
-
00205 {
-00206 }
+00278 {
+00279 }
Member Function Documentation
-
+
+
|
+
| + + | +
+
+ +Retrieve one line from the file. + +This method retrieves one line from the text file. If an empty non-NULL string is returned, the index was out of bounds, or the line had no data on it. + +Definition at line 281 of file modules.cpp. + +References fc. + + 00282 {
+00283 if (fc.size() == 0)
+00284 {
+00285 return(false);
+00286 }
+00287 else
+00288 {
+00289 return(true);
+00290 }
+00291 }
+ |
+
|
@@ -189,23 +236,23 @@ Returns the size of the file in lines.
This method returns the number of lines in the read file. If it is 0, no lines have been read into memory, either because the file is empty or it does not exist, or cannot be opened due to permission problems. -Definition at line 215 of file modules.cpp. +Definition at line 300 of file modules.cpp. -References fc. +References fc. - |
| ||||||
| void FileReader::LoadFile | ( | -string | +std::string | filename | ) | @@ -269,17 +314,17 @@ References fc. |
file_cache FileReader::fc [private]
+ | file_cache FileReader::fc [private]
|
-Definition at line 299 of file modules.h. +Definition at line 349 of file modules.h.
-Referenced by FileReader(), FileSize(), GetLine(), and LoadFile(). +Referenced by Exists(), FileReader(), FileSize(), GetLine(), and LoadFile().
1.3-rc3
--
cgit v1.3.1-10-gc9f91