VTK
Classes | Macros | Functions
vtkPostgreSQLDatabase.h File Reference
#include "vtkIOPostgreSQLModule.h"
#include "vtkSQLDatabase.h"
Include dependency graph for vtkPostgreSQLDatabase.h:

Go to the source code of this file.

Classes

class  vtkPostgreSQLDatabase
 maintain a connection to a PostgreSQL database More...
 

Macros

#define vtkSetStringPlusMTimeMacro(className, name, timeStamp)
 

Functions

 vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, HostName, URLMTime)
 
 vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, User, URLMTime)
 
 vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, Password, URLMTime)
 
 vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, DatabaseName, URLMTime)
 
 vtkSetStringPlusMTimeMacro (vtkPostgreSQLDatabase, ConnectOptions, URLMTime)
 

Macro Definition Documentation

#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;} \
delete [] this->name; \
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(); /* Force a re-open on next query */ \
}

Definition at line 221 of file vtkPostgreSQLDatabase.h.

Function Documentation

vtkSetStringPlusMTimeMacro ( vtkPostgreSQLDatabase  ,
HostName  ,
URLMTime   
)
vtkSetStringPlusMTimeMacro ( vtkPostgreSQLDatabase  ,
User  ,
URLMTime   
)
vtkSetStringPlusMTimeMacro ( vtkPostgreSQLDatabase  ,
Password  ,
URLMTime   
)
vtkSetStringPlusMTimeMacro ( vtkPostgreSQLDatabase  ,
DatabaseName  ,
URLMTime   
)
vtkSetStringPlusMTimeMacro ( vtkPostgreSQLDatabase  ,
ConnectOptions  ,
URLMTime   
)