* Actual callback that catch errors and warnings, and store them internally. */
| 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; } |
no outgoing calls
no test coverage detected