public OWDispProperty(ITlibNode parent, ITypeInfo ti, VarDesc vd) { Parent = parent; _name = ti.GetDocumentationById(vd.memid); _vd = vd; _ti = ti; }
public OWEnumValue(ITlibNode parent, ITypeInfo ti, VarDesc vd) { Parent = parent; _name = ti.GetDocumentationById(vd.memid); _val = (int)vd.varValue; _vd = vd; _ti = ti; }
public OWRecordMember(ITlibNode parent, ITypeInfo ti, VarDesc vd) { Parent = parent; _name = ti.GetDocumentationById(vd.memid); var ig = new IDLGrabber(); vd.elemDescVar.tdesc.ComTypeNameAsString(ti, ig); _type = ig.Value; }
public OWModuleConst(ITlibNode parent, ITypeInfo ti, VarDesc vd, int idx) { _idx = idx; Parent = parent; var ig = new IDLGrabber(); vd.elemDescVar.tdesc.ComTypeNameAsString(ti, ig); _name = ig.Value + " " + ti.GetDocumentationById(vd.memid); _val = vd.varValue ?? ""; if (_val is string) { _val = (_val as string).ReEscape(); } }
public static string GetName(this ITypeInfo ti) { return(ti.GetDocumentationById(MEMBERID_NONE)); }
public void BuildIDLInto(IDLFormatter ih, bool embedded, bool islast) { ih.AppendLine("const int " + _ti.GetDocumentationById(_vd.memid) + " = " + negStr(_val) + (embedded ? (islast ? "" : ",") : ";")); }