TSystems.RELOAD.Storage.StoredDataSpecifier.StoredDataSpecifier C# (CSharp) Method

StoredDataSpecifier() public method

Use this contructor to create a StoreDataSpecifier that requests an array Range.
public StoredDataSpecifier ( List indices, UInt32 kindId, System.UInt64 generation, UsageManager manager ) : System
indices List The array ranges you want to fetch
kindId System.UInt32 The Kind ID of the requsted Kind
generation System.UInt64 The generation_counter of this value
manager TSystems.RELOAD.Usage.UsageManager
return System
        public StoredDataSpecifier(List<ArrayRange> indices, UInt32 kindId,
          UInt64 generation, UsageManager manager) {
            if (kindId == 0)
                throw new ArgumentNullException(
                  "StoredDataSpecifier does not support null or 0 values");
            if (manager.GetDataModelfromKindId(kindId) != ReloadGlobals.DataModel.ARRAY)
                throw new ArgumentException(
                  "Use this contructor only for array data Fetch requests");
            if (indices == null)
                throw new ArgumentNullException(
                  "StoredDataSpecifier for array needs at least one ArrayRange!");

            //While multiple ranges MAY be specified, they MUST NOT overlap.
            indices.Sort();
            myManager = manager;
            this.kindId = kindId;
            this.generation = generation;
            this.indices = new List<ArrayRange>();
            this.indices.AddRange(indices);
            foreach (ArrayRange arrayRange in indices) {
                length += (UInt16)8; // 2 times an UInt32        
            }
        }

Same methods

StoredDataSpecifier::StoredDataSpecifier ( List keys, UInt32 kindId, System.UInt64 generation, UsageManager manager ) : System
StoredDataSpecifier::StoredDataSpecifier ( UInt32 kindId, System.UInt64 generation, UsageManager manager ) : System
StoredDataSpecifier::StoredDataSpecifier ( UsageManager manager ) : System
StoredDataSpecifier