Changeset 122 in flair-src for trunk/lib/FlairCore/src/IODevice_impl.cpp
- Timestamp:
- Jan 6, 2017, 1:56:26 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairCore/src/IODevice_impl.cpp
r15 r122 106 106 } 107 107 108 bool IODevice_impl::SetToBeLogged(void) { 108 bool IODevice_impl::IsSetToBeLogged(void) const{ 109 return tobelogged; 110 } 111 112 void IODevice_impl::SetToBeLogged(void) { 109 113 if (!tobelogged) { 110 114 tobelogged = true; 111 return true;112 115 } else { 113 116 self->Warn("already added to log\n"); 114 return false;115 117 } 116 118 } 117 119 118 120 void IODevice_impl::WriteLogsDescriptors(fstream &desc_file, int *index) { 119 // own descriptor 121 //Printf("WriteLogsDescriptors %s\n",self->ObjectName().c_str()); 122 // own descriptor 120 123 for (size_t i = 0; i < datasToLog.size(); i++) 121 124 datasToLog.at(i)->pimpl_->WriteLogDescriptor(desc_file, index); … … 127 130 for (size_t i = 0; i < devicesToLog.size(); i++) 128 131 devicesToLog.at(i)->pimpl_->WriteLogsDescriptors(desc_file, index); 132 //Printf("WriteLogsDescriptors %s ok\n",self->ObjectName().c_str()); 129 133 } 130 134 … … 194 198 195 199 void IODevice_impl::AppendLog(char **ptr) { 196 //Printf("AppendLog %s %x\n",self->ObjectName().c_str(),*ptr);200 //Printf("AppendLog %s %x\n",self->ObjectName().c_str(),*ptr); 197 201 198 202 // copy state to buf 199 203 for (size_t i = 0; i < datasToLog.size(); i++) { 200 // printf("copy \n");204 // printf("copy %s\n",datasToLog.at(i)->ObjectName().c_str()); 201 205 datasToLog.at(i)->CopyDatas(*ptr); 202 206 (*ptr) += datasToLog.at(i)->GetDataType().GetSize();
Note:
See TracChangeset
for help on using the changeset viewer.