for (int isel = 0; isel < phreeqc_rm.GetSelectedOutputCount(); isel++){ int n_user = phreeqc_rm.GetNthSelectedOutputUserNumber(isel); status = phreeqc_rm.SetCurrentSelectedOutputUserNumber(n_user); std::vector so; int col = phreeqc_rm.GetSelectedOutputColumnCount(); status = phreeqc_rm.GetSelectedOutput(so); // Process results here}