Example #1
0
/*!
\brief Get list of pg of this account
\author Endymion
\param sc the list
*/
void cAccount::getAllChars(  NxwCharWrapper& sc )
{
	sc.clear();
	for( unsigned int i=0; i<this->pgs.size(); i++ ) {
		sc.insertSerial( this->pgs[i] );
	}
}
Example #2
0
/*!
\brief Get list of pg of this account
\return SI32 0 if ok, INVALID else
\param acctnum Account number
\param sc the list
*/
void cAccounts::GetAllChars( ACCOUNT acctnum, NxwCharWrapper& sc )
{
	ACCOUNT_LIST::iterator iter( this->acctlist.find( acctnum ));
	if( iter!=this->acctlist.end() )
	{
		iter->second.getAllChars( sc );
	}
	else
		sc.clear();
}