Скачиваний:
11
Добавлен:
01.05.2014
Размер:
1.21 Кб
Скачать

/********************************************************************************/

#include "TextEntity.h"
#include <iostream>
/********************************************************************************/

CTextEntity::CTextEntity( const std::string iT,
						  const int iX, const int iY)
: CPointEntity(iX, iY)
{
	setText( iT );
}

/********************************************************************************/

CTextEntity::~CTextEntity()
{
	// Интересно, а надо ли как-нибудь удалять эту строку?
}

/********************************************************************************/

std::string CTextEntity::getText() const
{
	return mText;
}

/********************************************************************************/

void CTextEntity::setText( const std::string iT )
{
	mText = iT;
}

/********************************************************************************/

void  CTextEntity::Printfig(std::ostream& os)
{
	os	<< "Text:" <<std::endl;
	os			<< " X=" << mX<<std::endl;
	os			<< " Y=" << mY<<std::endl;
	os			<< " T=" << mText<<std::endl;
}

/********************************************************************************/
Соседние файлы в папке templ