From 3741ee3cd2b940132c011ba37897b6fe516f7931 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 8 Apr 2004 18:14:00 +0000 Subject: New documentation for new ConfigReader methods git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@457 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/modules_8cpp-source.html | 118 ++++++++++++++++--------------- 1 file changed, 61 insertions(+), 57 deletions(-) (limited to 'docs/module-doc/modules_8cpp-source.html') diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 38b2bb45b..8281865c1 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -124,7 +124,7 @@ 00116 void Module::OnRehash() { } 00117 void Module::OnServerRaw(std::string &raw, bool inbound) { } 00118 int Module::OnUserPreJoin(userrec* user, chanrec* chan, const char* cname) { return 0; } -00119 bool Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { } +00119 bool Module::OnExtendedMode(userrec* user, void* target, char modechar, int type, bool mode_on, string_list &params) { return false; } 00120 Version Module::GetVersion() { return Version(1,0,0,0); } 00121 void Module::OnOper(userrec* user) { }; 00122 void Module::OnInfo(userrec* user) { }; @@ -326,7 +326,7 @@ 00318 00319 ConfigReader::ConfigReader() 00320 { -00321 this->cache = new std::stringstream(stringstream::in | stringstream::out); +00321 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); 00322 this->error = LoadConf(CONFIG_FILE,this->cache); 00323 } 00324 @@ -340,7 +340,7 @@ 00332 00333 ConfigReader::ConfigReader(std::string filename) 00334 { -00335 this->cache = new std::stringstream(stringstream::in | stringstream::out); +00335 this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out); 00336 this->error = LoadConf(filename.c_str(),this->cache); 00337 }; 00338 @@ -357,68 +357,72 @@ 00349 return EnumConf(cache,tag.c_str()); 00350 } 00351 -00352 -00353 bool ConfigReader::Verify() -00354 { -00355 return this->error; -00356 } -00357 -00358 -00359 FileReader::FileReader(std::string filename) -00360 { -00361 file_cache c; -00362 readfile(c,filename.c_str()); -00363 this->fc = c; -00364 } -00365 -00366 FileReader::FileReader() -00367 { +00352 int ConfigReader::EnumerateValues(std::string tag, int index) +00353 { +00354 return EnumValues(cache, tag.c_str(), index); +00355 } +00356 +00357 bool ConfigReader::Verify() +00358 { +00359 return this->error; +00360 } +00361 +00362 +00363 FileReader::FileReader(std::string filename) +00364 { +00365 file_cache c; +00366 readfile(c,filename.c_str()); +00367 this->fc = c; 00368 } 00369 -00370 void FileReader::LoadFile(std::string filename) +00370 FileReader::FileReader() 00371 { -00372 file_cache c; -00373 readfile(c,filename.c_str()); -00374 this->fc = c; -00375 } -00376 -00377 -00378 FileReader::~FileReader() -00379 { -00380 } +00372 } +00373 +00374 void FileReader::LoadFile(std::string filename) +00375 { +00376 file_cache c; +00377 readfile(c,filename.c_str()); +00378 this->fc = c; +00379 } +00380 00381 -00382 bool FileReader::Exists() +00382 FileReader::~FileReader() 00383 { -00384 if (fc.size() == 0) -00385 { -00386 return(false); -00387 } -00388 else +00384 } +00385 +00386 bool FileReader::Exists() +00387 { +00388 if (fc.size() == 0) 00389 { -00390 return(true); +00390 return(false); 00391 } -00392 } -00393 -00394 std::string FileReader::GetLine(int x) -00395 { -00396 if ((x<0) || (x>fc.size())) -00397 return ""; -00398 return fc[x]; -00399 } -00400 -00401 int FileReader::FileSize() -00402 { -00403 return fc.size(); -00404 } -00405 -00406 -00407 std::vector<Module*> modules(255); -00408 std::vector<ircd_module*> factory(255); +00392 else +00393 { +00394 return(true); +00395 } +00396 } +00397 +00398 std::string FileReader::GetLine(int x) +00399 { +00400 if ((x<0) || (x>fc.size())) +00401 return ""; +00402 return fc[x]; +00403 } +00404 +00405 int FileReader::FileSize() +00406 { +00407 return fc.size(); +00408 } 00409 -00410 int MODCOUNT = -1; -00411 -00412 -
Generated on Wed Apr 7 19:20:14 2004 for InspIRCd by +00410 +00411 std::vector<Module*> modules(255); +00412 std::vector<ircd_module*> factory(255); +00413 +00414 int MODCOUNT = -1; +00415 +00416 +
Generated on Thu Apr 8 19:12:27 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3