xline.h

来自「这是一个用C++编写的公交车查询系统」· C头文件 代码 · 共 41 行

H
41
字号
#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<XSpot> 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);
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?