| 280 | vtkSetStringPlusMTimeMacro(vtkPostgreSQLDatabase, ConnectOptions, URLMTime); |
| 281 | |
| 282 | inline void vtkPostgreSQLDatabase::SetServerPort(int _arg) |
| 283 | { |
| 284 | vtkDebugMacro(<< this->GetClassName() << " (" << this << "): setting ServerPort to " << _arg); |
| 285 | _arg = std::min(std::max(_arg, 0), VTK_INT_MAX); |
| 286 | if (this->ServerPort != _arg) |
| 287 | { |
| 288 | this->ServerPort = _arg; |
| 289 | this->Modified(); |
| 290 | this->URLMTime.Modified(); |
| 291 | this->Close(); // Force a re-open on next query |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | VTK_ABI_NAMESPACE_END |
| 296 | #endif // vtkPostgreSQLDatabase_h |