Changeset 12128 for trunk/FACT++/src
- Timestamp:
- 09/17/11 09:39:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.cc
r11479 r12128 215 215 void EventImp::Print(ostream &out, bool strip) const 216 216 { 217 out << " \xc2\xb7";217 out << " -"; 218 218 219 219 const string str = GetName(); 220 220 if (!str.empty()) 221 out << kBold << str.substr(strip?str.find_first_of('/')+1:0) ;221 out << kBold << str.substr(strip?str.find_first_of('/')+1:0) << kReset << "-"; 222 222 223 223 const string fmt = GetFormat(); 224 225 if (!str.empty() && !fmt.empty()) 226 out << " "; 227 224 228 if (!fmt.empty()) 225 out << kBold <<"[" << fmt << "]";229 out << "[" << fmt << "]"; 226 230 227 231 vector<Description> v = Description::SplitDescription(GetDescription()); … … 229 233 if (!GetDescription().empty()) 230 234 { 235 out << kBold; 231 236 for (vector<Description>::const_iterator j=v.begin()+1; 232 237 j!=v.end(); j++) 233 238 out << " <" << j->name << ">"; 239 out << kReset; 234 240 } 235 236 out << kReset << ":";237 241 238 242 for (unsigned int i=0; i<fAllowedStates.size(); i++) … … 240 244 241 245 if (fTargetState<0) 242 out << " [conf]";246 out << " (conf)"; 243 247 else 244 out << " [trans->" << fTargetState << "]";248 out << " (trans->" << fTargetState << ")"; 245 249 246 250 const Time tm = GetTime(); … … 262 266 263 267 if (GetDescription().empty()) 268 { 269 out << endl; 264 270 return; 265 266 out << " " << v[0].comment << endl; 271 } 272 273 out << " " << v[0].comment << endl; 267 274 268 275 for (vector<Description>::const_iterator j=v.begin()+1; 269 276 j!=v.end(); j++) 270 277 { 271 out << " " << kGreen << j->name;278 out << " ||" << kGreen << j->name; 272 279 if (!j->comment.empty()) 273 280 out << kReset << ": " << kBlue << j->comment; … … 276 283 out << endl; 277 284 } 285 out << endl; 278 286 } 279 287
Note:
See TracChangeset
for help on using the changeset viewer.