?? fg__model_8h-source.html
字號(hào):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=gb2312"><title>FishGUI: FG_Model.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- 制作者 Doxygen 1.3.6 --><div class="qindex"><a class="qindex" href="main.html">首頁</a> | <a class="qindex" href="modules.html">模塊</a> | <a class="qindex" href="hierarchy.html">類繼承關(guān)系</a> | <a class="qindex" href="classes.html">按字典順序排序的列表</a> | <a class="qindex" href="annotated.html">組合類型列表</a> | <a class="qindex" href="files.html">文件列表</a> | <a class="qindex" href="functions.html">組合類型成員</a> | <a class="qindex" href="globals.html">文件成員</a></div><h1>FG_Model.h</h1><a href="FG__Model_8h.html">瀏覽該文件的文檔。</a><div class="fragment"><pre>00001 <span class="comment">/*--------------------------------------------------------------------------</span>00002 <span class="comment"></span>00003 <span class="comment"> FG_Model.h - MVC模式中的模型類的頭文件</span>00004 <span class="comment"></span>00005 <span class="comment"> 本程序是FishGUI軟件的一部分</span>00006 <span class="comment"></span>00007 <span class="comment"> 版權(quán)所有 (C) 2003,2004 王詠武</span>00008 <span class="comment"> http://www.contextfree.net/wangyw/</span>00009 <span class="comment"></span>00010 <span class="comment">----------------------------------------------------------------------------</span>00011 <span class="comment"></span>00012 <span class="comment"> 作者對(duì) FishGUI 軟件及其所有源代碼授權(quán)如下:</span>00013 <span class="comment"></span>00014 <span class="comment"> 允許任何個(gè)人、組織、機(jī)構(gòu)、企業(yè)無償獲得、修改、使用、重新發(fā)布 FishGUI 軟</span>00015 <span class="comment"> 件及其源代碼,或按照有償或者無償?shù)姆绞桨l(fā)行基于 FishGUI 源代碼的全部或部</span>00016 <span class="comment"> 分內(nèi)容開發(fā)的軟件產(chǎn)品,——但行使以上權(quán)利時(shí),須遵守以下約定:</span>00017 <span class="comment"></span>00018 <span class="comment"> 1、重新發(fā)布 FishGUI 軟件及其源代碼時(shí),不得隱去軟件及其源代碼中原有的版</span>00019 <span class="comment"> 權(quán)信息和開發(fā)者標(biāo)識(shí)。</span>00020 <span class="comment"></span>00021 <span class="comment"> 2、發(fā)行基于 FishGUI 源代碼的全部或部分內(nèi)容開發(fā)的軟件產(chǎn)品時(shí),必須在產(chǎn)品</span>00022 <span class="comment"> 的顯著位置標(biāo)明以下字樣:</span>00023 <span class="comment"></span>00024 <span class="comment"> 【本產(chǎn)品的一部分功能是基于王詠武在 FishGUI 軟件中的工作完成的】</span>00025 <span class="comment"></span>00026 <span class="comment"> 3、在正式出版物中引用 FishGUI 的文檔、源代碼或注釋內(nèi)容的,應(yīng)注明軟件的</span>00027 <span class="comment"> 原作者為王詠武。</span>00028 <span class="comment"></span>00029 <span class="comment">--------------------------------------------------------------------------*/</span>00039 <span class="preprocessor">#ifndef FG_MODEL_H_HEADER_INCLUDED_C0AD453B</span>00040 <span class="preprocessor"></span><span class="preprocessor">#define FG_MODEL_H_HEADER_INCLUDED_C0AD453B</span>00041 <span class="preprocessor"></span>00042 <span class="comment">//##ModelId=3F844CD702B8</span><a name="l00047"></a><a class="code" href="classFG__Model.html">00047</a> <span class="comment"></span><span class="keyword">class </span><a class="code" href="classFG__Model.html">FG_Model</a>00048 {00049 <span class="keyword">public</span>:00050 <span class="comment">//##ModelId=3F844CD8029A</span><a name="l00058"></a><a class="code" href="classFG__Model.html#a0">00058</a> <span class="comment"></span> <span class="keywordtype">bool</span> <a class="code" href="classFG__Model.html#a0">RegisterView</a>(<a class="code" href="classFG__Object.html">FG_Object</a> * <span class="keyword">const</span> pView)00059 {00060 <span class="keywordflow">if</span> (pView)00061 <span class="keywordflow">return</span> <a class="code" href="classFG__Model.html#r0">m_ViewList</a>.<a class="code" href="classFG__SList.html#a4">Add</a>(pView);00062 <span class="keywordflow">else</span>00063 <span class="keywordflow">return</span> <span class="keyword">false</span>;00064 }00065 00066 <span class="comment">//##ModelId=3F844CD802AE</span><a name="l00070"></a><a class="code" href="classFG__Model.html#a1">00070</a> <span class="comment"></span> <span class="keywordtype">void</span> <a class="code" href="classFG__Model.html#a1">UpdateView</a>(<span class="keywordtype">void</span>)00071 {00072 <a class="code" href="structFG__Message.html">FG_Message</a> Msg(<a class="code" href="group__Utility.html#gga12a27">FG_MSG_UPDATE_VIEW</a>);00073 FG_VIEWLIST::iterator i;00074 <span class="keywordflow">for</span> (i = <a class="code" href="classFG__Model.html#r0">m_ViewList</a>.<a class="code" href="classFG__SList.html#a2">First</a>(); ! i.IsDone(); ++ i)00075 i->Message(& Msg);00076 }00077 00078 <span class="keyword">private</span>:00079 <span class="comment">//##ModelId=3F844CD702E9</span><a name="l00083"></a><a class="code" href="classFG__Model.html#y0">00083</a> <span class="comment"></span> <span class="keyword">typedef</span> <a class="code" href="classFG__SList.html">FG_SList<FG_Object></a> <a class="code" href="classFG__SList.html">FG_VIEWLIST</a>;00084 00085 <span class="comment">//##ModelId=3F844CD8027D</span><a name="l00086"></a><a class="code" href="classFG__Model.html#r0">00086</a> <a class="code" href="classFG__SList.html">FG_VIEWLIST</a> <a class="code" href="classFG__Model.html#r0">m_ViewList</a>; 00087 };00088 00089 <span class="preprocessor">#endif </span><span class="comment">/* FG_MODEL_H_HEADER_INCLUDED_C0AD453B */</span>00090 00091 <span class="comment">/* @} */</span>00092 </pre></div><hr><center>由 DoxyGen 1.3.6 于 Wed Jun 9 22:34:40 2004 生成<br>版權(quán)所有 (C) 2003,2004 王詠武</body></html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -