(self)
| 492 | self.Error("Weird constructor") |
| 493 | |
| 494 | def CheckPrintSelf(self): |
| 495 | if not self.ClassName: |
| 496 | return |
| 497 | typere = "^\\s*void\\s*PrintSelf\\s*\\(\\s*ostream\\s*&\\s*os*\\s*,\\s*vtkIndent\\s*indent\\s*\\)" |
| 498 | newtypere = "^\\s*virtual\\s*void\\s*PrintSelf\\s*\\(\\s*ostream\\s*&\\s*os*\\s*,\\s*vtkIndent\\s*indent\\s*\\)" |
| 499 | regx1 = re.compile(typere) |
| 500 | regx2 = re.compile(newtypere) |
| 501 | found = 0 |
| 502 | oldstyle = 0 |
| 503 | for a in self.FileLines: |
| 504 | line = a.strip() |
| 505 | rm1 = regx1.match(line) |
| 506 | rm2 = regx2.match(line) |
| 507 | if rm1 or rm2: |
| 508 | found = 1 |
| 509 | if rm1: |
| 510 | oldstyle = 1 |
| 511 | if not found: |
| 512 | self.Print( "File: %s does not define PrintSelf method:" % |
| 513 | self.FileName ) |
| 514 | self.Warning("No PrintSelf method") |
| 515 | |
| 516 | def CheckWindowsMangling(self): |
| 517 | lines = [] |
no test coverage detected