/// <summary> /// Constructor for an ECGConversion Configuration /// </summary> /// <param name="posConf">all config values that can be set</param> /// <param name="bMust">true if all values must be set</param> public ECGConfig(string[] posConf, bool bMust, CheckConfigFunction ccf) { _CheckConfig = ccf; _PossibleConfigs = (string[])posConf.Clone(); _MustValue = bMust ? _PossibleConfigs.Length : 0; }
/// <summary> /// Constructor for an ECGConversion Configuration /// </summary> /// <param name="posConf">all config values that can be set</param> /// <param name="mustValue">till which possible config value must be set.</param> public ECGConfig(string[] posConf, int mustValue, CheckConfigFunction ccf) { _CheckConfig = ccf; _PossibleConfigs = (string[])posConf.Clone(); _MustValue = mustValue; }
/// <summary> /// Constructor for an ECGConversion Configuration /// </summary> /// <param name="mustConf">values that must be set</param> /// <param name="posConf">values that can be set</param> public ECGConfig(string[] mustConf, string[] posConf, CheckConfigFunction ccf) { _CheckConfig = ccf; _PossibleConfigs = new string[(mustConf != null ? mustConf.Length : 0) + (posConf != null ? posConf.Length : 0)]; int i = 0; if (mustConf != null) { for (; i < mustConf.Length; i++) { _PossibleConfigs[i] = mustConf[i]; } } _MustValue = i; if (posConf != null) { for (int j = 0; j < posConf.Length; i++, j++) { _PossibleConfigs[i] = posConf[j]; } } }