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 "vtkParallelCoreModule.h" // For export macro 00031 #include "vtkCommunicator.h" 00032 00033 class VTKPARALLELCORE_EXPORT vtkDummyCommunicator : public vtkCommunicator 00034 { 00035 public: 00036 vtkTypeMacro(vtkDummyCommunicator, vtkCommunicator); 00037 static vtkDummyCommunicator *New(); 00038 virtual void PrintSelf(ostream &os, vtkIndent indent); 00039 00041 00043 virtual int SendVoidArray(const void *, vtkIdType, int, int, int) { 00044 vtkWarningMacro("There is no one to send to."); 00045 return 0; 00046 } 00047 virtual int ReceiveVoidArray(void *, vtkIdType, int, int, int) { 00048 vtkWarningMacro("There is no one to receive from."); 00049 return 0; 00050 } 00052 00053 protected: 00054 vtkDummyCommunicator(); 00055 virtual ~vtkDummyCommunicator(); 00056 00057 private: 00058 vtkDummyCommunicator(const vtkDummyCommunicator &); // Not implemented 00059 void operator=(const vtkDummyCommunicator &); // Not implemented 00060 }; 00061 00062 #endif //__vtkDummyCommunicator_h