Public Member Functions | |
ParaSearchResult (CSearchResult *pResult) | |
bool | IsValid () |
check if the object is valid | |
void | Release () |
release results. | |
string | GetRootPath () |
get the root path | |
int | GetNumOfResult () |
get the total number of result found | |
bool | AddResult (const char *sItem) |
add a new item. | |
string | GetItem (int nIndex) |
get the item at the specified index. | |
object | GetItemData (int nIndex, const object &output) |
get the item at the specified index. | |
Public Attributes | |
CSearchResult * | m_pResult |
void ParaScripting::ParaSearchResult::Release | ( | ) |
release results.
bool ParaScripting::ParaSearchResult::AddResult | ( | const char * | sItem | ) |
add a new item.
return false if the search is completed.
string ParaScripting::ParaSearchResult::GetItem | ( | int | nIndex | ) |
get the item at the specified index.
return "" if nIndex is out of range.
object ParaScripting::ParaSearchResult::GetItemData | ( | int | nIndex, | |
const object & | output | |||
) |
get the item at the specified index.
return nil if nIndex is out of range.
output,: | [in|out] default value. |