#include "Config/Param.h"Go to the source code of this file.
Namespaces | |
| namespace | cfg |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const Param &p) |
|
||||||||||||
|
Definition at line 16 of file Param.cxx. References cfg::Param::Get(), cfg::Param::Print(), and cfg::Param::XMLTag(). 00017 {
00018 if (std::string(p.XMLTag())=="time_t") {
00019 time_t t;
00020 p.Get(t);
00021 struct tm* ts = gmtime(&t);
00022 os << ts->tm_year+1900 << "-" << ts->tm_mon+1 << "-"
00023 << ts->tm_mday << " " << ts->tm_hour << ":" << ts->tm_min << ":"
00024 << ts->tm_sec;
00025 return os;
00026 }
00027 else {
00028 p.Print(os);
00029 return os;
00030 }
00031 }
|
1.3.9.1