MCPcopy Create free account
hub / github.com/Kitware/VTK / Execute

Function Execute

Testing/Core/vtkTestErrorObserver.h:44–59  ·  view source on GitHub ↗

* Actual callback that catch errors and warnings, and store them internally. */

Source from the content-addressed store, hash-verified

42 * Actual callback that catch errors and warnings, and store them internally.
43 */
44 void Execute(vtkObject* vtkNotUsed(caller), unsigned long event, void* calldata) override
45 {
46 switch (event)
47 {
48 case vtkCommand::ErrorEvent:
49 this->ErrorMessage += static_cast<char*>(calldata);
50 this->Error = true;
51 this->ErrorCount++;
52 break;
53 case vtkCommand::WarningEvent:
54 this->WarningMessage += static_cast<char*>(calldata);
55 this->Warning = true;
56 this->WarningCount++;
57 break;
58 }
59 }
60 std::string GetErrorMessage() { return this->ErrorMessage; }
61
62 std::string GetWarningMessage() { return this->WarningMessage; }

Callers 6

DispatchArraysFunction · 0.70
DataSetPointMapperMethod · 0.70
DataSetPointMapperMethod · 0.70
ExecuteMethod · 0.70
ExecuteMethod · 0.70
DispatchDataObjectImplFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected