/* 
* 
* function: Á¬Ïß½Ó¿Ú
* 
* Date:2015-12-05
* 
*    Author: Bill Wang
*/

#ifndef _LOGIC_WH_PORT_H_
#define _LOGIC_WH_PORT_H_

#include <assert.h>

typedef struct structPort
{
	int moduleId;
	int paraId;

	bool operator < (const structPort &port) const
	{
		if( moduleId < port.moduleId ) { //Ð¡ÓÚÖ±½Ó·µ»Øtrue
			return true;
		}else if( moduleId > port.moduleId ) { //´óÓÚ·µ»Øfalse
			return false;
		}else {

			//Èç¹ûmoduleIdÒ»Ñù£¬¼ÌÐø±È½ÏparaId£¬²»¿ÉÄÜ¶¼Ò»Ñù
			if( paraId < port.paraId )
				return true;
			else if (paraId > port.paraId)
				return false;
			else
				return false;
		}
	}

}whPort;  //Ò»¸ö³ö¿Ú¶¨Òå£¬ÍêÈ«¶¨ÒåÒ»¸öport

#endif