#ifndef __4LinkManager_h
#define __4LinkManager_h

class CArchive;

/*************************************************************************
 * <_xZkqqHx_iNfMjBkCjBmM_xHqqkZx_>	MC4MolipRec
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJ_xHqqkZx_ID_xZkqqHx_iBhLiDiCiDiKiDhGiCmMiDiMiDfCiBfLiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iJpAjAoA_xHqqkZx_>	MOLIP(_xZkqqHx_iDiCiDiLiDhG_xHqqkZx_) = MOve LInk Point
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
struct MC4MolipRec
{
	MC4MolipRec () : dwObjID(0), lMolipId(0) {}
	MC4MolipRec (DWORD id, long idx) : dwObjID(id), lMolipId(idx) {}

	DWORD	dwObjID;
	long	lMolipId;
}; // struct MC4MolipRec.

/*************************************************************************
 * <_xZkqqHx_iNfMjBkCjBmM_xHqqkZx_>	MC4LinkRec
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDiKiDjDiDeOiCmMiDiMiDfCiBfLiDgIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	99.05.17 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
struct MC4LinkRec
{
	MC4LinkRec () : m_mlpFrom(0,0), m_mlpTo(0,0), m_mmptOffset(0,0),
					m_wLinkKind(FDLM_LINK_ON_COORD) {}

	MC4MolipRec	m_mlpFrom;		// _xZkqqHx_iDiKiDjDiDeOiMlDiDiCiDiKiDhGiBeC_xHqqkZx_
	MC4MolipRec	m_mlpTo;		// _xZkqqHx_iDiKiDjDiDeOjAoGiDiCiDiKiDhGiBeC_xHqqkZx_
	DBLPoint	m_mmptOffset;	// _xZkqqHx_iDiKiDjDiDeOiMlDiCkJiCoHiDiKiDjDiDeOjAoGiCnGiCmMiDeJiDhEiDfKiDgCiDgHiBeC_xHqqkZx_
	WORD		m_wLinkKind;	// mmptOffset_xZkqqHx_iCmMiOoNjHnOiBeC_xHqqkZx_FDLMLinkKind_xZkqqHx_iCmMiCfAiCmCiBeC_xHqqkZx_
}; // struct MC4LinkRec.

class MC4LinkManager
{
public:
	MC4LinkManager ();
	~MC4LinkManager ();
	void	InStream (CArchive& ar);
	void	OutStream (CArchive& ar);

	virtual void	ClearAll ();

protected:
	map<DWORD, MC4LinkRec*>	m_mpIdToLinkRec;	// _xZkqqHx_iDiKiDjDiDeO_xHqqkZx_ID->_xZkqqHx_iDiKiDjDiDeO_xHqqkZx_ _xZkqqHx_iDiBiDeDiDjDiDgFiBfLiDhFiDiLiBeC_xHqqkZx_
}; // class MC4LinkManager.

#endif//__4LinkManager_h
