VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkDummyCommunicator.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 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 &); // Not implemented 00058 void operator=(const vtkDummyCommunicator &); // Not implemented 00059 }; 00060 00061 #endif //__vtkDummyCommunicator_h