www.pudn.com > pl0.zip > Word.cpp


// Word.cpp: implementation of the Word class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "Word.h" 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
 
Word::~Word() 
{ 
 
} 
 
void Word::ChanCont(string strToken) 
{ 
	strcpy(this->cont,strToken.data()); 
} 
 
void Word::ChanWType(int type) 
{ 
	this->WType=type; 
} 
 
void Word::ChanXY(const int chax,const int chay) 
{ 
	xend=chax; 
	xbeg=xend-strlen(cont)+1; 
	y=chay; 
} 
 
char * Word::ReturnCont() 
{ 
	return this->cont; 
} 
 
int Word::ReturnWType() 
{ 
	return this->WType; 
} 
 
void Word::ReturnXY(int &beginx,int &endx,int &chay) 
{ 
	beginx=xbeg; 
	endx=xend; 
	chay=y; 
}