www.pudn.com > 20065291434354190.rar > XLine.h


#pragma once 
 
#include "XSpot.h" 
#include "XTube.h" 
 
class XStations; 
 
class XLine 
{ 
	friend class XLines; 
 
public: 
	XLine (); 
	virtual ~XLine(); 
 
	XLine& operator = (const XLine& line); 
	bool operator == (const XLine& line); 
 
public: 
	int id; 
	CString name; 
	bool isOneWay; 
 
	vector spots; 
	 
public: 
	bool IsInRect (float left, float top, float right, float bottom); 
 
	int Append (XSpot& vSpot); 
	int Remove (XSpot& vSpot); 
 
	int GetStations (XStations& stations); 
 
	int ToTube (RectF rect, XTube& tube); 
	int GetCount(); 
 
	int ToXML (CMarkup& markup); 
	int FromXML (CMarkup& markup); 
};