示例#1
0
 public MHUnion()
 {
     m_Type          = U_None;
     m_StrVal        = new MHOctetString();
     m_ObjRefVal     = new MHObjectRef();
     m_ContentRefVal = new MHContentRef();
 }
示例#2
0
 // 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);
     }
 }
示例#3
0
 public virtual void SetData(MHContentRef referenced, bool fSizeGiven, int size, bool fCCGiven, int cc, MHEngine engine)
 {
     InvalidAction("SetData");
 }
示例#4
0
 public bool Equal(MHContentRef cr, MHEngine engine)
 {
     return(engine.GetPathName(m_ContentRef) == engine.GetPathName(cr.m_ContentRef));
 }
示例#5
0
 public void Copy(MHContentRef cr)
 {
     m_ContentRef.Copy(cr.m_ContentRef);
 }
示例#6
0
 public MHUnion(MHContentRef cnVal)
 {
     m_Type          = U_ContentRef;
     m_ContentRefVal = new MHContentRef();
     m_ContentRefVal.Copy(cnVal);
 }
示例#7
0
 public MHGenericContentRef() : base()
 {
     m_Direct = new MHContentRef();
 }