47 for (
int i = 0;
i < 3;
i++) {
68 for (
int i = 0;
i < 3;
i++) {
69 string sub =
pat.substr(3 *
i, 3);
74 m_wheel[
i] = atoi(sub.substr(0, 2).c_str());
81 for (
int i = 0;
i < 3;
i++) {
105 for (
int i = 0;
i < 3;
i++) {
123 for (
int i = 0;
i < 3;
i++) {
142 for (
int i = 0;
i < 3;
i++) {
155 s.setf(ios::right, ios::adjustfield);
156 s <<
"ID = " << setw(8) <<
p.id() <<
" "
157 <<
"quality = " << setw(2) <<
p.quality() <<
" "
158 <<
"eta = " << setw(1) <<
p.eta() << endl;
159 for (
int i = 0;
i < 3;
i++) {
160 s <<
"station = " <<
i + 1 <<
" : ";
161 for (
int j = 0;
j < 5;
j++) {
163 if (
p.m_position[
i] && (
p.m_wheel[
i] ==
j - 2))
164 pos.set(
p.m_position[
i] - 1);
179 s >>
p.m_id >>
pat >>
p.m_qual >>
p.m_eta;
181 for (
int i = 0;
i < 3;
i++) {
182 string sub =
pat.substr(3 *
i, 3);
187 p.m_wheel[
i] = atoi(sub.substr(0, 2).c_str());
188 p.m_position[
i] = atoi(sub.substr(2, 1).c_str());