ParaScripting::ParaSearchResult Class Reference
[ParaIO]

List of all members.

Detailed Description

it represents a search result.


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


Member Function Documentation

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.

Parameters:
output,: [in|out] default value.
Returns:
: return the field result. If field not found, output will be returned. e.g. {filename="abc.txt", filesize=0, fileattr=0, createdate="1982-11-26", writedate="", accessdate=""} fileattr is the value same as defined in WIN32_FIND_DATA.dwFileAttributes


Generated on Mon Dec 1 14:34:45 2008 for NPL Scripting Reference for ParaEngine by  doxygen 1.5.2