MCPcopy Create free account
hub / github.com/SimpleITK/SimpleITK / ToString

Method ToString

Code/Common/src/sitkProcessObject.cxx:142–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142std::string
143ProcessObject::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
176std::ostream &

Callers

nothing calls this directly

Calls 1

GetNameMethod · 0.45

Tested by

no test coverage detected