| 140 | } |
| 141 | |
| 142 | std::string |
| 143 | ProcessObject::ToString() const |
| 144 | { |
| 145 | std::ostringstream out; |
| 146 | |
| 147 | out << " Debug: "; |
| 148 | this->ToStringHelper(out, this->m_Debug) << std::endl; |
| 149 | |
| 150 | out << " NumberOfThreads: "; |
| 151 | this->ToStringHelper(out, this->m_NumberOfThreads) << std::endl; |
| 152 | |
| 153 | out << " NumberOfWorkUnits: "; |
| 154 | this->ToStringHelper(out, this->m_NumberOfWorkUnits) << std::endl; |
| 155 | |
| 156 | out << " Commands:" << (m_Commands.empty() ? " (none)" : "") << std::endl; |
| 157 | for (const auto & eventCommand : m_Commands) |
| 158 | { |
| 159 | assert(eventCommand.m_Command); |
| 160 | out << " Event: " << eventCommand.m_Event << " Command: " << eventCommand.m_Command->GetName() << std::endl; |
| 161 | } |
| 162 | |
| 163 | out << " ProgressMeasurement: "; |
| 164 | this->ToStringHelper(out, this->m_ProgressMeasurement) << std::endl; |
| 165 | |
| 166 | out << " ActiveProcess:" << (this->m_ActiveProcess ? "" : " (none)") << std::endl; |
| 167 | if (this->m_ActiveProcess) |
| 168 | { |
| 169 | this->m_ActiveProcess->Print(out, itk::Indent(4)); |
| 170 | } |
| 171 | |
| 172 | return out.str(); |
| 173 | } |
| 174 | |
| 175 | |
| 176 | std::ostream & |