#include "stdafx.h"
// #include "2Archive.h"		// For MCARCHIVE.
#include "2ObjPictArrow.h"	// This header.

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif//SUPER_CLASS
#define SUPER_CLASS MC2ObjGroup

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2ObjPictArrow::MC2ObjPictArrow
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_FDFoundDoc_xZkqqHx_iCmM_xHqqkZx_InStream_xZkqqHx_iCmFjFeLjHhGiBeC_xHqqkZx_
 *			_xZkqqHx_iDiBiDjDiDgPjFmPjAjEiCpAjFmPiNfIiClFiCmEiCkCiCoJiCkKiBeB_xHqqkZx_Doc::AppendToZOrder_xZkqqHx_iCkKiMmEiCnBiPgPiClFiMlD_xHqqkZx_
 *			_xZkqqHx_iCkJiCoHiOmAiNhDiClDiCoKiCoJiCmNiClIiCmIiCmMiCmFiBeB_xHqqkZx_JustDid()_xZkqqHx_iCmNiOmAiNhDiClFiCmIiCkCiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
MC2ObjPictArrow::MC2ObjPictArrow ()
{
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	m_mmrtArrowFrame.SetRect(0,0,0,0);
//	m_nArrowDutyIndex = -1;
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	m_mmrtArrowFrame.SetRect(0,0,0,0);	// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	m_mmMinArrowPenWeight = 0.0;		// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiCmMiDhJiDjDjBlOiClDiNmFjCoBjCgMiBeC_xHqqkZx_
	m_dwObjUserUlong = DWORD(-1);		// _xZkqqHx_jFjEjFgJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	m_nArrowDutyIndex = -1;				// // _xZkqqHx_jGoOiIpDjGpAiKiEiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
	m_nArrowDutySz = 0;					// _xZkqqHx_jFgAiJoGiPoOjFpBiCmMjGhLjBmMiCkJiCoHiCmMiMhAiPlDiPoOjFpBiBeC_xHqqkZx_
	m_bypArrowDuty = NULL;				// _xZkqqHx_jFgAiJoGiPoOjFpBiCmMjGhLjBmMiCkJiCoHiCmMiMhAiPlDiPoOjFpBiBeC_xHqqkZx_
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // MC2ObjPictArrow::MC2ObjPictArrow.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2ObjPictArrow::~MC2ObjPictArrow
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDgGiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.07.11 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
MC2ObjPictArrow::~MC2ObjPictArrow ()
{
	// _xZkqqHx_iKpJjBlGiCmMiDiKiDfIiDgHiCpAiPmBiLiOiBeC_xHqqkZx_
	if (m_bypArrowDuty != NULL)
	{
		delete[] m_bypArrowDuty;
		m_bypArrowDuty = NULL;
	}
	m_nArrowDutySz = 0;
} // MC2ObjPictArrow::~MC2ObjPictArrow.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2ObjPictArrow::Type
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iClBiCmMiDeOiDiJiDfIiCmMiMfOiCpAjFnEiClH_xHqqkZx_.
 *
 * <_xZkqqHx_jFnEjCgM_xHqqkZx_>	_xZkqqHx_iDeOiDiJiDfIiCmMiMfO_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
FTObjectType MC2ObjPictArrow::Type () const
{
	return FDOJ_PICT_ARROW;
} // MC2ObjPictArrow::Type.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2ObjPictArrow::OutStreamV3
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPjBiCkLiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	: _xZkqqHx_iPjBiCkLiPgPiClFjHhAiCmM_xHqqkZx_MCARCHIVE
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC2ObjPictArrow::OutStreamV3 (MCARCHIVE& ar)
{
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	SUPER_CLASS::OutStreamV3(ar);
//	ar << m_mmrtArrowFrame;		// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
//	ar << m_nArrowDutyIndex;	// _xZkqqHx_jGoOiIpDjGpAiKiEiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
//	//----- _xZkqqHx_jGoOiIpDjFgAiJoGiMhAiPlDiPoOjFpBiDiKiDfIiDgHiCpAiPgPjHmN_xHqqkZx_ -----
//	ar << (short)m_byvArrowDuty.size();
//	BYTEVector::iterator iB;
//	for (iB = m_byvArrowDuty.begin(); iB != m_byvArrowDuty.end(); iB++)
//		ar << *iB;
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	SUPER_CLASS::OutStreamV3(ar);
	ar << m_mmrtArrowFrame;			// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	ar << m_mmMinArrowPenWeight;	// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiDhJiDjDjBlOiClDiNmFjCoBjCgMiBeC_xHqqkZx_
	ar << m_dwObjUserUlong;			// _xZkqqHx_jFjEjFgJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	ar << m_nArrowDutyIndex;		// _xZkqqHx_jGoOiIpDjGpAiKiEiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
	//----- _xZkqqHx_jGoOiIpDjFgAiJoGiMhAiPlDiPoOjFpBiDiKiDfIiDgHiCpAiPgPjHmN_xHqqkZx_ -----
	long lC;
	//----- _xZkqqHx_iDiKiDjDiDeOjGpAiKiEjFjEjFgJiDiKiDfIiDgHiCpAiPgPjHmN_xHqqkZx_ -----
	ar << (short)m_nArrowDutySz;
	for (lC = 0; lC < m_nArrowDutySz; lC++)
		ar << m_bypArrowDuty[lC];
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIiPeJ_xHqqkZx_ ()-----
} // MC2ObjPictArrow::OutStreamV3.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2ObjPictArrow::InStreamV12
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_jFjEjFgJiCmMiPpDjBnEiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDmHiCnNiNjOiCnOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	: _xZkqqHx_jDmHiCnNiNjOiCnNjHhAiCmM_xHqqkZx_MCARCHIVE
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	01.04.08 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC2ObjPictArrow::InStreamV12 (MCARCHIVE& ar)
{
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIjBeP_xHqqkZx_ ()-----
//	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
//	SUPER_CLASS::InStreamV12(ar);
//	ar >> m_mmrtArrowFrame;		// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
//	ar >> m_nArrowDutyIndex;	// _xZkqqHx_jGoOiIpDjGpAiKiEiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
//	//----- _xZkqqHx_jGoOiIpDjFgAiJoGiMhAiPlDiPoOjFpBiDiKiDfIiDgHiCpAjDpMjHmN_xHqqkZx_ -----
//	short nSize;
//	BYTE byRec;
//	// _xZkqqHx_iKpJjBlGiCmMiDiKiDfIiDgHiCpAiPmBiLiOiBeC_xHqqkZx_
//	m_byvArrowDuty.clear();
//	ar >> nSize;
//	while (0 < nSize--)
//	{
//		ar >> byRec;
//		m_byvArrowDuty.push_back(byRec);
//	}
//----- 01.08.16 Fukushiro M. _xZkqqHx_jFmPiNfIiMoD_xHqqkZx_ ()-----
	// Superclass_xZkqqHx_iKnGjAjEiBeC_xHqqkZx_
	SUPER_CLASS::InStreamV12(ar);
	ar >> m_mmrtArrowFrame;			// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiDhEiDiMiBfLiDiAiBeC_xHqqkZx_
	ar >> m_mmMinArrowPenWeight;	// _xZkqqHx_iDhDiDeOiDgAiDiDjGoOiIpDiDhJiDjDjBlOiClDiNmFjCoBjCgMiBeC_xHqqkZx_
	ar >> m_dwObjUserUlong;			// _xZkqqHx_jFjEjFgJiDiGiBfLiDfF_xHqqkZx_ID_xZkqqHx_iBeC_xHqqkZx_
	ar >> m_nArrowDutyIndex;		// _xZkqqHx_jGoOiIpDjGpAiKiEiDeDiDjDiDgGiDgCiDeOiDfIiBeC_xHqqkZx_
	//----- _xZkqqHx_jGoOiIpDjFgAiJoGiMhAiPlDiPoOjFpBiDiKiDfIiDgHiCpAjDpMjHmN_xHqqkZx_ -----
	short nSize;
	//----- _xZkqqHx_iDiKiDjDiDeOjGpAiKiEjFjEjFgJiDiKiDfIiDgHiCpAjDpMjHmN_xHqqkZx_ -----
	// _xZkqqHx_iKpJjBlGiCmMiDiKiDfIiDgHiCpAiPmBiLiOiBeC_xHqqkZx_
	if (m_bypArrowDuty != NULL)
	{
		delete[] m_bypArrowDuty;
		m_bypArrowDuty = NULL;
	}
	ar >> nSize;
	m_nArrowDutySz = nSize;
	if (0 < nSize)
	{
		m_bypArrowDuty = new BYTE[nSize];
		for (long lC = 0; lC < nSize; lC++)
			ar >> m_bypArrowDuty[lC];
	}
} // MC2ObjPictArrow::InStreamV12.

