00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00027 #ifndef __vtkDummyCommunicator_h
00028 #define __vtkDummyCommunicator_h
00029
00030 #include "vtkCommunicator.h"
00031
00032 class VTK_PARALLEL_EXPORT vtkDummyCommunicator : public vtkCommunicator
00033 {
00034 public:
00035 vtkTypeMacro(vtkDummyCommunicator, vtkCommunicator);
00036 static vtkDummyCommunicator *New();
00037 virtual void PrintSelf(ostream &os, vtkIndent indent);
00038
00040
00042 virtual int SendVoidArray(const void *, vtkIdType, int, int, int) {
00043 vtkWarningMacro("There is no one to send to.");
00044 return 0;
00045 }
00046 virtual int ReceiveVoidArray(void *, vtkIdType, int, int, int) {
00047 vtkWarningMacro("There is no one to receive from.");
00048 return 0;
00049 }
00051
00052 protected:
00053 vtkDummyCommunicator();
00054 virtual ~vtkDummyCommunicator();
00055
00056 private:
00057 vtkDummyCommunicator(const vtkDummyCommunicator &);
00058 void operator=(const vtkDummyCommunicator &);
00059 };
00060
00061 #endif //__vtkDummyCommunicator_h