예제 #1
0
        private string ReadAttribute(int objId, int attIndex)
        {
            HDF4Helper.DataTypeDefinitions dType = HDF4Helper.DataTypeDefinitions.DFNT_CHAR;
            int           count    = 0;
            StringBuilder attrName = new StringBuilder(256);

            HDF4Helper.SDattrinfo(objId, attIndex, attrName, out dType, out count);
            string attValue = GetAttributevalue(dType, objId, attIndex, count);

            return(attValue);
        }
예제 #2
0
        private void GetAttribute(int objId, int attIndex, out string attName, out string attValue)
        {
            attName  = "";
            attValue = "";
            StringBuilder attr_name = new StringBuilder(256);

            HDF4Helper.DataTypeDefinitions data_type;
            int data_count = 0;

            HDF4Helper.SDattrinfo(objId, attIndex, attr_name, out data_type, out data_count);
            attName  = attr_name.ToString();
            attValue = GetAttributevalue(data_type, objId, attIndex, data_count);
        }