#include <PionDateTime.hpp>
Static Public Member Functions |
static boost::uint32_t | to_time_t (const PionDateTime &t) |
Detailed Description
PionTimeFacet: helper class for PionDateTime I/O
Definition at line 34 of file PionDateTime.hpp.
Constructor & Destructor Documentation
pion::PionTimeFacet::PionTimeFacet |
( |
const std::string & |
format | ) |
|
|
inlineexplicit |
Member Function Documentation
void pion::PionTimeFacet::fromString |
( |
const std::string & |
str, |
|
|
PionDateTime & |
t |
|
) |
| |
|
inline |
read date_time value from a string using the defined format
- Parameters
-
str | string to read the value from |
t | will be set to the date_time value read from the string |
Definition at line 104 of file PionDateTime.hpp.
void pion::PionTimeFacet::fromString |
( |
const char * |
str, |
|
|
PionDateTime & |
t |
|
) |
| |
|
inline |
read date_time value from a string using the defined format
- Parameters
-
str | string to read the value from |
t | will be set to the date_time value read from the string |
Definition at line 115 of file PionDateTime.hpp.
PionDateTime pion::PionTimeFacet::fromString |
( |
const std::string & |
str | ) |
|
|
inline |
read date_time value from a string using the defined format
- Parameters
-
str | string to read the value from |
- Returns
- result of the date_time value read from the string
Definition at line 126 of file PionDateTime.hpp.
PionDateTime pion::PionTimeFacet::fromString |
( |
const char * |
str | ) |
|
|
inline |
read date_time value from a string using the defined format
- Parameters
-
str | string to read the value from |
- Returns
- result of the date_time value read from the string
Definition at line 139 of file PionDateTime.hpp.
template<class charT , class traits >
void pion::PionTimeFacet::read |
( |
std::basic_istream< charT, traits > & |
input, |
|
|
PionDateTime & |
t |
|
) |
| |
|
inline |
read date_time value from an istream using the defined format
- Parameters
-
input | stream to read the value from |
t | will be set to the value read from the input stream |
Definition at line 81 of file PionDateTime.hpp.
void pion::PionTimeFacet::toString |
( |
std::string & |
str, |
|
|
const PionDateTime & |
t |
|
) |
| |
|
inline |
write date_time value to a string using the defined format
- Parameters
-
str | string to write the value to |
t | the date_time value to write to the string |
Definition at line 152 of file PionDateTime.hpp.
std::string pion::PionTimeFacet::toString |
( |
const PionDateTime & |
t | ) |
|
|
inline |
write date_time value to a string using the defined format
- Parameters
-
t | the date_time value to write to the string |
- Returns
- the date_time value converted into string format
Definition at line 164 of file PionDateTime.hpp.
template<class charT , class traits >
void pion::PionTimeFacet::write |
( |
std::basic_ostream< charT, traits > & |
output, |
|
|
const PionDateTime & |
t |
|
) |
| |
|
inline |
write date_time value to an output stream using the defined format
- Parameters
-
output | stream to write the value to |
t | the value to write to the stream |
Definition at line 93 of file PionDateTime.hpp.
The documentation for this class was generated from the following file: