/// /// Copyright (c) 2013-2015 Sensus Metering Systems /// namespace TBF.BenchControl.Generic { public interface IParamsProvider { string ComponentName { get; } /// /// Number of parameters /// int ParamsCount(); /// /// Parameter names /// /// Zero based index of the parameter string ParamName(int ix); /// /// Parameter values in string form /// /// Zero based index of the parameter string ToString(int ix); /// /// Initialize values of all parameters /// void InitializeAll(); /// /// Validates the string representation of a parameter /// /// Zero based index of the parameter /// String representation of the parameter /// Warning message in case the string is wrong or null /// true = string is OK, false = string is wrong (see 'message') bool ValidateParam(int ix, string strValue, out string message); /// /// Update the parameter from a string /// /// Zero based index of the parameter /// String representation of the parameter void UpdateParam(int ix, string strValue); void UpdateDbEntity(); } }