Esempio n. 1
0
 public FieldBaseMD(String _Name, FieldMDEnums.eDTyp _DTyp)
 {
     this.Name = new_String(_Name);
     this.DTyp = _DTyp;
     if (this.DTyp.bIn(FieldMDEnums.eDTyp.VLS, FieldMDEnums.eDTyp.Str))
     {
         this.StringMaxLength = Default.StringMaxLength;
         this.ByteMaxLength   = 2 * Default.StringMaxLength;
     }
 }
Esempio n. 2
0
 public FieldBaseMD(FieldBaseMD arg)
 //throws com.WDataSci.WDS.WDSException, Exception
 {
     this.Name            = new_String(arg.Name);
     this.DTyp            = arg.DTyp;
     this.StringMaxLength = arg.StringMaxLength;
     this.ByteMaxLength   = arg.ByteMaxLength;
     if (arg.HDF5DataType != null)
     {
         this.HDF5DataType = new WranglerHDF5().new_HDF5DataType(arg);
     }
 }
Esempio n. 3
0
 public FieldBaseMD(String Name, FieldMDEnums.eDTyp DTyp, int StringMaxLength)
 {
     this.Name = new_String(Name);
     this.DTyp = DTyp;
     if (StringMaxLength > 0)
     {
         this.StringMaxLength = StringMaxLength;
         this.ByteMaxLength   = 2 * ByteMaxLength;
     }
     else if (this.DTyp.bIn(FieldMDEnums.eDTyp.VLS, FieldMDEnums.eDTyp.Str))
     {
         this.StringMaxLength = Default.StringMaxLength;
         this.ByteMaxLength   = Default.StringMaxLength;
     }
 }
Esempio n. 4
0
 public void Copy(FieldBaseMD arg)
 //throws com.WDataSci.WDS.WDSException, Exception
 {
     this.Name            = new_String(arg.Name);
     this.DTyp            = arg.DTyp;
     this.StringMaxLength = arg.StringMaxLength;
     this.ByteMaxLength   = arg.ByteMaxLength;
     this.ByteMemLength   = arg.ByteMemLength;
     this.ByteMemOffset   = arg.ByteMemOffset;
     this.Format          = new_String(arg.Format);
     if (arg.HDF5DataType == null)
     {
         this.HDF5DataType = null;
     }
     else
     {
         this.HDF5DataType = new WranglerHDF5().new_HDF5DataType(arg);
     }
 }
Esempio n. 5
0
        public FieldBaseMD(String Name, int hclass, int hlength, int horder, int hsign)
        //throws com.WDataSci.WDS.WDSException, Exception
        {
            this.Name = new_String(Name);
            WranglerHDF5 tmp = new WranglerHDF5();

            this.HDF5DataType = tmp.new_HDF5DataType(hclass, hlength, horder, hsign);
            this.DTyp         = this.HDF5DataType.eDTyp();
            if (this.DTyp.equals(FieldMDEnums.eDTyp.Str))
            {
                this.StringMaxLength = hlength;
                this.ByteMaxLength   = 2 * hlength;
            }
            else if (this.DTyp.equals(FieldMDEnums.eDTyp.VLS))
            {
                this.StringMaxLength = Default.StringMaxLength;
                this.ByteMaxLength   = 2 * hlength;
            }
            else if (this.DTyp.equals(FieldMDEnums.eDTyp.Byt))
            {
                this.ByteMaxLength = hlength;
            }
        }