00001
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "CTB.hxx"
00015 #include "CTBrange.hxx"
00016
00022
00024
00025 void CTBrange::ToStream(ostream& os) const
00026 {
00027 os << mi_begin << ":" << mi_end;
00028 return;
00029 }
00030
00031
00033
00037 void CTBrange::FromStream(istream& is)
00038 {
00039 if (!is) return;
00040
00041 is >> mi_begin;
00042
00043 if (!is || is.peek() != ':') {
00044 mi_end = mi_begin;
00045 return;
00046 }
00047
00048 is.get();
00049 is >> mi_end;
00050
00051 return;
00052 }
00053
00054 #if (defined(CTB__OutLine) || defined(CTBrange__OutLine))
00055 #define inline
00056 #include "CTBrange.icc"
00057 #undef inline
00058 #endif