\section{ost::Time Class Reference} \label{classost_1_1_time}\index{ost::Time@{ost::Time}} The {\bf Time}{\rm (p.\,\pageref{classost_1_1_time})} class uses a integer representation of the current time.Integer based time class. {\tt \#include $<$numbers.h$>$} Inheritance diagram for ost::Time::\begin{figure}[H] \begin{center} \leavevmode \includegraphics[height=2cm]{classost_1_1_time} \end{center} \end{figure} \subsection*{Public Member Functions} \begin{CompactItemize} \item {\bf Time} (time\_\-t tm) \item {\bf Time} (tm $\ast$dt) \item {\bf Time} (char $\ast$str, size\_\-t size=0) \item {\bf Time} (int hour, int minute, int second) \item {\bf Time} () \item virtual {\bf $\sim$Time} () \item long {\bf get\-Value} (void) const \item int {\bf get\-Hour} (void) const \item int {\bf get\-Minute} (void) const \item int {\bf get\-Second} (void) const \item char $\ast$ {\bf get\-Time} (char $\ast$buffer) const \item time\_\-t {\bf get\-Time} (void) const \item tm $\ast$ {\bf get\-Time} (tm $\ast$buf) const \item void {\bf set\-Time} (char $\ast$str, size\_\-t size=0) \item bool {\bf is\-Valid} (void) const \item {\bf operator long} () \item {\bf String} {\bf operator()} () const \item {\bf Time} \& {\bf operator++} () \item {\bf Time} \& {\bf operator--} () \item {\bf Time} \& {\bf operator+=} (const int val) \item {\bf Time} \& {\bf operator-=} (const int val) \item int {\bf operator==} (const {\bf Time} \&time) \item int {\bf operator!=} (const {\bf Time} \&time) \item int {\bf operator$<$} (const {\bf Time} \&time) \item int {\bf operator$<$=} (const {\bf Time} \&time) \item int {\bf operator$>$} (const {\bf Time} \&time) \item int {\bf operator$>$=} (const {\bf Time} \&time) \item bool {\bf operator!} () const \end{CompactItemize} \subsection*{Protected Member Functions} \begin{CompactItemize} \item void {\bf to\-Seconds} (int hour, int minute, int second) \item void {\bf from\-Seconds} (char $\ast$buf) const \item virtual void {\bf update} (void) \end{CompactItemize} \subsection*{Protected Attributes} \begin{CompactItemize} \item long {\bf seconds} \end{CompactItemize} \subsection*{Friends} \begin{CompactItemize} \item {\bf Time} {\bf operator+} (const {\bf Time} \&time1, const {\bf Time} \&time2) \item {\bf Time} {\bf operator-} (const {\bf Time} \&time1, const {\bf Time} \&time2) \item {\bf Time} {\bf operator+} (const {\bf Time} \&time, const int val) \item {\bf Time} {\bf operator-} (const {\bf Time} \&time, const int val) \item {\bf Time} {\bf operator+} (const int val, const {\bf Time} \&time) \item {\bf Time} {\bf operator-} (const int val, const {\bf Time} \&time) \end{CompactItemize} \subsection{Detailed Description} The {\bf Time}{\rm (p.\,\pageref{classost_1_1_time})} class uses a integer representation of the current time.Integer based time class. This is then manipulated in several forms and may be exported as needed. \begin{Desc} \item[Author:]Marcelo Dalmas $<${\tt mad@brasmap.com.br}$>$ \end{Desc} \subsection{Constructor \& Destructor Documentation} \index{ost::Time@{ost::Time}!Time@{Time}} \index{Time@{Time}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Time::Time (time\_\-t {\em tm})}\label{classost_1_1_time_e68036707ccb13d576c555ab2b0bee22} \index{ost::Time@{ost::Time}!Time@{Time}} \index{Time@{Time}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Time::Time (tm $\ast$ {\em dt})}\label{classost_1_1_time_e33b9f548e37a26af0556e3eb415a599} \index{ost::Time@{ost::Time}!Time@{Time}} \index{Time@{Time}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Time::Time (char $\ast$ {\em str}, size\_\-t {\em size} = {\tt 0})}\label{classost_1_1_time_a9730cd3d61b61d11e7b7e360d78efe7} \index{ost::Time@{ost::Time}!Time@{Time}} \index{Time@{Time}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Time::Time (int {\em hour}, int {\em minute}, int {\em second})}\label{classost_1_1_time_f518a38ec13f68ca19ad3e76be1d10c1} \index{ost::Time@{ost::Time}!Time@{Time}} \index{Time@{Time}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Time::Time ()}\label{classost_1_1_time_81138e8873462ee88085848d31436d50} \index{ost::Time@{ost::Time}!~Time@{$\sim$Time}} \index{~Time@{$\sim$Time}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual ost::Time::$\sim$Time ()\hspace{0.3cm}{\tt [virtual]}}\label{classost_1_1_time_64941290053e81317c85c76b9a3396aa} \subsection{Member Function Documentation} \index{ost::Time@{ost::Time}!fromSeconds@{fromSeconds}} \index{fromSeconds@{fromSeconds}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Time::from\-Seconds (char $\ast$ {\em buf}) const\hspace{0.3cm}{\tt [protected]}}\label{classost_1_1_time_e4065004d50d657f75cd1c44f31c90f7} \index{ost::Time@{ost::Time}!getHour@{getHour}} \index{getHour@{getHour}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::get\-Hour (void) const}\label{classost_1_1_time_8c69d9a6fdc99bced94a2da3724d19af} \index{ost::Time@{ost::Time}!getMinute@{getMinute}} \index{getMinute@{getMinute}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::get\-Minute (void) const}\label{classost_1_1_time_25801bd952fe25a4f469c5bdcb470be2} \index{ost::Time@{ost::Time}!getSecond@{getSecond}} \index{getSecond@{getSecond}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::get\-Second (void) const}\label{classost_1_1_time_77e5a623ccf53b9bdf4e8ee51649c725} \index{ost::Time@{ost::Time}!getTime@{getTime}} \index{getTime@{getTime}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}tm$\ast$ ost::Time::get\-Time (tm $\ast$ {\em buf}) const}\label{classost_1_1_time_b1ce5e85f761c8511820ca589619a6a1} \index{ost::Time@{ost::Time}!getTime@{getTime}} \index{getTime@{getTime}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}time\_\-t ost::Time::get\-Time (void) const}\label{classost_1_1_time_8ffcebe9a4246c8a0074e6570386e96a} \index{ost::Time@{ost::Time}!getTime@{getTime}} \index{getTime@{getTime}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}char$\ast$ ost::Time::get\-Time (char $\ast$ {\em buffer}) const}\label{classost_1_1_time_75799f402475da67d03ec0a3b7e5d31e} \index{ost::Time@{ost::Time}!getValue@{getValue}} \index{getValue@{getValue}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}long ost::Time::get\-Value (void) const}\label{classost_1_1_time_3717bf9882a45b2116fcee3ae61d91f8} \index{ost::Time@{ost::Time}!isValid@{isValid}} \index{isValid@{isValid}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool ost::Time::is\-Valid (void) const}\label{classost_1_1_time_b2fec1dd7a6c50fe1688948b261b2705} Reimplemented in {\bf ost::Datetime} {\rm (p.\,\pageref{classost_1_1_datetime_9ad9af38b4049e3b8f5a3198d3d33ae0})}.\index{ost::Time@{ost::Time}!operator long@{operator long}} \index{operator long@{operator long}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}ost::Time::operator long ()\hspace{0.3cm}{\tt [inline]}}\label{classost_1_1_time_8829028b367e69bfa6e9e740372c72a5} \index{ost::Time@{ost::Time}!operator"!@{operator"!}} \index{operator"!@{operator"!}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool ost::Time::operator! (void) const\hspace{0.3cm}{\tt [inline]}}\label{classost_1_1_time_e876880f049a0d6140d8541da4337bcd} Reimplemented in {\bf ost::Datetime} {\rm (p.\,\pageref{classost_1_1_datetime_17965abf48026f1edac7a52d6318cc52})}.\index{ost::Time@{ost::Time}!operator"!=@{operator"!=}} \index{operator"!=@{operator"!=}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::operator!= (const {\bf Time} \& {\em time})}\label{classost_1_1_time_585b777432291d892462cf06bb9e24ca} \index{ost::Time@{ost::Time}!operator()@{operator()}} \index{operator()@{operator()}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf String} ost::Time::operator() () const}\label{classost_1_1_time_1c7f4930b44a66de7d92a6e12450f06f} \index{ost::Time@{ost::Time}!operator++@{operator++}} \index{operator++@{operator++}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time}\& ost::Time::operator++ ()}\label{classost_1_1_time_2dbdbf6f6ca8cc16f756447aa2f399c0} \index{ost::Time@{ost::Time}!operator+=@{operator+=}} \index{operator+=@{operator+=}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time}\& ost::Time::operator+= (const int {\em val})}\label{classost_1_1_time_ed171a6b547b88fac08b6cc06b464c6c} \index{ost::Time@{ost::Time}!operator--@{operator--}} \index{operator--@{operator--}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time}\& ost::Time::operator-- ()}\label{classost_1_1_time_8a5ae67ecf5e00a9644644fdbf0535fe} \index{ost::Time@{ost::Time}!operator-=@{operator-=}} \index{operator-=@{operator-=}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time}\& ost::Time::operator-= (const int {\em val})}\label{classost_1_1_time_fe254a32de348add1b182e8815bf46ab} \index{ost::Time@{ost::Time}!operator<@{operator$<$}} \index{operator<@{operator$<$}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::operator$<$ (const {\bf Time} \& {\em time})}\label{classost_1_1_time_5727847a6a34afe1a07349c07700e085} \index{ost::Time@{ost::Time}!operator<=@{operator$<$=}} \index{operator<=@{operator$<$=}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::operator$<$= (const {\bf Time} \& {\em time})}\label{classost_1_1_time_e2e5f3212931a341080aa68bd4844e2e} \index{ost::Time@{ost::Time}!operator==@{operator==}} \index{operator==@{operator==}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::operator== (const {\bf Time} \& {\em time})}\label{classost_1_1_time_8307ba0b00eee2afc37e8e703e589907} \index{ost::Time@{ost::Time}!operator>@{operator$>$}} \index{operator>@{operator$>$}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::operator$>$ (const {\bf Time} \& {\em time})}\label{classost_1_1_time_650713349b869f4798841828cdf5b404} \index{ost::Time@{ost::Time}!operator>=@{operator$>$=}} \index{operator>=@{operator$>$=}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}int ost::Time::operator$>$= (const {\bf Time} \& {\em time})}\label{classost_1_1_time_0e677b2941c3c729f87ba36fcf7bb848} \index{ost::Time@{ost::Time}!setTime@{setTime}} \index{setTime@{setTime}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Time::set\-Time (char $\ast$ {\em str}, size\_\-t {\em size} = {\tt 0})}\label{classost_1_1_time_e4ca4731c1b00290d07bea313dc549af} \index{ost::Time@{ost::Time}!toSeconds@{toSeconds}} \index{toSeconds@{toSeconds}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}void ost::Time::to\-Seconds (int {\em hour}, int {\em minute}, int {\em second})\hspace{0.3cm}{\tt [protected]}}\label{classost_1_1_time_e13857d50721d29189c282cf94f2c12e} \index{ost::Time@{ost::Time}!update@{update}} \index{update@{update}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void ost::Time::update (void)\hspace{0.3cm}{\tt [protected, virtual]}}\label{classost_1_1_time_284657f204ff4b0af841d814fd7a3105} \subsection{Friends And Related Function Documentation} \index{ost::Time@{ost::Time}!operator+@{operator+}} \index{operator+@{operator+}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time} operator+ (const int {\em val}, const {\bf Time} \& {\em time})\hspace{0.3cm}{\tt [friend]}}\label{classost_1_1_time_f0771d4878a5e94a8c2019c894e72416} \index{ost::Time@{ost::Time}!operator+@{operator+}} \index{operator+@{operator+}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time} operator+ (const {\bf Time} \& {\em time}, const int {\em val})\hspace{0.3cm}{\tt [friend]}}\label{classost_1_1_time_3c43d7cd22ea630832cbca2fb3d4f2cc} \index{ost::Time@{ost::Time}!operator+@{operator+}} \index{operator+@{operator+}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time} operator+ (const {\bf Time} \& {\em time1}, const {\bf Time} \& {\em time2})\hspace{0.3cm}{\tt [friend]}}\label{classost_1_1_time_9c18d7b5f143b30fde622c17a4efbc76} \index{ost::Time@{ost::Time}!operator-@{operator-}} \index{operator-@{operator-}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time} operator- (const int {\em val}, const {\bf Time} \& {\em time})\hspace{0.3cm}{\tt [friend]}}\label{classost_1_1_time_9a50c92ec670eda851e50b7fc673630b} \index{ost::Time@{ost::Time}!operator-@{operator-}} \index{operator-@{operator-}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time} operator- (const {\bf Time} \& {\em time}, const int {\em val})\hspace{0.3cm}{\tt [friend]}}\label{classost_1_1_time_d0836c87d01759f09a766941a440a651} \index{ost::Time@{ost::Time}!operator-@{operator-}} \index{operator-@{operator-}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Time} operator- (const {\bf Time} \& {\em time1}, const {\bf Time} \& {\em time2})\hspace{0.3cm}{\tt [friend]}}\label{classost_1_1_time_c0fbc0092c27406800668dbd83109373} \subsection{Member Data Documentation} \index{ost::Time@{ost::Time}!seconds@{seconds}} \index{seconds@{seconds}!ost::Time@{ost::Time}} \subsubsection{\setlength{\rightskip}{0pt plus 5cm}long {\bf ost::Time::seconds}\hspace{0.3cm}{\tt [protected]}}\label{classost_1_1_time_abd1d4695df3b4f06d24db2f444b9970} The documentation for this class was generated from the following file:\begin{CompactItemize} \item {\bf numbers.h}\end{CompactItemize}