vtkTestUtilities Struct Reference
#include <vtkTesting.h>
List of all members.
|
Static Public Member Functions |
char * | GetDataRoot (int argc, char *argv[]) |
|
char * | ExpandDataFileName (int argc, char *argv[], const char *fname, int slash=0) |
char * | GetArgOrEnvOrDefault (const char *arg, int argc, char *argv[], const char *env, const char *def) |
|
char * | ExpandFileNameWithArgOrEnvOrDefault (const char *arg, int argc, char *argv[], const char *env, const char *def, const char *fname, int slash=0) |
Member Function Documentation
char* vtkTestUtilities::GetDataRoot |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
[static] |
|
|
Function necessary for accessing the root directory for VTK data. Try the -D command line argument or VTK_DATA_ROOT or a default value. The returned string has to be deleted (with delete[]) by the user. |
char* vtkTestUtilities::ExpandDataFileName |
( |
int |
argc, |
|
|
char * |
argv[], |
|
|
const char * |
fname, |
|
|
int |
slash = 0 |
|
) |
[static] |
|
|
Given a file name, this function returns a new string which is (in theory) the full path. This path is constructed by prepending the file name with a command line argument (-D path) or VTK_DATA_ROOT env. variable. If slash is true, appends a slash to the resulting string. The returned string has to be deleted (with delete[]) by the user. |
char* vtkTestUtilities::GetArgOrEnvOrDefault |
( |
const char * |
arg, |
|
|
int |
argc, |
|
|
char * |
argv[], |
|
|
const char * |
env, |
|
|
const char * |
def |
|
) |
[static] |
|
|
Given a file name, this function returns a new string which is (in theory) the full path. This path is constructed by prepending the file name with a command line argument (-D path) or VTK_DATA_ROOT env. variable. If slash is true, appends a slash to the resulting string. The returned string has to be deleted (with delete[]) by the user. |
char* vtkTestUtilities::ExpandFileNameWithArgOrEnvOrDefault |
( |
const char * |
arg, |
|
|
int |
argc, |
|
|
char * |
argv[], |
|
|
const char * |
env, |
|
|
const char * |
def, |
|
|
const char * |
fname, |
|
|
int |
slash = 0 |
|
) |
[static] |
|
|
Given a file name, this function returns a new string which is (in theory) the full path. This path is constructed by prepending the file name with a command line argument, an environment variable or a default value. If slash is true, appends a slash to the resulting string. The returned string has to be deleted (with delete[]) by the user. |
The documentation for this struct was generated from the following file: