예제 #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();
 }