Changeset 10423
- Timestamp:
- 04/20/11 15:22:38 (14 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.cc
r10332 r10423 195 195 //! An ostream to which the output should be redirected. 196 196 //! 197 void EventImp::Print(ostream &out ) const197 void EventImp::Print(ostream &out, bool strip) const 198 198 { 199 199 out << " \xc2\xb7 "; … … 201 201 const string str = GetName(); 202 202 if (!str.empty()) 203 out << kBold << str ;203 out << kBold << str.substr(strip?str.find_first_of('/')+1:0); 204 204 205 205 const string fmt = GetFormat(); … … 264 264 //! Calls Print(std::cout) 265 265 // 266 void EventImp::Print( ) const267 { 268 Print(cout );269 } 266 void EventImp::Print(bool strip) const 267 { 268 Print(cout, strip); 269 } -
trunk/FACT++/src/EventImp.h
r10371 r10423 10 10 11 11 class EventImp 12 { 13 int fTargetState; /// Target state of an event 12 { int fTargetState; /// Target state of an event 14 13 std::vector<int> fAllowedStates; /// List of states in which this event is allowed 15 14 … … 38 37 39 38 // Print contents 40 virtual void Print(std::ostream &out ) const;41 virtual void Print( ) const;39 virtual void Print(std::ostream &out, bool strip=false) const; 40 virtual void Print(bool strip=false) const; 42 41 43 42 // Handling of the states
Note:
See TracChangeset
for help on using the changeset viewer.