#include "stdafx.h"
#include "2Print.h"	// This header.

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

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2Print::MC2Print
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	03.06.06 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
MC2Print::MC2Print ()
{
	m_wDevNamesSz = 0;
	m_wDevModeSz = 0;
} // MC2Print::MC2Print.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2Print::InStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAiDfIiDgHiDiKiBfLiDiAiCkJiCoHjDmHiCnNiNjOiCpBiCmFiBeBjAnNjCoIiClHiCoJiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iDeBiBfLiDeKiDeDiDhFjAoGiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.04.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC2Print::InStream (MCARCHIVE& ar)
{
	ar >> m_wDevNamesSz;
	m_vDevNames.assign(m_wDevNamesSz, 0);
	ar.Read(&m_vDevNames.front(), m_wDevNamesSz);
	ar >> m_wDevModeSz;
	m_vDevMode.assign(m_wDevModeSz, 0);
	ar.Read(&m_vDevMode.front(), m_wDevModeSz);
} // MC2Print::InStream.

/*************************************************************************
 * <_xZkqqHx_iKnGjAjE_xHqqkZx_>	MC2Print::OutStream
 *
 * <_xZkqqHx_iLeAjEfM_xHqqkZx_>	_xZkqqHx_iDhGiDiKiDjDiDfOiPoOjFpBjDjJiCpAiDfIiDgHiDiKiBfLiDiAiCmJiPjBiCkLiPgPiClHiBeC_xHqqkZx_
 *
 * <_xZkqqHx_iIpIjAjE_xHqqkZx_>	ar	:_xZkqqHx_iDeBiBfLiDeKiDeDiDhFjAoGiCpAiOhHjCoIiBeC_xHqqkZx_
 *
 * <_xZkqqHx_jHjKjHpA_xHqqkZx_>	00.04.05 Fukushiro M. _xZkqqHx_iNoMjAkM_xHqqkZx_
 *************************************************************************/
void MC2Print::OutStream (MCARCHIVE& ar)
{
	ar << m_wDevNamesSz;
	ar.Write(&m_vDevNames.front(), m_wDevNamesSz);
	ar << m_wDevModeSz;
	ar.Write(&m_vDevMode.front(), m_wDevModeSz);
} // MC2Print::OutStream.

