Exemplo n.º 1
0
 /// <summary>
 /// Resets the internal data.
 /// </summary>
 private void Reset()
 {
     _disposed       = false;
     _cube           = null;
     _parameters     = new OlapApiDataAreaParameters();
     _data           = null;
     _currentDataSet = -1;
     _elements       = null;
     _isActivated    = false;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates a new instance of the OlapDataArea class. This version of the constructor
        /// creates a data area that selects all elements of all dimensions of the cube.
        /// </summary>
        /// <param name="cube">The cube for which to create the data area.</param>
        public OlapDataArea(OlapCube cube)
        {
            Reset();
            _cube = cube;
            int dimensions = _cube.Dimensions.Count;

            _elements = new System.Collections.Specialized.StringCollection[dimensions];

            // select all dimension elements
            for (int i = 0; i < dimensions; i++)
            {
                _elements[i] = new System.Collections.Specialized.StringCollection();
                _elements[i].Add("*");
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of the OlapDataArea class. This version of the constructor
 /// creates a data area that selects the specified elements.
 /// </summary>
 /// <param name="cube">The cube for which to create the data area.</param>
 /// <param name="elements">An array of string collections where each array
 /// field represents a column for the dimension elements of th i-th dimension
 /// of the specified cube.</param>
 public OlapDataArea(OlapCube cube, System.Collections.Specialized.StringCollection[] elements)
 {
     Reset();
     _cube     = cube;
     _elements = elements;
 }