aboutsummaryrefslogblamecommitdiffstats
path: root/doc/latex/classmeow_1_1ObjType.tex
blob: b6294df75009f754e07da388de39257e96365411 (plain) (tree)






















                                                                                                                                     

                                                                                              

                                                                                                                                     
















                                                                                                                                                                                          
                                                                                                                                         
                                                                                                                                                   
                                                                                                                                            
                                                                                                                                       
                                                                                                                                                       
                                                                                                                                                                                             
                                                                                               
                                                                                                     
                                                                                                                    
                                                                                                
                                                                                                                                 












                                                                                                                    



                                             











                                                                                                                                                                                           



                                             










                                                                                                                                                                                           



                                             








                                                                                                                                                                                                         



                                             







                                                                                                                                                                                            



                                             






                                                                                                                                                                                                         



                                             








                                                                                                                                                                                                             











                                          

                                                                                                           



                                             








                                                                                                                                                                                                     



                                                                                      

                                                                                                           



                                             








                                                                                                                                                                                              



                                                   

                                                                                                           



                                             






                                                                                                                                                                                      



                                             










                                                                                                                                                                                     



                                             






                                                                                                                                                                                                    



                                             






                                                                                                                                                                                              



                                             






                                                                                                                                                                                                       



                                             










                                                                                                                                                                                















                                                                           

                                                                                                           



                                             






                                                                                                                                                                                                                   



                                             








                                                                                                                                                                                         



                                              

                                                                                                           



                                             










                                                                                                                                                                                  















                                                                        



                                                                                                           



                                             


                                                                                                   
\hypertarget{classmeow_1_1ObjType}{\section{meow\-:\-:Obj\-Type$<$ Type, Reader\-Writer $>$ Class Template Reference}
\label{classmeow_1_1ObjType}\index{meow\-::\-Obj\-Type$<$ Type, Reader\-Writer $>$@{meow\-::\-Obj\-Type$<$ Type, Reader\-Writer $>$}}
}


純粹把給定的 {\ttfamily Type} 包起來, 變成繼承自 \hyperlink{classmeow_1_1ObjBase}{Obj\-Base}  




{\ttfamily \#include \char`\"{}Obj\-Types.\-h\char`\"{}}

Inheritance diagram for meow\-:\-:Obj\-Type$<$ Type, Reader\-Writer $>$\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classmeow_1_1ObjType}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classmeow_1_1ObjType_a6a625052a5579e4897a95e9ca6663136}{Obj\-Type} ()
\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item 
\hyperlink{classmeow_1_1ObjType_afd125762822efc8ff890479bac6fafe4}{Oby\-Type} (Type const \&t)
\begin{DoxyCompactList}\small\item\em constructor, 並且給值 \end{DoxyCompactList}\item 
\hyperlink{classmeow_1_1ObjType_a1b2ab2b0b31756ed1e1a011f6e50c993}{Obj\-Type} (\hyperlink{classmeow_1_1ObjType}{Obj\-Type} const \&a)
\begin{DoxyCompactList}\small\item\em constructor, 並且copy資料 \end{DoxyCompactList}\item 
\hyperlink{classmeow_1_1ObjType_ac703cec17ecfe6869a016c0ff072918c}{$\sim$\-Obj\-Type} ()
\item 
\hyperlink{classmeow_1_1ObjType}{Obj\-Type} \& \hyperlink{classmeow_1_1ObjType_a9deb0425763909a5b74aca7bd0c116f4}{copy\-From} (\hyperlink{classmeow_1_1ObjType}{Obj\-Type} const \&a)
\item 
\hyperlink{classmeow_1_1ObjType}{Obj\-Type} \& \hyperlink{classmeow_1_1ObjType_a14617b585e4b852ab63321ad0af076e7}{reference\-From} (\hyperlink{classmeow_1_1ObjType}{Obj\-Type} const \&a)
\item 
Type const \& \hyperlink{classmeow_1_1ObjType_ae086a8dc3e60528121e73a0ce80d2cc9}{access} () const 
\item 
Type \& \hyperlink{classmeow_1_1ObjType_a0eac1bd069ebdde20f422ef6a5ffb7cb}{modify} ()
\item 
\hyperlink{classmeow_1_1ObjType}{Obj\-Type} \& \hyperlink{classmeow_1_1ObjType_add76ed06952275dbb3c2ce0176cf0c7b}{operator=} (\hyperlink{classmeow_1_1ObjType}{Obj\-Type} const \&a)
\item 
Type const \& \hyperlink{classmeow_1_1ObjType_a99d0180d4480c6fd46841e09c5519d8a}{operator()} () const 
\item 
Type \& \hyperlink{classmeow_1_1ObjType_afc34507295cf5bdbb1b5fd22c1c43f9a}{operator()} ()
\item 
bool \hyperlink{classmeow_1_1ObjType_af0adbddc5a4ef305c2637b6694355944}{write} (F\-I\-L\-E $\ast$f, bool bin, unsigned \hyperlink{classint}{int} fg) const 
\begin{DoxyCompactList}\small\item\em 將物件寫入檔案, 預設implement為直接回傳 {\ttfamily false} \end{DoxyCompactList}\item 
bool \hyperlink{classmeow_1_1ObjType_a8ff33aabcb80ffc2d870b6ce73a6d4fe}{read} (F\-I\-L\-E $\ast$f, bool bin, unsigned \hyperlink{classint}{int} fg)
\begin{DoxyCompactList}\small\item\em 將物件從檔案讀出, 預設implement為直接回傳 {\ttfamily false} \end{DoxyCompactList}\item 
\hyperlink{classmeow_1_1ObjBase}{Obj\-Base} $\ast$ \hyperlink{classmeow_1_1ObjType_a19f8291125626675d15b4394283b8180}{create} () const 
\begin{DoxyCompactList}\small\item\em 回傳一個new出來的物件, 預設implement為直接回傳 {\ttfamily N\-U\-L\-L} \end{DoxyCompactList}\item 
\hyperlink{classmeow_1_1ObjBase}{Obj\-Base} $\ast$ \hyperlink{classmeow_1_1ObjType_a392c841c8012ebd9a62f514a74e4b535}{copy\-From} (\hyperlink{classmeow_1_1ObjBase}{Obj\-Base} const $\ast$b)
\begin{DoxyCompactList}\small\item\em 複製, 預設使用operator= \end{DoxyCompactList}\item 
char const $\ast$ \hyperlink{classmeow_1_1ObjType_ae7d34cb241aa7d74c9c52918c98dab49}{ctype} () const 
\begin{DoxyCompactList}\small\item\em 用\-C-\/style string回傳這個class的type name \end{DoxyCompactList}\item 
std\-::string \hyperlink{classmeow_1_1ObjType_afaa74a571889ea5281ab3de5636f7e0f}{type} () const 
\begin{DoxyCompactList}\small\item\em 用std\-::string回傳這個class的type name \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
\subsubsection*{template$<$class Type, class Reader\-Writer$>$class meow\-::\-Obj\-Type$<$ Type, Reader\-Writer $>$}

純粹把給定的 {\ttfamily Type} 包起來, 變成繼承自 \hyperlink{classmeow_1_1ObjBase}{Obj\-Base} 

\begin{DoxyAuthor}{Author}
cathook 
\end{DoxyAuthor}


Definition at line 18 of file Obj\-Types.\-h.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{classmeow_1_1ObjType_a6a625052a5579e4897a95e9ca6663136}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!Obj\-Type@{Obj\-Type}}
\index{Obj\-Type@{Obj\-Type}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{Obj\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::{\bf Obj\-Type} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_a6a625052a5579e4897a95e9ca6663136}


constructor 



Definition at line 35 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a1b2ab2b0b31756ed1e1a011f6e50c993}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!Obj\-Type@{Obj\-Type}}
\index{Obj\-Type@{Obj\-Type}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{Obj\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::{\bf Obj\-Type} (
\begin{DoxyParamCaption}
\item[{{\bf Obj\-Type}$<$ Type, Reader\-Writer $>$ const \&}]{a}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_a1b2ab2b0b31756ed1e1a011f6e50c993}


constructor, 並且copy資料 



Definition at line 43 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_ac703cec17ecfe6869a016c0ff072918c}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!$\sim$\-Obj\-Type@{$\sim$\-Obj\-Type}}
\index{$\sim$\-Obj\-Type@{$\sim$\-Obj\-Type}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{$\sim$\-Obj\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::$\sim${\bf Obj\-Type} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_ac703cec17ecfe6869a016c0ff072918c}


Definition at line 46 of file Obj\-Types.\-h.



\subsection{Member Function Documentation}
\hypertarget{classmeow_1_1ObjType_ae086a8dc3e60528121e73a0ce80d2cc9}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!access@{access}}
\index{access@{access}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{access}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ Type const\& {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::access (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_ae086a8dc3e60528121e73a0ce80d2cc9}


Definition at line 59 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a9deb0425763909a5b74aca7bd0c116f4}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!copy\-From@{copy\-From}}
\index{copy\-From@{copy\-From}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{copy\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf Obj\-Type}\& {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::copy\-From (
\begin{DoxyParamCaption}
\item[{{\bf Obj\-Type}$<$ Type, Reader\-Writer $>$ const \&}]{a}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_a9deb0425763909a5b74aca7bd0c116f4}


Definition at line 49 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a392c841c8012ebd9a62f514a74e4b535}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!copy\-From@{copy\-From}}
\index{copy\-From@{copy\-From}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{copy\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf Obj\-Base}$\ast$ {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::copy\-From (
\begin{DoxyParamCaption}
\item[{{\bf Obj\-Base} const $\ast$}]{b}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1ObjType_a392c841c8012ebd9a62f514a74e4b535}


複製, 預設使用operator= 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em b} & 資料來源 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
{\ttfamily this} 
\end{DoxyReturn}


Reimplemented from \hyperlink{classmeow_1_1ObjBase_a79725f50866832762db87184eb528619}{meow\-::\-Obj\-Base}.



Definition at line 91 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a19f8291125626675d15b4394283b8180}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!create@{create}}
\index{create@{create}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{create}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf Obj\-Base}$\ast$ {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::create (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1ObjType_a19f8291125626675d15b4394283b8180}


回傳一個new出來的物件, 預設implement為直接回傳 {\ttfamily N\-U\-L\-L} 



Reimplemented from \hyperlink{classmeow_1_1ObjBase_ac9114e6917bca03b8f3c89694214b57c}{meow\-::\-Obj\-Base}.



Definition at line 87 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_ae7d34cb241aa7d74c9c52918c98dab49}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!ctype@{ctype}}
\index{ctype@{ctype}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{ctype}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ char const$\ast$ {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::ctype (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1ObjType_ae7d34cb241aa7d74c9c52918c98dab49}


用\-C-\/style string回傳這個class的type name 



Reimplemented from \hyperlink{classmeow_1_1ObjBase_a4aae58e8005739abe6d091d8b55a21e8}{meow\-::\-Obj\-Base}.



Definition at line 95 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a0eac1bd069ebdde20f422ef6a5ffb7cb}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!modify@{modify}}
\index{modify@{modify}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{modify}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ Type\& {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::modify (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_a0eac1bd069ebdde20f422ef6a5ffb7cb}


Definition at line 63 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_afd125762822efc8ff890479bac6fafe4}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!Oby\-Type@{Oby\-Type}}
\index{Oby\-Type@{Oby\-Type}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{Oby\-Type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::Oby\-Type (
\begin{DoxyParamCaption}
\item[{Type const \&}]{t}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_afd125762822efc8ff890479bac6fafe4}


constructor, 並且給值 



Definition at line 39 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a99d0180d4480c6fd46841e09c5519d8a}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!operator()@{operator()}}
\index{operator()@{operator()}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ Type const\& {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::operator() (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_a99d0180d4480c6fd46841e09c5519d8a}


Definition at line 71 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_afc34507295cf5bdbb1b5fd22c1c43f9a}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!operator()@{operator()}}
\index{operator()@{operator()}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{operator()}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ Type\& {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::operator() (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_afc34507295cf5bdbb1b5fd22c1c43f9a}


Definition at line 75 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_add76ed06952275dbb3c2ce0176cf0c7b}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!operator=@{operator=}}
\index{operator=@{operator=}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf Obj\-Type}\& {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::operator= (
\begin{DoxyParamCaption}
\item[{{\bf Obj\-Type}$<$ Type, Reader\-Writer $>$ const \&}]{a}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_add76ed06952275dbb3c2ce0176cf0c7b}


Definition at line 67 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a8ff33aabcb80ffc2d870b6ce73a6d4fe}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!read@{read}}
\index{read@{read}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ bool {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::read (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{f, }
\item[{bool}]{bin, }
\item[{unsigned {\bf int}}]{fg}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1ObjType_a8ff33aabcb80ffc2d870b6ce73a6d4fe}


將物件從檔案讀出, 預設implement為直接回傳 {\ttfamily false} 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em f} & 檔案 \\
\hline
\mbox{\tt in}  & {\em bin} & 是否為binary模式 \\
\hline
\mbox{\tt in}  & {\em fg} & 使用者自訂的argument \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
成功或失敗 
\end{DoxyReturn}


Reimplemented from \hyperlink{classmeow_1_1ObjBase_a4c1f5cb4b05559197148a8f6524bfc34}{meow\-::\-Obj\-Base}.



Definition at line 83 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_a14617b585e4b852ab63321ad0af076e7}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!reference\-From@{reference\-From}}
\index{reference\-From@{reference\-From}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{reference\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ {\bf Obj\-Type}\& {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::reference\-From (
\begin{DoxyParamCaption}
\item[{{\bf Obj\-Type}$<$ Type, Reader\-Writer $>$ const \&}]{a}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1ObjType_a14617b585e4b852ab63321ad0af076e7}


Definition at line 54 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_afaa74a571889ea5281ab3de5636f7e0f}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!type@{type}}
\index{type@{type}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ std\-::string {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1ObjType_afaa74a571889ea5281ab3de5636f7e0f}


用std\-::string回傳這個class的type name 



Reimplemented from \hyperlink{classmeow_1_1ObjBase_a63a4911bb073281820fe9b7a9908ba72}{meow\-::\-Obj\-Base}.



Definition at line 99 of file Obj\-Types.\-h.

\hypertarget{classmeow_1_1ObjType_af0adbddc5a4ef305c2637b6694355944}{\index{meow\-::\-Obj\-Type@{meow\-::\-Obj\-Type}!write@{write}}
\index{write@{write}!meow::ObjType@{meow\-::\-Obj\-Type}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Type , class Reader\-Writer $>$ bool {\bf meow\-::\-Obj\-Type}$<$ Type, Reader\-Writer $>$\-::write (
\begin{DoxyParamCaption}
\item[{F\-I\-L\-E $\ast$}]{f, }
\item[{bool}]{bin, }
\item[{unsigned {\bf int}}]{fg}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1ObjType_af0adbddc5a4ef305c2637b6694355944}


將物件寫入檔案, 預設implement為直接回傳 {\ttfamily false} 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em f} & 檔案 \\
\hline
\mbox{\tt in}  & {\em bin} & 是否為binary模式 \\
\hline
\mbox{\tt in}  & {\em fg} & 使用者自訂的argument \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
成功或失敗 
\end{DoxyReturn}


Reimplemented from \hyperlink{classmeow_1_1ObjBase_ae9e9e5c664b7a92e54a3616983f39ba8}{meow\-::\-Obj\-Base}.



Definition at line 79 of file Obj\-Types.\-h.



The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
meowpp/oo/\hyperlink{ObjTypes_8h}{Obj\-Types.\-h}\end{DoxyCompactItemize}