- Main Page
- Classes
- Files
- Directories
- Examples

- File List
- File Members

# fbxerror.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_ERROR_H_
    00014 #define _FBXSDK_CORE_BASE_ERROR_H_
    00015
    00016 #include <fbxsdk/fbxsdk_def.h>
    00017
    00018 #include <fbxsdk/core/base/fbxstring.h>
    00019
    00020 #include <fbxsdk/fbxsdk_nsbegin.h>
    00021
    00032 class FBXSDK_DLL FbxError
    00033 {
    00034 public:
    00035
    00037     FbxError();
    00038
    00044     FbxError(const char* pStringArray [], int pErrorCount);
    00045
    00047     ~FbxError();
    00048
    00053     void Reset(const char* pStringArray [], int pErrorCount);
    00054
    00058     int GetErrorCount() const;
    00059
    00064     const char* GetErrorString(int pIndex) const;
    00065
    00072     void SetLastError(int pIndex, const char* pString);
    00073
    00079     void SetLastErrorID(int pIndex);
    00080
    00084     int GetLastErrorID() const;
    00085
    00089     const char* GetLastErrorString() const;
    00090
    00096     void SetLastErrorString(const char * pString);
    00097
    00099     void ClearLastError();
    00100
    00102 //
    00103 //  WARNING!
    00104 //
    00105 //  Anything beyond these lines may not be documented accurately and is
    00106 //  subject to change without notice.
    00107 //
    00109 #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00110 private:
    00111     int mLastErrorID;
    00112     int mErrorCount;
    00113
    00114     FbxString mLastErrorString;
    00115     const char** mStringArray;
    00116 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
    00117 };
    00118
    00119 #include <fbxsdk/fbxsdk_nsend.h>
    00120
    00121 #endif /* _FBXSDK_CORE_BASE_ERROR_H_ */