- Main Page
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# fbxutils.h

Go to the documentation of this file.

    00001 /****************************************************************************************
    00002
    00003    Copyright (C) 2012 Autodesk, Inc.
    00004    All rights reserved.
    00005
    00006    Use of this software is subject to the terms of the Autodesk license agreement
    00007    provided at the time of installation or download, or which otherwise accompanies
    00008    this software in either electronic or hard copy form.
    00009
    00010 ****************************************************************************************/
    00011
    00013 #ifndef _FBXSDK_CORE_BASE_UTILITIES_H_
    00014 #define _FBXSDK_CORE_BASE_UTILITIES_H_
    00015
    00016 #include <fbxsdk/fbxsdk_def.h>
    00017
    00018 #include <fbxsdk/core/base/fbxstring.h>
    00019
    00020 #include <fbxsdk/fbxsdk_nsbegin.h>
    00021
    00025 FBXSDK_DLL FbxString FbxGetEnv(const char* pEnvVar);
    00026
    00027
    00031 FBXSDK_DLL FbxString FbxGetSystemTempPath();
    00032
    00035 FBXSDK_DLL void FbxSetCurrentWorkPath(const char* pPath_UTF8);
    00036
    00040 FBXSDK_DLL FbxString FbxGetCurrentWorkPath();
    00041
    00042 class FBXSDK_DLL FbxPathUtils
    00043 {
    00044 public:
    00052     static FbxString Bind(const char* pRootPath, const char* pFilePath, bool pCleanPath=true);
    00053
    00058     static FbxString GetFolderName(const char* pFilePath);
    00059
    00066     static FbxString GetFileName(const char* pFilePath, bool pWithExtension=true);
    00067
    00073     static FbxString GetExtensionName(const char* pFilePath);
    00074
    00081     static FbxString ChangeExtension(const char* pFilePath, const char* pExtension);
    00082
    00084     static bool IsRelative(const char* pPath);
    00085
    00092     static FbxString GetRelativePath(const char* pRootPath, const char* pNewPath);
    00093
    00095     static FbxString GetRelativeFilePath(const char* pRootPath, const char* pNewFilePath);
    00096
    00100     static FbxString Resolve(const char* pRelPath);
    00101
    00103     static FbxString Clean(const char* pPath);
    00104
    00110     static FbxString GenerateFileName(const char* pFolder, const char* pPrefix);
    00111 };
    00112
    00113 #include <fbxsdk/fbxsdk_nsend.h>
    00114
    00115 #endif /* _FBXSDK_CORE_BASE_UTILITIES_H_ */