/// <summary> /// Get a fixed number of ensembles starting at index from the project. /// This will open the database for the given project. It will then read /// the ensemble starting at index. /// /// The index starts with 1 in the database. /// </summary> /// <param name="project">Project to read data.</param> /// <param name="index">Start location.</param> /// <param name="size">Number of ensembles to read.</param> /// <returns>Cache with the read ensembles.</returns> public Cache <long, DataSet.Ensemble> GetEnsembles(Project project, long index, uint size) { Cache <long, DataSet.Ensemble> cache = new Cache <long, DataSet.Ensemble>(size); // Verify the project is good if (project != null) { cache = _adcpDbCodec.QueryForDataSet(project, index, size); } return(cache); }
/// <summary> /// Get the ensemble from the project. /// </summary> /// <param name="prj">Project containing the ensemble.</param> /// <param name="index">Index for the ensemble.</param> /// <returns>Ensemble for the given index within the given project.</returns> private DataSet.Ensemble GetEnsemble(Project prj, int index) { return(_adcpDbCodec.QueryForDataSet(prj, index)); }