Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Servers/Common/vtkMPIMToNSocketConnectionPortInformation.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkMPIMToNSocketConnectionPortInformation.h,v $
00005 
00006   Copyright (c) Kitware, Inc.
00007   All rights reserved.
00008   See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
00023 #ifndef __vtkMPIMToNSocketConnectionPortInformation_h
00024 #define __vtkMPIMToNSocketConnectionPortInformation_h
00025 
00026 #include "vtkPVInformation.h"
00027 
00028 class vtkMPIMToNSocketConnectionPortInformationInternals;
00029 
00030 
00031 class VTK_EXPORT vtkMPIMToNSocketConnectionPortInformation : public vtkPVInformation
00032 {
00033 public:
00034   static vtkMPIMToNSocketConnectionPortInformation* New();
00035   vtkTypeRevisionMacro(vtkMPIMToNSocketConnectionPortInformation, vtkPVInformation);
00036   void PrintSelf(ostream &os, vtkIndent indent);
00037 
00039 
00040   vtkGetStringMacro(HostName);
00042 
00044 
00045   vtkSetMacro(ProcessNumber, int);
00046   vtkGetMacro(ProcessNumber, int);
00047   // description:
00048   // Set/Get the ProcessNumber
00049   vtkSetMacro(PortNumber, int);
00050   vtkGetMacro(PortNumber, int);
00052   
00054 
00055   void SetPortNumber(unsigned int processNumber, int port);
00056   void SetHostName(unsigned int processNumber, const char* host);
00058   
00060 
00061   vtkSetMacro(NumberOfConnections, int);
00062   vtkGetMacro(NumberOfConnections, int);
00064   
00065   int GetProcessPort(unsigned int processNumber);
00066   const char* GetProcessHostName(unsigned int processNumber);
00067   
00069   virtual void CopyFromObject(vtkObject*);
00070 
00072   virtual void AddInformation(vtkPVInformation*);
00073 
00075 
00076   virtual void CopyToStream(vtkClientServerStream*) const;
00077   virtual void CopyFromStream(const vtkClientServerStream*);
00078   // Description:
00079   // Set the host name.
00080   vtkSetStringMacro(HostName);
00082 protected:
00083   vtkMPIMToNSocketConnectionPortInformation();
00084   ~vtkMPIMToNSocketConnectionPortInformation();
00085 
00086   char* HostName;
00087   int NumberOfConnections;
00088   int ProcessNumber;
00089   int PortNumber;
00090   vtkMPIMToNSocketConnectionPortInformationInternals* Internals;
00091 private:
00092   vtkMPIMToNSocketConnectionPortInformation(const vtkMPIMToNSocketConnectionPortInformation&); // Not implemented
00093   void operator=(const vtkMPIMToNSocketConnectionPortInformation&); // Not implemented
00094 };
00095 
00096 #endif

Generated on Tue May 30 12:31:45 2006 for ParaView by doxygen 1.3.5