#ifndef __3LinkManager_h
#define __3LinkManager_h

class MCARCHIVE;

/*************************************************************************
 * <_xZkqqHx_iNfMjBkCjBmM_xHqqkZx_>	MC3MolipRec
 *
 * <_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 MC3MolipRec
{
	MC3MolipRec () : dwObjID(0), lMolipId(0) {}
	MC3MolipRec (DWORD id, long idx) : dwObjID(id), lMolipId(idx) {}

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

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

	MC3MolipRec	m_mlpFrom;		// _xZkqqHx_iDiKiDjDiDeOiMlDiDiCiDiKiDhGiBeC_xHqqkZx_
	MC3MolipRec	m_mlpTo;		// _xZkqqHx_iDiKiDjDiDeOjAoGiDiCiDiKiDhGiBeC_xHqqkZx_
	DBLPoint	m_mmptOffset;	// _xZkqqHx_iDiKiDjDiDeOiMlDiCkJiCoHiDiKiDjDiDeOjAoGiCnGiCmMiDeJiDhEiDfKiDgCiDgHiBeC_xHqqkZx_
	WORD		m_wLinkKind;	// mmptOffset_xZkqqHx_iCmMiOoNjHnOiBeC_xHqqkZx_FDLMLinkKind_xZkqqHx_iCmMiCfAiCmCiBeC_xHqqkZx_
}; // struct MC3LinkRec.

class MC3LinkManager
{
public:
	MC3LinkManager ();
	~MC3LinkManager ();
	void	InStream (MCARCHIVE& ar);
	void	OutStream (MCARCHIVE& ar);

	virtual void	ClearAll ();

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

#endif//__3LinkManager_h
