mirror of
https://github.com/OpenFOAM/ThirdParty-6.git
synced 2025-12-08 06:57:43 +00:00
61 lines
1.7 KiB
C++
61 lines
1.7 KiB
C++
/*=========================================================================
|
|
|
|
Program: Visualization Toolkit
|
|
Module: vtkProcess.cxx
|
|
|
|
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
|
|
All rights reserved.
|
|
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
|
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
PURPOSE. See the above copyright notice for more information.
|
|
|
|
=========================================================================*/
|
|
#include "vtkProcess.h"
|
|
#include "vtkMultiProcessController.h"
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
vtkProcess::vtkProcess()
|
|
{
|
|
this->Controller=0;
|
|
this->ReturnValue=0;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------
|
|
vtkMultiProcessController *vtkProcess::GetController()
|
|
{
|
|
return this->Controller;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------
|
|
void vtkProcess::SetController(vtkMultiProcessController *aController)
|
|
{
|
|
this->Controller=aController;
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------
|
|
int vtkProcess::GetReturnValue()
|
|
{
|
|
return this->ReturnValue;
|
|
}
|
|
|
|
//----------------------------------------------------------------------------
|
|
void vtkProcess::PrintSelf(ostream& os, vtkIndent indent)
|
|
{
|
|
this->Superclass::PrintSelf(os,indent);
|
|
|
|
os << indent << "ReturnValue: " << this->ReturnValue << endl;
|
|
os << indent << "Controller: ";
|
|
if(this->Controller)
|
|
{
|
|
os << endl;
|
|
this->Controller->PrintSelf(os, indent.GetNextIndent());
|
|
}
|
|
else
|
|
{
|
|
os << "(none)" << endl;
|
|
}
|
|
}
|