public MHUnion() { m_Type = U_None; m_StrVal = new MHOctetString(); m_ObjRefVal = new MHObjectRef(); m_ContentRefVal = new MHContentRef(); }
// Return the value, looking up any indirect ref. public void GetValue(MHContentRef reference, MHEngine engine) { if (m_fIsDirect) { reference.Copy(m_Direct); } else { MHUnion result = new MHUnion(); MHRoot pBase = engine.FindObject(m_Indirect); pBase.GetVariableValue(result, engine); result.CheckType(MHUnion.U_ContentRef); reference.Copy(result.ContentRef); } }
public virtual void SetData(MHContentRef referenced, bool fSizeGiven, int size, bool fCCGiven, int cc, MHEngine engine) { InvalidAction("SetData"); }
public bool Equal(MHContentRef cr, MHEngine engine) { return(engine.GetPathName(m_ContentRef) == engine.GetPathName(cr.m_ContentRef)); }
public void Copy(MHContentRef cr) { m_ContentRef.Copy(cr.m_ContentRef); }
public MHUnion(MHContentRef cnVal) { m_Type = U_ContentRef; m_ContentRefVal = new MHContentRef(); m_ContentRefVal.Copy(cnVal); }
public MHGenericContentRef() : base() { m_Direct = new MHContentRef(); }