| 1483 | } |
| 1484 | |
| 1485 | void Simulation::ListByCount( size_t nr, size_t nc, wxArrayString &list ) |
| 1486 | { |
| 1487 | VarTable &vt = Outputs(); |
| 1488 | for ( VarTable::iterator it = vt.begin(); it != vt.end(); ++it ) |
| 1489 | { |
| 1490 | size_t nrows, ncols; |
| 1491 | nrows = 1; ncols = 1; |
| 1492 | if ( it->second->Type() == VV_NUMBER ) |
| 1493 | nrows = 1; |
| 1494 | else if ( it->second->Type() == VV_ARRAY ) |
| 1495 | nrows = it->second->Length(); |
| 1496 | else if (it->second->Type() == VV_MATRIX) |
| 1497 | { |
| 1498 | nrows = it->second->Rows(); |
| 1499 | ncols = it->second->Columns(); |
| 1500 | } |
| 1501 | else if (it->second->Type() == VV_TABLE) |
| 1502 | { |
| 1503 | nrows = it->second->Rows(); |
| 1504 | ncols = it->second->Columns(); |
| 1505 | } |
| 1506 | |
| 1507 | if ( nr == nrows && nc == ncols ) |
| 1508 | list.Add( it->first ); |
| 1509 | } |
| 1510 | } |
| 1511 | |
| 1512 | |
| 1513 | wxArrayString Simulation::GetAllMessages() |