bool ossim::toSimpleVector(std::vector<ossim_int32>& result, const ossimString& stringOfPoints) { std::vector<ossimString> extractedValues; bool resultFlag = extractSimpleValues(extractedValues, stringOfPoints); if(resultFlag) { ossim_uint32 idx = 0; ossim_uint32 size = (ossim_int32) extractedValues.size(); for(idx = 0; idx < size; ++idx) { result.push_back(extractedValues[idx].toInt32()); } } return resultFlag; }
bool rspf::toSimpleVector(std::vector<rspf_uint8>& result, const rspfString& stringOfPoints) { std::vector<rspfString> extractedValues; bool resultFlag = extractSimpleValues(extractedValues, stringOfPoints); if(resultFlag) { rspf_uint32 idx = 0; rspf_uint32 size = (rspf_uint32) extractedValues.size(); for(idx = 0; idx < size; ++idx) { result.push_back(extractedValues[idx].toUInt8()); } } return resultFlag; }