/*------------------------------------------------------------------------------*
 * File Name: Collection.h														*
 * Creation: TD 9-21-01															*
 * Purpose: Origin C header	for Collection template class						*
 * Copyright (c) OriginLab Corp.2001											*
 * All Rights Reserved															*
 * 																				*
 * Modification Log:															*
 *	Sim 07-05-2007 SHOULD_RETURN_NUMBER_AS_INT_BECAUSE_UNSIGNED_INT_0_MINUS_1_IS_NOT_EQUAL_-1
 *------------------------------------------------------------------------------*/

#ifndef _COLLECTION_H
#define _COLLECTION_H

/**+
http://ocwiki.originlab.com/index.php?title=Category:Collection_(class)
*/
class Collection
{
public:
	/**+
	http://ocwiki.originlab.com/index.php?title=OriginC:Collection-Collection
	*/
	Collection();
	
	/**+
	http://ocwiki.originlab.com/index.php?title=OriginC:Collection-Count
	*/
	///---Sim 07-05-2007 SHOULD_RETURN_NUMBER_AS_INT_BECAUSE_UNSIGNED_INT_0_MINUS_1_IS_NOT_EQUAL_-1
	//UINT Count();
	int Count();
	///---END SHOULD_RETURN_NUMBER_AS_INT_BECAUSE_UNSIGNED_INT_0_MINUS_1_IS_NOT_EQUAL_-1
	
	/**+
	http://ocwiki.originlab.com/index.php?title=OriginC:Collection-Item
	*/
	_TemplType Item(int nIndex);
	
	/**+
	http://ocwiki.originlab.com/index.php?title=OriginC:Collection-Item
	*/
	_TemplType Item(LPCSTR lpcszName);
	
	//int			Count;
};

#endif // _COLLECTION_H
