#include <stdio.h>
#include <stdlib.h>
#include <fstream>
#include <string>
#include <string.h>
#include <strings.h>
Go to the source code of this file.
|
int | stringRemoveDelimiter (char delimiter, const char *string) |
|
int | getFileExtension (char *filename, char **extension) |
|
bool | checkCmdLineFlag (const int argc, const char **argv, const char *string_ref) |
|
template<class T > |
bool | getCmdLineArgumentValue (const int argc, const char **argv, const char *string_ref, T *value) |
|
int | getCmdLineArgumentInt (const int argc, const char **argv, const char *string_ref) |
|
float | getCmdLineArgumentFloat (const int argc, const char **argv, const char *string_ref) |
|
bool | getCmdLineArgumentString (const int argc, const char **argv, const char *string_ref, char **string_retval) |
|
char * | sdkFindFilePath (const char *filename, const char *executable_path) |
|
#define FOPEN |
( |
|
fHandle, |
|
|
|
filename, |
|
|
|
mode |
|
) |
| (fHandle = fopen(filename, mode)) |
#define STRCASECMP strcasecmp |
Copyright 1993-2013 NVIDIA Corporation. All rights reserved.
Please refer to the NVIDIA end user license agreement (EULA) associated with this source code for terms and conditions that govern your use of this software. Any use, reproduction, disclosure, or distribution of this software and related documentation outside the terms of the EULA is strictly prohibited.
#define STRCPY |
( |
|
sFilePath, |
|
|
|
nLength, |
|
|
|
sPath |
|
) |
| strcpy(sFilePath, sPath) |
#define STRNCASECMP strncasecmp |
bool checkCmdLineFlag |
( |
const int |
argc, |
|
|
const char ** |
argv, |
|
|
const char * |
string_ref |
|
) |
| |
|
inline |
float getCmdLineArgumentFloat |
( |
const int |
argc, |
|
|
const char ** |
argv, |
|
|
const char * |
string_ref |
|
) |
| |
|
inline |
int getCmdLineArgumentInt |
( |
const int |
argc, |
|
|
const char ** |
argv, |
|
|
const char * |
string_ref |
|
) |
| |
|
inline |
bool getCmdLineArgumentString |
( |
const int |
argc, |
|
|
const char ** |
argv, |
|
|
const char * |
string_ref, |
|
|
char ** |
string_retval |
|
) |
| |
|
inline |
template<class T >
bool getCmdLineArgumentValue |
( |
const int |
argc, |
|
|
const char ** |
argv, |
|
|
const char * |
string_ref, |
|
|
T * |
value |
|
) |
| |
|
inline |
int getFileExtension |
( |
char * |
filename, |
|
|
char ** |
extension |
|
) |
| |
|
inline |
char* sdkFindFilePath |
( |
const char * |
filename, |
|
|
const char * |
executable_path |
|
) |
| |
|
inline |
Find the path for a file assuming that files are found in the searchPath.
- Returns
- the path if succeeded, otherwise 0
- Parameters
-
filename | name of the file |
executable_path | optional absolute path of the executable |
int stringRemoveDelimiter |
( |
char |
delimiter, |
|
|
const char * |
string |
|
) |
| |
|
inline |