コード例 #1
0
        public void Read(TProtocol iprot)
        {
            iprot.IncrementRecursionDepth();
            try
            {
                bool   isset_Limits = false;
                TField field;
                iprot.ReadStructBegin();
                while (true)
                {
                    field = iprot.ReadFieldBegin();
                    if (field.Type == TType.Stop)
                    {
                        break;
                    }
                    switch (field.ID)
                    {
                    case 2:
                        if (field.Type == TType.Struct)
                        {
                            Limits = new MInterval3();
                            Limits.Read(iprot);
                            isset_Limits = true;
                        }
                        else
                        {
                            TProtocolUtil.Skip(iprot, field.Type);
                        }
                        break;

                    default:
                        TProtocolUtil.Skip(iprot, field.Type);
                        break;
                    }
                    iprot.ReadFieldEnd();
                }
                iprot.ReadStructEnd();
                if (!isset_Limits)
                {
                    throw new TProtocolException(TProtocolException.INVALID_DATA, "required field Limits not set");
                }
            }
            finally
            {
                iprot.DecrementRecursionDepth();
            }
        }
コード例 #2
0
 public MRotationConstraint(MInterval3 Limits) : this()
 {
     this.Limits = Limits;
 }
コード例 #3
0
 public MTranslationConstraint(MTranslationConstraintType Type, MInterval3 Limits) : this()
 {
     this.Type   = Type;
     this.Limits = Limits;
 }