VTK
9.0.1
Parallel
Core
vtkPSystemTools.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPSystemTools.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
26
#ifndef vtkPSystemTools_h
27
#define vtkPSystemTools_h
28
29
#include "
vtkObject.h
"
30
#include "vtkParallelCoreModule.h"
// For export macro
31
#include <string>
// for string functions in SystemTools
32
33
class
VTKPARALLELCORE_EXPORT
vtkPSystemTools
:
public
vtkObject
34
{
35
public
:
36
static
vtkPSystemTools
*
New
();
37
vtkTypeMacro(
vtkPSystemTools
,
vtkObject
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
39
46
static
void
BroadcastString(
std::string
&,
int
proc);
47
55
static
std::string
CollapseFullPath(
const
std::string
& in_relative);
56
static
std::string
CollapseFullPath(
const
std::string
& in_relative,
const
char
* in_base);
57
59
67
static
bool
FileExists(
const
char
* filename,
bool
isFile);
68
static
bool
FileExists(
const
std::string
& filename,
bool
isFile);
69
static
bool
FileExists(
const
char
* filename);
70
static
bool
FileExists(
const
std::string
& filename);
72
76
static
bool
FileIsDirectory(
const
std::string
&
name
);
77
90
static
bool
FindProgramPath(
const
char
* argv0,
std::string
& pathOut,
std::string
& errorMsg,
91
const
char
* exeName =
nullptr
,
const
char
* buildDir =
nullptr
,
92
const
char
* installPrefix =
nullptr
);
93
97
static
std::string
GetCurrentWorkingDirectory(
bool
collapse =
true
);
98
104
static
std::string
GetProgramPath(
const
std::string
&);
105
106
protected
:
107
vtkPSystemTools
() {}
108
~vtkPSystemTools
()
override
{}
109
110
private
:
111
vtkPSystemTools
(
const
vtkPSystemTools
&) =
delete
;
112
void
operator=(
const
vtkPSystemTools
&) =
delete
;
113
};
114
115
#endif
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkPSystemTools
System tools for file system introspection.
Definition:
vtkPSystemTools.h:33
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkPSystemTools::~vtkPSystemTools
~vtkPSystemTools() override
Definition:
vtkPSystemTools.h:108
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::name
@ name
Definition:
vtkX3D.h:225
vtkObject.h
vtkX3D::string
@ string
Definition:
vtkX3D.h:496
vtkPSystemTools::vtkPSystemTools
vtkPSystemTools()
Definition:
vtkPSystemTools.h:107
Generated on Thu Jun 25 2020 08:30:56 for VTK by
1.8.17