Changeset 13948 for trunk/FACT++
- Timestamp:
- 05/28/12 10:45:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimState.h
r13906 r13948 37 37 } 38 38 39 v irtual void Handler(const EventImp &evt)39 void HandlerImp(const EventImp &evt) 40 40 { 41 41 const bool disconnected = evt.GetSize()==0; … … 44 44 45 45 msg = disconnected ? "" : evt.GetString(); 46 46 } 47 48 void Callback(const EventImp &evt) 49 { 47 50 if (fCallback) 48 51 fCallback(evt); 49 52 } 53 54 virtual void Handler(const EventImp &evt) 55 { 56 HandlerImp(evt); 57 Callback(evt); 58 } 59 50 60 51 61 const Time &time() const { return info.first; } … … 127 137 void Handler(const EventImp &evt) 128 138 { 129 DimState::Handler(evt);139 HandlerImp(evt); 130 140 131 141 info.second = evt.GetSize()==4 ? evt.GetInt() : -256; 132 142 if (info.second==0) 133 143 info.second=-256; 144 145 Callback(evt); 134 146 } 135 147 … … 168 180 void Handler(const EventImp &evt) 169 181 { 170 DimState::Handler(evt);182 HandlerImp(evt); 171 183 172 184 shortmsg = msg; … … 197 209 shortmsg.erase(p0, p3-p0); 198 210 211 Callback(evt); 212 199 213 const auto func = fCallbacks.find(file); 200 214 if (func==fCallbacks.end())
Note:
See TracChangeset
for help on using the changeset viewer.