FBX C++ API Reference
|
#include <fbxstatistics.h>
This class is a basic class to get the quantity of items.
User processes the statistics raw data by deriving FbxStatistics class and overrides AddItem
method. When overriding AddItem
method, User must store item's name and item's count by pair which means The index of one item's name in array mItemName
is the same as the index of this item's count in array mItemCount
.
Definition at line 62 of file fbxstatistics.h.
Public Member Functions | |
void | Reset () |
Reset the statistics. More... | |
int | GetNbItems () const |
Get the number of items. More... | |
bool | GetItemPair (int pNum, FbxString &pItemName, int &pItemCount) const |
Get the statistics information by pair. More... | |
FbxStatistics & | operator= (const FbxStatistics &pStatistics) |
Assignment operator. More... | |
Protected Member Functions | |
virtual bool | AddItem (FbxString &, int) |
virtual function to define the process of the incoming statistics data. More... | |
Protected Attributes | |
FbxArray< FbxString * > | mItemName |
An array to store item's name. More... | |
FbxArray< int > | mItemCount |
An array to store item's count. More... | |
Constructor and Destructor. | |
FbxStatistics () | |
virtual | ~FbxStatistics () |
FbxStatistics | ( | ) |
|
virtual |
void Reset | ( | ) |
Reset the statistics.
int GetNbItems | ( | ) | const |
Get the number of items.
bool GetItemPair | ( | int | pNum, |
FbxString & | pItemName, | ||
int & | pItemCount | ||
) | const |
Get the statistics information by pair.
pNum | The index of statistics data to be got. |
pItemName | Output the item's name. |
pItemCount | Output the item's count. |
True
if successful, False
otherwise. FbxStatistics& operator= | ( | const FbxStatistics & | pStatistics | ) |
Assignment operator.
pStatistics | FbxStatistics assigned to this one. |
|
inlineprotectedvirtual |
virtual function to define the process of the incoming statistics data.
pItemName | The item's name |
pItemCount | The item's count. |
Definition at line 96 of file fbxstatistics.h.
An array to store item's name.
Definition at line 96 of file fbxstatistics.h.
|
protected |
An array to store item's count.
Definition at line 102 of file fbxstatistics.h.