FBX C++ API Reference
|
This class facilitates the testing/reporting of errors. More...
#include <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 () | |
FbxStatus & | operator= (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... | |
bool | KeepErrorStringHistory (bool pState) |
Configure this object to remember all the error messages string. More... | |
void | GetErrorStringHistory (FbxArray< FbxString * > &pHistory) |
Get the history of all the error messages that have been set. More... | |
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. By default, the class will not accumulate all the error messages into the history array. If this history is desired, the object must be configured by calling KeepErrorStringHistory(true)
Definition at line 29 of file fbxstatus.h.
enum EStatusCode |
Available status codes.
Definition at line 35 of file fbxstatus.h.
FbxStatus | ( | ) |
Default constructor.
FbxStatus | ( | EStatusCode | pCode | ) |
~FbxStatus | ( | ) |
|
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 61 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 66 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 71 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 76 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 82 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 87 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 93 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.
bool KeepErrorStringHistory | ( | bool | pState | ) |
Configure this object to remember all the error messages string.
pState | If set to true, this object will record all the error messages that can later be access by calling GetErrorStringHistory(). If set to false, any recorded history is also cleared. |
Get the history of all the error messages that have been set.
pHistory | Array that is going to be filled with the stored string. |