|
Jpp
18.3.0
the software that should make you happy
|
Auxiliary class for simple time. More...
#include <JTime.hh>
Public Member Functions | |
| JTime () | |
| Default constructor. More... | |
| JTime (const int hour, const int minute, const int second) | |
| Constructor. More... | |
| JTime (const std::string &time) | |
| Constructor. More... | |
| bool | less (const JTime &time) const |
| Less-than method. More... | |
Static Public Member Functions | |
| static JTime | min () |
| Minimal time. More... | |
| static JTime | max () |
| Maximal time. More... | |
Public Attributes | |
| int | hour |
| hour More... | |
| int | minute |
| minute More... | |
| int | second |
| second More... | |
Static Public Attributes | |
| static const char | SEPARATOR = JSeparator_t |
| Separation character. More... | |
Friends | |
| std::istream & | operator>> (std::istream &in, JTime &object) |
| Read time from input stream. More... | |
| std::ostream & | operator<< (std::ostream &out, const JTime &object) |
| Write time to output stream. More... | |
Auxiliary class for simple time.
The corresponding ASCII format is hh<separator>mm<separator>ss, where hh corresponds to the hour, mm to the minutes and ss to the seconds.
The separator is defined by the template parameter.
Definition at line 39 of file Jeep/JTime.hh.
|
inline |
|
inline |
Constructor.
| hour | hour |
| minute | minute |
| second | second |
Definition at line 65 of file Jeep/JTime.hh.
|
inline |
Constructor.
| time | time |
Definition at line 79 of file Jeep/JTime.hh.
|
inlinestatic |
Minimal time.
Definition at line 87 of file Jeep/JTime.hh.
|
inlinestatic |
Maximal time.
Definition at line 88 of file Jeep/JTime.hh.
|
inline |
Less-than method.
| time | time |
Definition at line 97 of file Jeep/JTime.hh.
|
friend |
Read time from input stream.
| in | input stream |
| object | time |
Definition at line 120 of file Jeep/JTime.hh.
|
friend |
Write time to output stream.
| out | output stream |
| object | time |
Definition at line 146 of file Jeep/JTime.hh.
|
static |
Separation character.
Definition at line 45 of file Jeep/JTime.hh.
| int JEEP::JTime< JSeparator_t >::hour |
hour
Definition at line 154 of file Jeep/JTime.hh.
| int JEEP::JTime< JSeparator_t >::minute |
minute
Definition at line 155 of file Jeep/JTime.hh.
| int JEEP::JTime< JSeparator_t >::second |
second
Definition at line 156 of file Jeep/JTime.hh.
1.8.5