/// /// Copyright (c) 2013-2015 Sensus Metering Systems /// using System; using System.Text; namespace TBF.Boxes { interface IBox { /// /// Box name /// string Name { get; } /// /// Validity flag: true = the box value is valid /// bool Valid { get; } /// /// Clear the box value and the valid flag /// void Clear(); /// /// Convert the box value to a string representation /// string ToString(); /// /// Validate the string representation of the box value /// /// String representation of the parameter /// true = string is OK, false = string is wrong (see 'message') bool ValidateParam(string strVal); /// /// Update the parameter from a string /// /// String representation of the box value void UpdateParam(string strVal); } }