Exemple #1
0
 public OWDispProperty(ITlibNode parent, ITypeInfo ti, VarDesc vd)
 {
     Parent = parent;
     _name  = ti.GetDocumentationById(vd.memid);
     _vd    = vd;
     _ti    = ti;
 }
Exemple #2
0
 public OWEnumValue(ITlibNode parent, ITypeInfo ti, VarDesc vd)
 {
     Parent = parent;
     _name  = ti.GetDocumentationById(vd.memid);
     _val   = (int)vd.varValue;
     _vd    = vd;
     _ti    = ti;
 }
Exemple #3
0
        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;
        }
Exemple #4
0
        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();
            }
        }
Exemple #5
0
 public static string GetName(this ITypeInfo ti)
 {
     return(ti.GetDocumentationById(MEMBERID_NONE));
 }
Exemple #6
0
 public void BuildIDLInto(IDLFormatter ih, bool embedded, bool islast)
 {
     ih.AppendLine("const int " + _ti.GetDocumentationById(_vd.memid) + " = " + negStr(_val) + (embedded ? (islast ? "" : ",") : ";"));
 }