aboutsummaryrefslogblamecommitdiffstats
path: root/doc/html/ObjProperties_8h_source.html
blob: 6ff7396f352ad1e6f71453aa9ead23253dde4d58 (plain) (tree)
1
2
3
4
5
6
7





                                                                                                                         
                                                






















                                                                       
                                                  
         
                                                                                                  





                        
                                   






























                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                                                              


                                                                                                                                                                                                   
                                                                                    
                                                                                                                                                                                                                                                                                                                     
                                                                                    







                                                                                                                                                                                                                                                                             
                                                                                                                                                                                                                                                                                                                                                  
                                                                                    
                                                                                                                                                                                                                                                                            
                                                                                    
                                                                                                                                                                                                                                                                                                                                                                            
                                                                                    
                                                                                                                                                                                                                                                       
                                                                                    
                                                                                                                                                                                                                                                                                                                 
                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                         
                                                                                    
                                                                                                                                                                                                                                                                                                                                                                     
                                                                                    
                                                                                                                                                                                                                                                                                             
                                                                                    
                                                                                                                                                                                                                                                                                                                                                              
                                                                                    
                                                                                                                                                                                                                                                                                                        
                                                                                    
                                                                                                                                                                                                                                         




                                                                                                                                                    

















                                                                                                                                                                                                                                                                                                                                                                                                      






                                                                                                                                                                                                                                                                                           
                                                                                     
                                                
                                                                         



       
<!-- HTML header for doxygen 1.8.3.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Templates -- Meow: meowpp/oo/ObjProperties.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Templates -- Meow
   &#160;<span id="projectnumber">204.13.18</span>
   </div>
   <div id="projectbrief">A C++ template contains kinds of interesting classes and functions</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('ObjProperties_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">ObjProperties.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="ObjProperties_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef   oo_ObjProperties_H__</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define   oo_ObjProperties_H__</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="ObjBase_8h.html">ObjBase.h</a>&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;cstdlib&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">namespace </span>meow {</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="keyword">template</span>&lt;<span class="keywordtype">size_t</span> SID&gt;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classmeow_1_1ObjProperties.html">   13</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmeow_1_1ObjProperties.html">ObjProperties</a>: <span class="keyword">public</span> <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> {</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;  <a class="code" href="classmeow_1_1ObjProperties.html#af1c809c0b160e143ee4f73cd577bd2cb">ObjProperties</a>();</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;  <a class="code" href="classmeow_1_1ObjProperties.html#af1c809c0b160e143ee4f73cd577bd2cb">ObjProperties</a>(<a class="code" href="classmeow_1_1ObjProperties.html">ObjProperties</a> <span class="keyword">const</span>&amp; p);</div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;</div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;  <span class="keyword">virtual</span> <a class="code" href="classmeow_1_1ObjProperties.html#a93f1d23981d318f743b1996a415e9cbb">~ObjProperties</a>();</div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;  <span class="keywordtype">size_t</span> <a class="code" href="classmeow_1_1ObjProperties.html#a7d36338144c15d56ab8f2a52a54a47cf">propertySize</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1ObjProperties.html#aad531291ff299d99ce081afaefbd94b3">propertyEmpty</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;  <span class="keywordtype">void</span> <a class="code" href="classmeow_1_1ObjProperties.html#a183b80a7d63a01c23b0c0af5708b336f">propertyClear</a>();</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> <span class="keyword">const</span>* <a class="code" href="classmeow_1_1ObjProperties.html#a40323f6710fe3688574555eedaf2adc9">property</a>(std::string name) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1ObjProperties.html#a40323f6710fe3688574555eedaf2adc9">property</a>(std::string name);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1ObjProperties.html#a5614e7f6a939da5376e83a1e75e215c5">propertyAdd</a>(std::string name, <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* obj, <span class="keywordtype">bool</span> autoRemove);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1ObjProperties.html#aec0a1bc70d7cf33b54a1c951d5cdab23">propertyDel</a>(std::string name);</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;  <a class="code" href="classmeow_1_1ObjProperties.html">ObjProperties</a>&amp; <a class="code" href="classmeow_1_1ObjProperties.html#a43ce997788ca81603e881a22285fd307">properties</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;  <a class="code" href="classmeow_1_1ObjProperties.html">ObjProperties</a>&amp; <a class="code" href="classmeow_1_1ObjProperties.html#a43ce997788ca81603e881a22285fd307">properties</a>(<a class="code" href="classmeow_1_1ObjProperties.html">ObjProperties</a> <span class="keyword">const</span>&amp; p);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1ObjProperties.html#a7ebb7d21a575adbf9cbed10db807c6b6">write</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classmeow_1_1ObjProperties.html#a4d7d0978d10735798e76e707ee9faa5a">read</a>(FILE* f, <span class="keywordtype">bool</span> bin, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> fg);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1ObjProperties.html#a3345d121cc8a6b25baad2cbd80d23164">create</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a>* <a class="code" href="classmeow_1_1ObjProperties.html#a4bc4f097d783426457a784a39266ba52">copyFrom</a>(<a class="code" href="classmeow_1_1ObjBase.html">ObjBase</a> <span class="keyword">const</span>* b);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <span class="keywordtype">char</span> <span class="keyword">const</span>* <a class="code" href="classmeow_1_1ObjProperties.html#a55ee94dd2d564eaee8250ed517b6779a">ctype</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;  std::string <a class="code" href="classmeow_1_1ObjProperties.html#a6283d69f9c6430c3b2601d7f0267bb84">type</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;};</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;}</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#endif // oo_ObjProperties_H__</span></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_af1c809c0b160e143ee4f73cd577bd2cb"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#af1c809c0b160e143ee4f73cd577bd2cb">meow::ObjProperties::ObjProperties</a></div><div class="ttdeci">ObjProperties()</div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a3345d121cc8a6b25baad2cbd80d23164"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a3345d121cc8a6b25baad2cbd80d23164">meow::ObjProperties::create</a></div><div class="ttdeci">ObjBase * create() const </div><div class="ttdoc">回傳一個new出來的物件, 預設implement為直接回傳 NULL </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a43ce997788ca81603e881a22285fd307"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a43ce997788ca81603e881a22285fd307">meow::ObjProperties::properties</a></div><div class="ttdeci">ObjProperties &amp; properties() const </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a55ee94dd2d564eaee8250ed517b6779a"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a55ee94dd2d564eaee8250ed517b6779a">meow::ObjProperties::ctype</a></div><div class="ttdeci">char const * ctype() const </div><div class="ttdoc">用C-style string回傳這個class的type name </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_aec0a1bc70d7cf33b54a1c951d5cdab23"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#aec0a1bc70d7cf33b54a1c951d5cdab23">meow::ObjProperties::propertyDel</a></div><div class="ttdeci">bool propertyDel(std::string name)</div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a93f1d23981d318f743b1996a415e9cbb"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a93f1d23981d318f743b1996a415e9cbb">meow::ObjProperties::~ObjProperties</a></div><div class="ttdeci">virtual ~ObjProperties()</div></div>
<div class="ttc" id="classmeow_1_1ObjBase_html"><div class="ttname"><a href="classmeow_1_1ObjBase.html">meow::ObjBase</a></div><div class="ttdoc">一切物件的Base, 並要求每個物件都要有read, write, create, ... 等功能 </div><div class="ttdef"><b>Definition:</b> <a href="ObjBase_8h_source.html#l00015">ObjBase.h:15</a></div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a5614e7f6a939da5376e83a1e75e215c5"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a5614e7f6a939da5376e83a1e75e215c5">meow::ObjProperties::propertyAdd</a></div><div class="ttdeci">bool propertyAdd(std::string name, ObjBase *obj, bool autoRemove)</div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html"><div class="ttname"><a href="classmeow_1_1ObjProperties.html">meow::ObjProperties</a></div><div class="ttdoc">目前擺爛中 </div><div class="ttdef"><b>Definition:</b> <a href="ObjProperties_8h_source.html#l00013">ObjProperties.h:13</a></div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a4d7d0978d10735798e76e707ee9faa5a"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a4d7d0978d10735798e76e707ee9faa5a">meow::ObjProperties::read</a></div><div class="ttdeci">bool read(FILE *f, bool bin, unsigned int fg)</div><div class="ttdoc">將物件從檔案讀出, 預設implement為直接回傳 false </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a183b80a7d63a01c23b0c0af5708b336f"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a183b80a7d63a01c23b0c0af5708b336f">meow::ObjProperties::propertyClear</a></div><div class="ttdeci">void propertyClear()</div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a7d36338144c15d56ab8f2a52a54a47cf"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a7d36338144c15d56ab8f2a52a54a47cf">meow::ObjProperties::propertySize</a></div><div class="ttdeci">size_t propertySize() const </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a6283d69f9c6430c3b2601d7f0267bb84"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a6283d69f9c6430c3b2601d7f0267bb84">meow::ObjProperties::type</a></div><div class="ttdeci">std::string type() const </div><div class="ttdoc">用std::string回傳這個class的type name </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a4bc4f097d783426457a784a39266ba52"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a4bc4f097d783426457a784a39266ba52">meow::ObjProperties::copyFrom</a></div><div class="ttdeci">ObjBase * copyFrom(ObjBase const *b)</div><div class="ttdoc">複製, 預設使用operator= </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a7ebb7d21a575adbf9cbed10db807c6b6"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a7ebb7d21a575adbf9cbed10db807c6b6">meow::ObjProperties::write</a></div><div class="ttdeci">bool write(FILE *f, bool bin, unsigned int fg) const </div><div class="ttdoc">將物件寫入檔案, 預設implement為直接回傳 false </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_aad531291ff299d99ce081afaefbd94b3"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#aad531291ff299d99ce081afaefbd94b3">meow::ObjProperties::propertyEmpty</a></div><div class="ttdeci">bool propertyEmpty() const </div></div>
<div class="ttc" id="classmeow_1_1ObjProperties_html_a40323f6710fe3688574555eedaf2adc9"><div class="ttname"><a href="classmeow_1_1ObjProperties.html#a40323f6710fe3688574555eedaf2adc9">meow::ObjProperties::property</a></div><div class="ttdeci">ObjBase const * property(std::string name) const </div></div>
<div class="ttc" id="ObjBase_8h_html"><div class="ttname"><a href="ObjBase_8h.html">ObjBase.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.3.1-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_92fecd8d02dd5e7a67429447fdf0f60f.html">meowpp</a></li><li class="navelem"><a class="el" href="dir_540a4c8f2977878a343351220ffba92b.html">oo</a></li><li class="navelem"><a class="el" href="ObjProperties_8h.html">ObjProperties.h</a></li>
    <li class="footer">Generated on Tue Jun 24 2014 03:53:31 for Templates -- Meow by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>