| 771 | |
| 772 | |
| 773 | ControlMeasureLogData ControlMeasure::GetLogData(long dataType) const { |
| 774 | int foundIndex = 0; |
| 775 | ControlMeasureLogData::NumericLogDataType typedDataType = |
| 776 | (ControlMeasureLogData::NumericLogDataType)dataType; |
| 777 | |
| 778 | while (foundIndex < p_loggedData->size()) { |
| 779 | const ControlMeasureLogData &logData = p_loggedData->at(foundIndex); |
| 780 | if (logData.GetDataType() == typedDataType) { |
| 781 | return logData; |
| 782 | } |
| 783 | |
| 784 | foundIndex ++; |
| 785 | } |
| 786 | |
| 787 | return ControlMeasureLogData(typedDataType); |
| 788 | } |
| 789 | |
| 790 | |
| 791 | /** |