00001 #ifndef _CTBlog_HXX
00002 #define _CTBlog_HXX 1
00003
00008
00009
00010
00011
00012
00013
00014
00015
00016 class CTBlogHead {
00017 public:
00018 CTBlogHead();
00019
00020 void ToStream(ostream& os) const;
00021
00022 private:
00023 static int mi_lastyear;
00024 static int mi_lastmon;
00025 static int mi_lastmday;
00026 };
00027
00028 ostream& operator<<(ostream& os, const CTBlogHead& rhs);
00029
00030
00031
00032 class CTBlogTail {
00033 public:
00034 CTBlogTail();
00035
00036 void ToStream(ostream& os) const;
00037 };
00038
00039 ostream& operator<<(ostream& os, const CTBlogTail& rhs);
00040
00041
00042
00043 class CTBlogLine {
00044 public:
00045 CTBlogLine();
00046 CTBlogLine(const char * c_message);
00047
00048 void ToStream(ostream& os) const;
00049
00050 private:
00051
00052 const char * mc_message;
00053
00054 };
00055
00056 ostream& operator<<(ostream& os, const CTBlogLine& rhs);
00057
00058 #if !(defined(CTB__OutLine) || defined(CTBlog__OutLine))
00059 #include "CTBlog.icc"
00060 #endif
00061
00062 #endif