XNeobus.cpp
上传用户:yokoluohf
上传日期:2013-02-25
资源大小:769k
文件大小:1k
- #include "StdAfx.h"
- #include "XNeobus.h"
- XNeobus::XNeobus(void)
- {
- }
- XNeobus::~XNeobus(void)
- {
- }
- int XNeobus::ToXML (CMarkup& markup)
- {
- lines.ToXML(markup);
- return 0;
- }
- int XNeobus::FromXML (CMarkup& markup)
- {
- lines.FromXML(markup);
- return 0;
- }
- CString XNeobus::FindPaths(CString station1, CString station2, int type)
- {
- CString str = "从 " + station1 + " 到 " + station2 + "rn";
- vector<XPath> paths = lines.Find(station1, station2, type);
-
- for (size_t i = 0; i < paths.size(); i++)
- str += paths[i].ToString() + "rnrn";
- if (paths.size() < 1)
- str += "没有找到!";
- return str;
- }