XStation.cpp
上传用户:yokoluohf
上传日期:2013-02-25
资源大小:769k
文件大小:1k
- #include "StdAfx.h"
- #include "XStation.h"
- #include "XStations.h"
- XStation::XStation()
- {
- name = "";
- position.X = 0.0;
- position.Y = 0.0;
- }
- XStation::~XStation()
- {
- }
- int XStation::Append (const CString& name)
- {
- if (!name.IsEmpty())
- lines.push_back(name);
- return (int) lines.size();
- }
- int XStation::Remove (const CString& name)
- {
- vector<CString>::iterator pos;
- pos = find(lines.begin(),lines.end(),name);
- if (pos != lines.end())
- lines.erase(pos);
- return (int) lines.size();
- }