Changeset 10843
- Timestamp:
- 05/26/11 17:11:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r10841 r10843 58 58 } 59 59 60 void Update( ostringstream &out, int severity)60 void Update(const char *msg, int severity) 61 61 { 62 fMsg.Update( out, severity);62 fMsg.Update(msg, severity); 63 63 } 64 64 … … 87 87 } 88 88 89 fMsg. Info("Starting EventBuilder");89 fMsg.Message("Starting EventBuilder thread"); 90 90 91 91 g_maxBoards = addr.size(); … … 97 97 for (vector<string>::const_iterator it=addr.begin(); it!=addr.end(); it++) 98 98 { 99 g_ip[i++].addr[99] = 0; 100 strncpy(g_ip[i++].addr, it->c_str(), 99); 99 g_ip[i].port = 5000; 100 101 memset(g_ip[i].addr, 0, 100); 102 strncpy(g_ip[i].addr, it->c_str(), 99); 103 104 strcpy(g_ip[i].addr, "127.0.0.1"); 105 106 i++; 101 107 } 102 108 … … 105 111 void Abort() 106 112 { 107 fMsg.Message("Signal abort to EventBuilder ...");113 fMsg.Message("Signal abort to EventBuilder thread..."); 108 114 g_runStat = kAbort; 109 115 } … … 111 117 void Exit() 112 118 { 113 fMsg.Message("Signal exit to EventBuilder ...");119 fMsg.Message("Signal exit to EventBuilder thread..."); 114 120 g_runStat = kExit; 115 121 } … … 159 165 EventBuilderWrapper *EventBuilderWrapper::This = 0; 160 166 161 extern "C" { 162 167 // ----------- Event builder callbacks implementation --------------- 168 extern "C" 169 { 163 170 int runOpen(uint32_t irun, RUN_HEAD *runhd, size_t len) 164 171 { … … 175 182 return EventBuilderWrapper::This->runClose(fileId, runth, len); 176 183 } 184 185 void message(int severity, const char *msg) 186 { 187 EventBuilderWrapper::This->Update(msg, severity); 188 } 177 189 } 178 190
Note:
See TracChangeset
for help on using the changeset viewer.