Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 5136

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>VTK: dox/Parallel/vtkSocketController.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="classes.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
<h1>dox/Parallel/vtkSocketController.h</h1><a href="a03344.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">  Program:   Visualization Toolkit</span>
<a name="l00004"></a>00004 <span class="comment">  Module:    $RCSfile: vtkSocketController.h,v $</span>
<a name="l00005"></a>00005 <span class="comment"></span>
<a name="l00006"></a>00006 <span class="comment">  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span>
<a name="l00007"></a>00007 <span class="comment">  All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment">  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">     This software is distributed WITHOUT ANY WARRANTY; without even</span>
<a name="l00011"></a>00011 <span class="comment">     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span>
<a name="l00012"></a>00012 <span class="comment">     PURPOSE.  See the above copyright notice for more information.</span>
<a name="l00013"></a>00013 <span class="comment"></span>
<a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span>
<a name="l00043"></a>00043 <span class="preprocessor">#ifndef __vtkSocketController_h</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span><span class="preprocessor">#define __vtkSocketController_h</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span>
<a name="l00046"></a>00046 <span class="preprocessor">#include "<a class="code" href="a03302.html">vtkMultiProcessController.h</a>"</span>
<a name="l00047"></a>00047 
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a01570.html" title="Process communication using Sockets.">vtkSocketCommunicator</a>;
<a name="l00049"></a>00049 
<a name="l00050"></a><a class="code" href="a01571.html">00050</a> <span class="keyword">class </span><a class="code" href="a02170.html#7438b32736749f34b46d66222305e60b">VTK_PARALLEL_EXPORT</a> <a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a> : <span class="keyword">public</span> <a class="code" href="a01062.html" title="Multiprocessing communication superclass.">vtkMultiProcessController</a>
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052 <span class="keyword">public</span>:
<a name="l00053"></a>00053   <span class="keyword">static</span> <a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00054"></a><a class="code" href="a01571.html#9360253eb16b289b197395b5c0478973">00054</a>   vtkTypeRevisionMacro(<a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a>,<a class="code" href="a01062.html" title="Multiprocessing communication superclass.">vtkMultiProcessController</a>);
<a name="l00055"></a>00055   <span class="keywordtype">void</span> <a class="code" href="a01062.html#9050aa51077d61fd00d0e767621d9cc8">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00056"></a>00056 
<a name="l00058"></a>00058 
<a name="l00060"></a><a class="code" href="a01571.html#dcffaab52956c8d893fb32b9167e16e9">00060</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01062.html#86e7245d8b5cb698c87ae4c05c91b010">Initialize</a>(<span class="keywordtype">int</span>* argc, <span class="keywordtype">char</span>*** argv, <span class="keywordtype">int</span>)
<a name="l00061"></a>00061     { this-&gt;<a class="code" href="a01062.html#86e7245d8b5cb698c87ae4c05c91b010">Initialize</a>(argc,argv); }
<a name="l00062"></a>00062   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01062.html#86e7245d8b5cb698c87ae4c05c91b010">Initialize</a>(<span class="keywordtype">int</span>* argc, <span class="keywordtype">char</span>*** argv); 
<a name="l00063"></a><a class="code" href="a01571.html#7bebe1cc68bf1b1fcdc1333676eef3f1">00063</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01062.html#86e7245d8b5cb698c87ae4c05c91b010">Initialize</a>()
<a name="l00064"></a>00064     { this-&gt;<a class="code" href="a01062.html#86e7245d8b5cb698c87ae4c05c91b010">Initialize</a>(0,0); }
<a name="l00066"></a>00066 
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="a01571.html#83ec3007da1b0145432d722c8dd585c2">00069</a>   <span class="keywordtype">void</span> <a class="code" href="a01062.html#f005efd76a46b0bc6e226dcf4dc85563">Finalize</a>() {};
<a name="l00070"></a><a class="code" href="a01571.html#879e13c98950f626fb98fd13bb40f310">00070</a>   <span class="keywordtype">void</span> <a class="code" href="a01062.html#f005efd76a46b0bc6e226dcf4dc85563">Finalize</a>(<span class="keywordtype">int</span>) {};
<a name="l00072"></a>00072 
<a name="l00074"></a><a class="code" href="a01571.html#5eb31bd37568533dbf7d8026c5d67594">00074</a>   <span class="keywordtype">void</span> <a class="code" href="a01062.html#6c67676b78f2d8c16640191c6cae2920">SingleMethodExecute</a>() {};
<a name="l00075"></a>00075   
<a name="l00077"></a><a class="code" href="a01571.html#b746c4539145b1221985ac83a167596e">00077</a>   <span class="keywordtype">void</span> <a class="code" href="a01062.html#d342fd0e93395ff97c708491792375e3">MultipleMethodExecute</a>() {};
<a name="l00078"></a>00078 
<a name="l00080"></a><a class="code" href="a01571.html#f37f4ada7e12f99d9bac338dba34694a">00080</a>   <span class="keywordtype">void</span> <a class="code" href="a01062.html#ecacba79270b45d37e0fbd838d38c826">CreateOutputWindow</a>() {};
<a name="l00081"></a>00081 
<a name="l00083"></a>00083   <span class="keyword">virtual</span> <span class="keywordtype">int</span> WaitForConnection(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>);
<a name="l00084"></a>00084 
<a name="l00086"></a>00086   <span class="keyword">virtual</span> <span class="keywordtype">void</span> CloseConnection();
<a name="l00087"></a>00087 
<a name="l00089"></a>00089   <span class="keyword">virtual</span> <span class="keywordtype">int</span> ConnectTo( <span class="keywordtype">char</span>* hostName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a> );
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   <span class="keywordtype">int</span> GetSwapBytesInReceivedData();
<a name="l00092"></a>00092 
<a name="l00094"></a>00094   <span class="keywordtype">void</span> SetCommunicator(<a class="code" href="a01570.html" title="Process communication using Sockets.">vtkSocketCommunicator</a>* comm);
<a name="l00095"></a>00095 
<a name="l00103"></a>00103   <a class="code" href="a01062.html" title="Multiprocessing communication superclass.">vtkMultiProcessController</a> *CreateCompliantController();
<a name="l00104"></a>00104 
<a name="l00105"></a>00105 <span class="comment">//BTX</span>
<a name="l00106"></a>00106 
<a name="l00107"></a><a class="code" href="a01571.html#4d2c464d4690a47dd5be3b4d944ab409">00107</a>   <span class="keyword">enum</span> <a class="code" href="a01062.html#86ffd85e7dd8130a3bc7f8359fc0adf5">Consts</a> {
<a name="l00108"></a><a class="code" href="a01571.html#4d2c464d4690a47dd5be3b4d944ab4091547c1f38bc7bb8216683d4719aafa09">00108</a>     ENDIAN_TAG=1010580540,      <span class="comment">// 0x3c3c3c3c</span>
<a name="l00109"></a><a class="code" href="a01571.html#4d2c464d4690a47dd5be3b4d944ab409dc8b1e1e4e18059e557a461e71da1479">00109</a>     IDTYPESIZE_TAG=1027423549,  <span class="comment">// 0x3d3d3d3d</span>
<a name="l00110"></a><a class="code" href="a01571.html#4d2c464d4690a47dd5be3b4d944ab409be5d2b4cbddb25b3b65467175582d126">00110</a>     VERSION_TAG=1044266558,     <span class="comment">// 0x3e3e3e3e</span>
<a name="l00111"></a>00111   };
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 <span class="comment">//ETX</span>
<a name="l00114"></a>00114 
<a name="l00115"></a>00115 <span class="keyword">protected</span>:
<a name="l00116"></a>00116 
<a name="l00117"></a>00117   <a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a>();
<a name="l00118"></a>00118   ~<a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a>();
<a name="l00119"></a>00119 
<a name="l00120"></a>00120   <span class="comment">// Initialize only once, finialize on destruction.</span>
<a name="l00121"></a><a class="code" href="a01571.html#6dc72568df1478eb65dc8d2c020319f5">00121</a>   <span class="keyword">static</span> <span class="keywordtype">int</span> Initialized;
<a name="l00122"></a>00122 <span class="keyword">private</span>:
<a name="l00123"></a>00123   <a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a>(<span class="keyword">const</span> <a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00124"></a>00124   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01571.html" title="Process communication using Sockets.">vtkSocketController</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00125"></a>00125 };
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 
<a name="l00128"></a>00128 <span class="preprocessor">#endif // __vtkSocketController_h</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:44 2009 for VTK by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>