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

Servers/Common/vtkPVServerOptionsInternals.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   ParaView
00004   Module:    $RCSfile: vtkPVServerOptionsInternals.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 =========================================================================*/
00015 
00016 #ifndef __vtkPVServerOptionsInternals_h
00017 #define __vtkPVServerOptionsInternals_h
00018 
00019 #include <vtkstd/vector>
00020 #include <vtkstd/string>
00021 
00022 class vtkPVServerOptionsInternals
00023 {
00024 public:
00025   // The MachineInformation struct is used
00026   // to store information about each machine.
00027   // These are stored in a vector one for each node in the process.
00028   struct MachineInformation
00029   {
00030   public:
00031     MachineInformation()
00032       {
00033         for(int i =0; i < 3; ++i)
00034           {
00035           this->LowerLeft[i] = 0.0;
00036           this->LowerRight[i] = 0.0;
00037           this->UpperLeft[i] = 0.0;
00038           }
00039         this->CaveBoundsSet = 0;
00040       }
00041     
00042     vtkstd::string Name;  // what is the name of the machine
00043     vtkstd::string Environment; // what environment variables should be set
00044     int CaveBoundsSet;  // have the cave bounds been set
00045     // store the cave bounds  all 0.0 if not set
00046     double LowerLeft[3];
00047     double LowerRight[3];
00048     double UpperLeft[3];
00049   };
00050   void PrintSelf(ostream& os, vtkIndent indent)
00051     {
00052       os << indent << "Machine Information :\n";
00053       vtkIndent ind = indent.GetNextIndent();
00054       for(unsigned int i =0; i < this->MachineInformationVector.size(); ++i)
00055         {
00056         MachineInformation& minfo = this->MachineInformationVector[i];
00057         os << ind << "Node: " << i << "\n";
00058         vtkIndent ind2 = ind.GetNextIndent();
00059         os << ind2 << "Name: " << minfo.Name.c_str() << "\n";
00060         os << ind2 << "Environment: " << minfo.Environment.c_str() << "\n";
00061         if(minfo.CaveBoundsSet)
00062           {
00063           int j;
00064           os << ind2 << "LowerLeft: ";
00065           for(j=0; j < 3; ++j)
00066             {
00067             os << minfo.LowerLeft[j] << " ";
00068             }
00069           os << "\n" << ind2 << "LowerRight: ";
00070           for(j=0; j < 3; ++j)
00071             {
00072             os << minfo.LowerRight[j] << " ";
00073             }
00074           os << "\n" << ind2 << "UpperLeft: ";
00075           for(j=0; j < 3; ++j)
00076             {
00077             os << minfo.UpperLeft[j] << " ";
00078             }
00079           os << "\n";
00080           }
00081         else
00082           {
00083           os << ind2 << "No Cave Options\n";
00084           }
00085         }
00086     }
00087   vtkstd::vector<MachineInformation> MachineInformationVector; // store the vector of machines
00088 };
00089 
00090 #endif

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