#include "vtkIOPostgreSQLModule.h"
#include "vtkSQLDatabase.h"
Go to the source code of this file.
|
| vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, HostName, URLMTime) |
|
| vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, User, URLMTime) |
|
| vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, Password, URLMTime) |
|
| vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, DatabaseName, URLMTime) |
|
| vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, ConnectOptions, URLMTime) |
|
#define vtkSetStringPlusMTimeMacro |
( |
|
className, |
|
|
|
name, |
|
|
|
timeStamp |
|
) |
| |
Value:inline void className::Set##
name (
const char* _arg) \
{ \
vtkDebugMacro(<< this->GetClassName() <<
" (" <<
this <<
"): setting " << #
name " to " << (_arg?_arg:
"(null)") ); \
if ( this->
name == NULL && _arg == NULL) {
return;} \
if ( this->
name && _arg && (!strcmp(this->
name,_arg))) {
return;} \
if (_arg) \
{ \
size_t n = strlen(_arg) + 1; \
char *cp1 = new char[n]; \
const char *cp2 = (_arg); \
this->name = cp1; \
do { *cp1++ = *cp2++; } while ( --n ); \
} \
else \
{ \
this->name = NULL; \
} \
this->Modified(); \
this->timeStamp.Modified(); \
this->Close(); \
}
Definition at line 221 of file vtkPostgreSQLDatabase.h.