www.pudn.com > 20065291434354190.rar > XStation.cpp
#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::iterator pos;
pos = find(lines.begin(),lines.end(),name);
if (pos != lines.end())
lines.erase(pos);
return (int) lines.size();
}