FBX C++ API Reference
|
#include <fbxstatus.h>
This class facilitates the testing/reporting of errors.
It encapsulates the status code and the internal FBXSDK error code as returned by the API functions.
Definition at line 26 of file fbxstatus.h.
Public Types | |
enum | EStatusCode { eSuccess = 0, eFailure, eInsufficientMemory, eInvalidParameter, eIndexOutOfRange, ePasswordError, eInvalidFileVersion, eInvalidFile, eSceneCheckFail } |
Available status codes. More... | |
Public Member Functions | |
FbxStatus () | |
Default constructor. More... | |
FbxStatus (EStatusCode pCode) | |
FbxStatus (const FbxStatus &rhs) | |
FbxStatus & | operator= (const FbxStatus &rhs) |
bool | operator== (const FbxStatus &rhs) const |
Equivalence operator. More... | |
bool | operator== (const EStatusCode pCode) const |
Equivalence operator. More... | |
bool | operator!= (const FbxStatus &rhs) const |
Non-Equivalence operator. More... | |
bool | operator!= (const EStatusCode rhs) const |
Non-Equivalence operator. More... | |
operator bool () const | |
The conversion operator that converts a FbxStatus object to bool. More... | |
bool | Error () const |
Determines whether there is an error. More... | |
void | Clear () |
Clear error code and message from the instance. After this call, it will behave as if it contained eSuccess. More... | |
EStatusCode | GetCode () const |
Retrieve the type of error that occurred, as specified in the enumeration. More... | |
void | SetCode (const EStatusCode rhs) |
Change the current code of the instance. More... | |
void | SetCode (const EStatusCode rhs, const char *pErrorMsg,...) |
Change the current code of the instance. More... | |
const char * | GetErrorString () const |
Get the error message string corresponding to the current code. More... | |
enum EStatusCode |
Available status codes.
Definition at line 32 of file fbxstatus.h.
FbxStatus | ( | ) |
Default constructor.
FbxStatus | ( | EStatusCode | pCode | ) |
|
inline |
Equivalence operator.
rhs | Status object to compare. |
True
if all the members of rhs are equal to this instance members and False
otherwise. Definition at line 56 of file fbxstatus.h.
|
inline |
Equivalence operator.
pCode | Status code to compare. |
True
if the code member of this instance equals pCode and False
otherwise. Definition at line 61 of file fbxstatus.h.
|
inline |
Non-Equivalence operator.
rhs | Status object to compare. |
True
if at least one member of rhs is not equal to this instance member and True
otherwise. Definition at line 66 of file fbxstatus.h.
|
inline |
Non-Equivalence operator.
rhs | Status code to compare. |
True
if the code member of this instance equals rhs and False
otherwise. Definition at line 71 of file fbxstatus.h.
|
inline |
The conversion operator that converts a FbxStatus object to bool.
The result it returns will be True
if the FbxStatus does not contain an error, and False
if it does.
Definition at line 77 of file fbxstatus.h.
|
inline |
Determines whether there is an error.
True
if an error occured and False
if the operation was sucessful. Definition at line 82 of file fbxstatus.h.
void Clear | ( | ) |
Clear error code and message from the instance. After this call, it will behave as if it contained eSuccess.
|
inline |
Retrieve the type of error that occurred, as specified in the enumeration.
Definition at line 88 of file fbxstatus.h.
void SetCode | ( | const EStatusCode | rhs | ) |
Change the current code of the instance.
rhs | New code value. |
void SetCode | ( | const EStatusCode | rhs, |
const char * | pErrorMsg, | ||
... | |||
) |
Change the current code of the instance.
rhs | New code value. |
pErrorMsg | Optional error description string. This string can have formatting characters The function will use the vsnprintf function to assemble the final string using an internal buffer of 4096 characters. |
const char* GetErrorString | ( | ) | const |
Get the error message string corresponding to the current code.