Changeset 10299 for trunk/FACT++/src/EventImp.cc
- Timestamp:
- 04/07/11 12:39:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.cc
r10295 r10299 113 113 #include "Time.h" 114 114 #include "WindowLog.h" 115 #include "Description.h" 115 116 116 117 using namespace std; … … 205 206 if (!fmt.empty()) 206 207 out << kBold << "[" << fmt << "]"; 208 209 vector<Description> v = Description::SplitDescription(GetDescription()); 210 211 if (!GetDescription().empty()) 212 { 213 for (vector<Description>::const_iterator j=v.begin()+1; 214 j!=v.end(); j++) 215 out << " <" << j->name << ">"; 216 } 207 217 208 218 out << kReset << ":"; … … 233 243 out << endl; 234 244 235 if (!fDescription.empty()) 236 out << " " << fDescription << endl; 245 if (GetDescription().empty()) 246 return; 247 248 out << " " << v[0].comment << endl; 249 250 for (vector<Description>::const_iterator j=v.begin()+1; 251 j!=v.end(); j++) 252 { 253 out << " " << kGreen << j->name; 254 if (!j->comment.empty()) 255 out << kReset << ": " << kBlue << j->comment; 256 if (!j->unit.empty()) 257 out << kYellow << " [" << j->unit << "]"; 258 out << endl; 259 } 237 260 } 238 261
Note:
See TracChangeset
for help on using the changeset viewer.