diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-03-30 12:32:32 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-03-30 12:32:32 +0000 |
commit | 44b62866f83dea028500d81274eaaba8e886e1c3 (patch) | |
tree | 0a7a97f683173fadcc396bf1282c111aa4831241 /docs/module-doc/modules_8cpp-source.html | |
parent | 48012b330a08a81af84a5ff1d901ddc5e24a942f (diff) |
Added DOT files to documentation for class diagrams (pretteh!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@169 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/module-doc/modules_8cpp-source.html')
-rw-r--r-- | docs/module-doc/modules_8cpp-source.html | 371 |
1 files changed, 186 insertions, 185 deletions
diff --git a/docs/module-doc/modules_8cpp-source.html b/docs/module-doc/modules_8cpp-source.html index 793cf2c10..c1b618899 100644 --- a/docs/module-doc/modules_8cpp-source.html +++ b/docs/module-doc/modules_8cpp-source.html @@ -3,7 +3,7 @@ <title>modules.cpp Source File</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> -<!-- Generated by Doxygen 1.3-rc2 --> +<!-- Generated by Doxygen 1.3-rc3 --> <center> <a class="qindex" href="main.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>modules.cpp</h1><a href="modules_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span> @@ -41,199 +41,200 @@ 00033 <span class="keywordtype">void</span> Module::OnPacketTransmit(<span class="keywordtype">char</span> *p) { } 00034 <span class="keywordtype">void</span> Module::OnPacketReceive(<span class="keywordtype">char</span> *p) { } <a name="l00035"></a><a class="code" href="classModule.html#a9">00035</a> <span class="keywordtype">void</span> <a class="code" href="classModule.html#a9">Module::OnRehash</a>() { } -<a name="l00036"></a><a class="code" href="classModule.html#a2">00036</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">Module::GetVersion</a>() { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0); } -00037 -00038 <span class="comment">// server is a wrapper class that provides methods to all of the C-style</span> -00039 <span class="comment">// exports in the core</span> -00040 <span class="comment">//</span> -00041 -<a name="l00042"></a><a class="code" href="classServer.html#a0">00042</a> <a class="code" href="classServer.html#a0">Server::Server</a>() -00043 { -00044 } -00045 -<a name="l00046"></a><a class="code" href="classServer.html#a1">00046</a> <a class="code" href="classServer.html#a1">Server::~Server</a>() -00047 { -00048 } -00049 -<a name="l00050"></a><a class="code" href="classServer.html#a2">00050</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">Server::SendOpers</a>(string s) -00051 { -00052 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); -00053 } -00054 -<a name="l00055"></a><a class="code" href="classServer.html#a3">00055</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Server::Log</a>(<span class="keywordtype">int</span> level, string s) -00056 { -00057 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); -00058 } -00059 -<a name="l00060"></a><a class="code" href="classServer.html#a4">00060</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Server::Send</a>(<span class="keywordtype">int</span> Socket, string s) -00061 { -00062 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00063 } -00064 -<a name="l00065"></a><a class="code" href="classServer.html#a5">00065</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, string s) -00066 { -00067 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); -00068 } -00069 -<a name="l00070"></a><a class="code" href="classServer.html#a6">00070</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, string s) -00071 { -00072 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00073 } -00074 -<a name="l00075"></a><a class="code" href="classServer.html#a7">00075</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, string s) -00076 { -00077 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); -00078 } -00079 -<a name="l00080"></a><a class="code" href="classServer.html#a8">00080</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, string s,<span class="keywordtype">bool</span> IncludeSender) -00081 { -00082 <span class="keywordflow">if</span> (IncludeSender) -00083 { -00084 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00085 } -00086 <span class="keywordflow">else</span> -00087 { -00088 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); -00089 } -00090 } -00091 -<a name="l00092"></a><a class="code" href="classServer.html#a9">00092</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) -00093 { -00094 <span class="keywordflow">return</span> (common_channels(u1,u2) != 0); -00095 } -00096 -<a name="l00097"></a><a class="code" href="classServer.html#a10">00097</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, string text,<span class="keywordtype">bool</span> IncludeSender) -00098 { -00099 <span class="keywordflow">if</span> (IncludeSender) -00100 { -00101 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00102 } -00103 <span class="keywordflow">else</span> -00104 { -00105 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00106 } -00107 } -00108 -<a name="l00109"></a><a class="code" href="classServer.html#a11">00109</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, string text) -00110 { -00111 WriteWallOps(User,<span class="stringliteral">"%s"</span>,text.c_str()); -00112 } -00113 -<a name="l00114"></a><a class="code" href="classServer.html#a12">00114</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">Server::IsNick</a>(string nick) -00115 { -00116 <span class="keywordflow">return</span> (isnick(nick.c_str()) != 0); -00117 } -00118 -<a name="l00119"></a><a class="code" href="classServer.html#a13">00119</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a13">Server::FindNick</a>(string nick) -00120 { -00121 <span class="keywordflow">return</span> Find(nick); -00122 } -00123 -<a name="l00124"></a><a class="code" href="classServer.html#a14">00124</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a14">Server::FindChannel</a>(string channel) -00125 { -00126 <span class="keywordflow">return</span> FindChan(channel.c_str()); -00127 } -00128 -<a name="l00129"></a><a class="code" href="classServer.html#a15">00129</a> string <a class="code" href="classServer.html#a15">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) -00130 { -00131 string mode = cmode(User,Chan); -00132 <span class="keywordflow">return</span> mode; -00133 } -00134 -<a name="l00135"></a><a class="code" href="classServer.html#a16">00135</a> string <a class="code" href="classServer.html#a16">Server::GetServerName</a>() -00136 { -00137 <span class="keywordflow">return</span> getservername(); -00138 } -00139 -<a name="l00140"></a><a class="code" href="classServer.html#a17">00140</a> string <a class="code" href="classServer.html#a17">Server::GetNetworkName</a>() -00141 { -00142 <span class="keywordflow">return</span> getnetworkname(); -00143 } -00144 -<a name="l00145"></a><a class="code" href="classServer.html#a18">00145</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a18">Server::GetAdmin</a>() -00146 { -00147 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); -00148 } -00149 +00036 <span class="keywordtype">void</span> Module::OnServerRaw(string &raw, <span class="keywordtype">bool</span> inbound) { } +<a name="l00037"></a><a class="code" href="classModule.html#a2">00037</a> <a class="code" href="classVersion.html">Version</a> <a class="code" href="classModule.html#a2">Module::GetVersion</a>() { <span class="keywordflow">return</span> <a class="code" href="classVersion.html">Version</a>(1,0,0,0); } +00038 +00039 <span class="comment">// server is a wrapper class that provides methods to all of the C-style</span> +00040 <span class="comment">// exports in the core</span> +00041 <span class="comment">//</span> +00042 +<a name="l00043"></a><a class="code" href="classServer.html#a0">00043</a> <a class="code" href="classServer.html#a0">Server::Server</a>() +00044 { +00045 } +00046 +<a name="l00047"></a><a class="code" href="classServer.html#a1">00047</a> <a class="code" href="classServer.html#a1">Server::~Server</a>() +00048 { +00049 } +00050 +<a name="l00051"></a><a class="code" href="classServer.html#a2">00051</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a2">Server::SendOpers</a>(string s) +00052 { +00053 WriteOpers(<span class="stringliteral">"%s"</span>,s.c_str()); +00054 } +00055 +<a name="l00056"></a><a class="code" href="classServer.html#a3">00056</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a3">Server::Log</a>(<span class="keywordtype">int</span> level, string s) +00057 { +00058 log(level,<span class="stringliteral">"%s"</span>,s.c_str()); +00059 } +00060 +<a name="l00061"></a><a class="code" href="classServer.html#a4">00061</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a4">Server::Send</a>(<span class="keywordtype">int</span> Socket, string s) +00062 { +00063 Write(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00064 } +00065 +<a name="l00066"></a><a class="code" href="classServer.html#a5">00066</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a5">Server::SendServ</a>(<span class="keywordtype">int</span> Socket, string s) +00067 { +00068 WriteServ(Socket,<span class="stringliteral">"%s"</span>,s.c_str()); +00069 } +00070 +<a name="l00071"></a><a class="code" href="classServer.html#a6">00071</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a6">Server::SendFrom</a>(<span class="keywordtype">int</span> Socket, <a class="code" href="classuserrec.html">userrec</a>* User, string s) +00072 { +00073 WriteFrom(Socket,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00074 } +00075 +<a name="l00076"></a><a class="code" href="classServer.html#a7">00076</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a7">Server::SendTo</a>(<a class="code" href="classuserrec.html">userrec</a>* Source, <a class="code" href="classuserrec.html">userrec</a>* Dest, string s) +00077 { +00078 WriteTo(Source,Dest,<span class="stringliteral">"%s"</span>,s.c_str()); +00079 } +00080 +<a name="l00081"></a><a class="code" href="classServer.html#a8">00081</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a8">Server::SendChannel</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Channel, string s,<span class="keywordtype">bool</span> IncludeSender) +00082 { +00083 <span class="keywordflow">if</span> (IncludeSender) +00084 { +00085 WriteChannel(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00086 } +00087 <span class="keywordflow">else</span> +00088 { +00089 ChanExceptSender(Channel,User,<span class="stringliteral">"%s"</span>,s.c_str()); +00090 } +00091 } +00092 +<a name="l00093"></a><a class="code" href="classServer.html#a9">00093</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a9">Server::CommonChannels</a>(<a class="code" href="classuserrec.html">userrec</a>* u1, <a class="code" href="classuserrec.html">userrec</a>* u2) +00094 { +00095 <span class="keywordflow">return</span> (common_channels(u1,u2) != 0); +00096 } +00097 +<a name="l00098"></a><a class="code" href="classServer.html#a10">00098</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a10">Server::SendCommon</a>(<a class="code" href="classuserrec.html">userrec</a>* User, string text,<span class="keywordtype">bool</span> IncludeSender) +00099 { +00100 <span class="keywordflow">if</span> (IncludeSender) +00101 { +00102 WriteCommon(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00103 } +00104 <span class="keywordflow">else</span> +00105 { +00106 WriteCommonExcept(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00107 } +00108 } +00109 +<a name="l00110"></a><a class="code" href="classServer.html#a11">00110</a> <span class="keywordtype">void</span> <a class="code" href="classServer.html#a11">Server::SendWallops</a>(<a class="code" href="classuserrec.html">userrec</a>* User, string text) +00111 { +00112 WriteWallOps(User,<span class="stringliteral">"%s"</span>,text.c_str()); +00113 } +00114 +<a name="l00115"></a><a class="code" href="classServer.html#a12">00115</a> <span class="keywordtype">bool</span> <a class="code" href="classServer.html#a12">Server::IsNick</a>(string nick) +00116 { +00117 <span class="keywordflow">return</span> (isnick(nick.c_str()) != 0); +00118 } +00119 +<a name="l00120"></a><a class="code" href="classServer.html#a13">00120</a> <a class="code" href="classuserrec.html">userrec</a>* <a class="code" href="classServer.html#a13">Server::FindNick</a>(string nick) +00121 { +00122 <span class="keywordflow">return</span> Find(nick); +00123 } +00124 +<a name="l00125"></a><a class="code" href="classServer.html#a14">00125</a> <a class="code" href="classchanrec.html">chanrec</a>* <a class="code" href="classServer.html#a14">Server::FindChannel</a>(string channel) +00126 { +00127 <span class="keywordflow">return</span> FindChan(channel.c_str()); +00128 } +00129 +<a name="l00130"></a><a class="code" href="classServer.html#a15">00130</a> string <a class="code" href="classServer.html#a15">Server::ChanMode</a>(<a class="code" href="classuserrec.html">userrec</a>* User, <a class="code" href="classchanrec.html">chanrec</a>* Chan) +00131 { +00132 string mode = cmode(User,Chan); +00133 <span class="keywordflow">return</span> mode; +00134 } +00135 +<a name="l00136"></a><a class="code" href="classServer.html#a16">00136</a> string <a class="code" href="classServer.html#a16">Server::GetServerName</a>() +00137 { +00138 <span class="keywordflow">return</span> getservername(); +00139 } +00140 +<a name="l00141"></a><a class="code" href="classServer.html#a17">00141</a> string <a class="code" href="classServer.html#a17">Server::GetNetworkName</a>() +00142 { +00143 <span class="keywordflow">return</span> getnetworkname(); +00144 } +00145 +<a name="l00146"></a><a class="code" href="classServer.html#a18">00146</a> <a class="code" href="classAdmin.html">Admin</a> <a class="code" href="classServer.html#a18">Server::GetAdmin</a>() +00147 { +00148 <span class="keywordflow">return</span> <a class="code" href="classAdmin.html">Admin</a>(getadminname(),getadminemail(),getadminnick()); +00149 } 00150 -<a name="l00151"></a><a class="code" href="classConfigReader.html#a0">00151</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() -00152 { -00153 <a class="code" href="classConfigReader.html#n0">fname</a> = CONFIG_FILE; -00154 } -00155 +00151 +<a name="l00152"></a><a class="code" href="classConfigReader.html#a0">00152</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>() +00153 { +00154 <a class="code" href="classConfigReader.html#n0">fname</a> = CONFIG_FILE; +00155 } 00156 -<a name="l00157"></a><a class="code" href="classConfigReader.html#a2">00157</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() -00158 { -00159 } -00160 +00157 +<a name="l00158"></a><a class="code" href="classConfigReader.html#a2">00158</a> <a class="code" href="classConfigReader.html#a2">ConfigReader::~ConfigReader</a>() +00159 { +00160 } 00161 -<a name="l00162"></a><a class="code" href="classConfigReader.html#a1">00162</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(string filename) : fname(filename) { }; -00163 -<a name="l00164"></a><a class="code" href="classConfigReader.html#a3">00164</a> string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(string tag, string name, <span class="keywordtype">int</span> index) -00165 { -00166 <span class="keywordtype">char</span> val[MAXBUF]; -00167 ReadConf(<a class="code" href="classConfigReader.html#n0">fname</a>.c_str(),tag.c_str(),name.c_str(),index,val); -00168 string s = val; -00169 <span class="keywordflow">return</span> s; -00170 } -00171 +00162 +<a name="l00163"></a><a class="code" href="classConfigReader.html#a1">00163</a> <a class="code" href="classConfigReader.html#a0">ConfigReader::ConfigReader</a>(string filename) : fname(filename) { }; +00164 +<a name="l00165"></a><a class="code" href="classConfigReader.html#a3">00165</a> string <a class="code" href="classConfigReader.html#a3">ConfigReader::ReadValue</a>(string tag, string name, <span class="keywordtype">int</span> index) +00166 { +00167 <span class="keywordtype">char</span> val[MAXBUF]; +00168 ReadConf(<a class="code" href="classConfigReader.html#n0">fname</a>.c_str(),tag.c_str(),name.c_str(),index,val); +00169 string s = val; +00170 <span class="keywordflow">return</span> s; +00171 } 00172 -<a name="l00173"></a><a class="code" href="classConfigReader.html#a4">00173</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::Enumerate</a>(string tag) -00174 { -00175 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#n0">fname</a>.c_str(),tag.c_str()); -00176 } -00177 +00173 +<a name="l00174"></a><a class="code" href="classConfigReader.html#a4">00174</a> <span class="keywordtype">int</span> <a class="code" href="classConfigReader.html#a4">ConfigReader::Enumerate</a>(string tag) +00175 { +00176 <span class="keywordflow">return</span> EnumConf(<a class="code" href="classConfigReader.html#n0">fname</a>.c_str(),tag.c_str()); +00177 } 00178 -<a name="l00179"></a><a class="code" href="classConfigReader.html#a5">00179</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::Verify</a>() -00180 { -00181 <span class="keywordflow">return</span> <span class="keyword">true</span>; -00182 } -00183 +00179 +<a name="l00180"></a><a class="code" href="classConfigReader.html#a5">00180</a> <span class="keywordtype">bool</span> <a class="code" href="classConfigReader.html#a5">ConfigReader::Verify</a>() +00181 { +00182 <span class="keywordflow">return</span> <span class="keyword">true</span>; +00183 } 00184 -<a name="l00185"></a><a class="code" href="classFileReader.html#a1">00185</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(string filename) -00186 { -00187 <a class="code" href="modules_8h.html#a6">file_cache</a> c; -00188 readfile(c,filename.c_str()); -00189 this-><a class="code" href="classFileReader.html#o0">fc</a> = c; -00190 } -00191 -<a name="l00192"></a><a class="code" href="classFileReader.html#a0">00192</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() -00193 { -00194 } -00195 -<a name="l00196"></a><a class="code" href="classFileReader.html#a3">00196</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(string filename) -00197 { -00198 <a class="code" href="modules_8h.html#a6">file_cache</a> c; -00199 readfile(c,filename.c_str()); -00200 this-><a class="code" href="classFileReader.html#o0">fc</a> = c; -00201 } -00202 -<a name="l00203"></a><a class="code" href="classFileReader.html#a2">00203</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() -00204 { -00205 } -00206 -<a name="l00207"></a><a class="code" href="classFileReader.html#a4">00207</a> string <a class="code" href="classFileReader.html#a4">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) -00208 { -00209 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#o0">fc</a>.size())) -00210 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; -00211 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>[x]; -00212 } -00213 -<a name="l00214"></a><a class="code" href="classFileReader.html#a5">00214</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a5">FileReader::FileSize</a>() -00215 { -00216 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>.size(); -00217 } -00218 +00185 +<a name="l00186"></a><a class="code" href="classFileReader.html#a1">00186</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>(string filename) +00187 { +00188 <a class="code" href="modules_8h.html#a6">file_cache</a> c; +00189 readfile(c,filename.c_str()); +00190 this-><a class="code" href="classFileReader.html#o0">fc</a> = c; +00191 } +00192 +<a name="l00193"></a><a class="code" href="classFileReader.html#a0">00193</a> <a class="code" href="classFileReader.html#a0">FileReader::FileReader</a>() +00194 { +00195 } +00196 +<a name="l00197"></a><a class="code" href="classFileReader.html#a3">00197</a> <span class="keywordtype">void</span> <a class="code" href="classFileReader.html#a3">FileReader::LoadFile</a>(string filename) +00198 { +00199 <a class="code" href="modules_8h.html#a6">file_cache</a> c; +00200 readfile(c,filename.c_str()); +00201 this-><a class="code" href="classFileReader.html#o0">fc</a> = c; +00202 } +00203 +<a name="l00204"></a><a class="code" href="classFileReader.html#a2">00204</a> <a class="code" href="classFileReader.html#a2">FileReader::~FileReader</a>() +00205 { +00206 } +00207 +<a name="l00208"></a><a class="code" href="classFileReader.html#a4">00208</a> string <a class="code" href="classFileReader.html#a4">FileReader::GetLine</a>(<span class="keywordtype">int</span> x) +00209 { +00210 <span class="keywordflow">if</span> ((x<0) || (x><a class="code" href="classFileReader.html#o0">fc</a>.size())) +00211 <span class="keywordflow">return</span> <span class="stringliteral">""</span>; +00212 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>[x]; +00213 } +00214 +<a name="l00215"></a><a class="code" href="classFileReader.html#a5">00215</a> <span class="keywordtype">int</span> <a class="code" href="classFileReader.html#a5">FileReader::FileSize</a>() +00216 { +00217 <span class="keywordflow">return</span> <a class="code" href="classFileReader.html#o0">fc</a>.size(); +00218 } 00219 -00220 vector<Module*> <a class="code" href="modules_8cpp.html#a1">modules</a>(255); -00221 vector<ircd_module*> <a class="code" href="modules_8cpp.html#a2">factory</a>(255); -00222 -<a name="l00223"></a><a class="code" href="modules_8cpp.html#a0">00223</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a0">MODCOUNT</a> = -1; -00224 +00220 +00221 vector<Module*> <a class="code" href="modules_8cpp.html#a1">modules</a>(255); +00222 vector<ircd_module*> <a class="code" href="modules_8cpp.html#a2">factory</a>(255); +00223 +<a name="l00224"></a><a class="code" href="modules_8cpp.html#a0">00224</a> <span class="keywordtype">int</span> <a class="code" href="modules_8cpp.html#a0">MODCOUNT</a> = -1; 00225 -</pre></div><hr><address style="align: right;"><small>Generated on Sun Feb 9 12:48:16 2003 for InspIRCd by +00226 +</pre></div><hr><address style="align: right;"><small>Generated on Sun Mar 30 13:27:58 2003 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 -width=110 height=53></a>1.3-rc2 </small></address> +width=110 height=53></a>1.3-rc3 </small></address> </body> </html> |