using System; using System.Collections.Generic; using System.Linq; using System.Text; using HySoft.IVRFlowEditor.IVRControl; using HySoft.IVRFlowEditor.Model; namespace HySoft.IVRFlowEditor.IVRControlUtility { /// /// 字符串操作节点 /// [IVRAttribute("CELL_STRINGOP", Model.IVRSerializerType.节点,1)] public class IVRStringop : IVRControlBase { public IVRStringop(string name) { this.Name = name; CtlProperty = new CtlIVRStringop(this); } /// /// :字符串操作方式,1去左右空格、2截取、3替换、4匹配、5合并。 /// [IVRAttribute("OpType", Model.IVRSerializerType.元素,2)] public OpType OpType { get; set; } /// /// :待操作的字符串变量名。 /// [IVRAttribute("OperateVar", Model.IVRSerializerType.元素,3)] public string OperateVar { get; set; } /// /// :存储操作结果的变量名。 /// [IVRAttribute("ResultVar", Model.IVRSerializerType.元素,4)] public string ResultVar { get; set; } /// /// :存储被替换内容的变量名。 /// [IVRAttribute("ReplaceVar", Model.IVRSerializerType.元素,5)] public string ReplaceVar { get; set; } /// /// :存储替换为内容的变量名。 /// [IVRAttribute("RepAsVar", Model.IVRSerializerType.元素,6)] public string RepAsVar { get; set; } /// /// :存储匹配内容的变量名。 /// [IVRAttribute("MatchVar", Model.IVRSerializerType.元素,7)] public string MatchVar { get; set; } /// /// :存储合并时追加字符串的变量名。 /// [IVRAttribute("AppendVar", Model.IVRSerializerType.元素,8)] public string AppendVar { get; set; } /// /// :截取的开始位置。 /// [IVRAttribute("InterceptIdx", Model.IVRSerializerType.元素,9)] public int InterceptIdx { get; set; } /// /// :截取长度。 /// [IVRAttribute("InterceptLen", Model.IVRSerializerType.元素,10)] public int InterceptLen { get; set; } /// /// :操作结束后下一节点编号,对于进行字符匹配时该字段无效。 /// [IVRAttribute("Next", Model.IVRSerializerType.元素,11, IsPosPoint = true)] public IVRControlBase Next { get; set; } /// /// :匹配为真时下一节点编号。 /// [IVRAttribute("TruePos", Model.IVRSerializerType.元素,12, IsPosPoint = true)] public IVRControlBase TruePos { get; set; } /// /// :匹配为假时下一节点编号。 /// [IVRAttribute("FalsePos", Model.IVRSerializerType.元素,13, IsPosPoint = true)] public IVRControlBase FalsePos { get; set; } } }