Changeset 10486 for trunk/FACT++/src/EventImp.cc
- Timestamp:
- 04/28/11 17:35:33 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventImp.cc
r10423 r10486 186 186 187 187 return find(fAllowedStates.begin(), fAllowedStates.end(), state)!=fAllowedStates.end(); 188 } 189 190 // -------------------------------------------------------------------------- 191 // 192 //! @returns the event data converted to a std::string. Trailing redundant 193 //! \0's are removed. 194 //! 195 string EventImp::GetString() const 196 { 197 size_t s = GetSize()-1; 198 while (s>0 && GetText()[s]==0) 199 s--; 200 201 return std::string(GetText(), s+1); 188 202 } 189 203
Note:
See TracChangeset
for help on using the changeset viewer.