Пример #1
0
        /// <summary>
        /// Read a DataSet from the given Media file.
        /// </summary>
        /// <param name="dataSetFileName">Media filename to read.</param>
        /// <returns>Imported Dataset.</returns>
        public static DataSet ReadDataSetFromFile(string dataSetFileName)
        {
            if (dataSetFileName == null)
            {
                throw new System.ArgumentNullException("dataSetFileName");
            }

            return(MDataSet.ReadFile(dataSetFileName));
        }
Пример #2
0
        /// <summary>
        /// Read a DataSet from the given Media file. The useUnVrDefinitionLookUp parameter is used to indicate whether
        /// the definition files loaded should be used to get the real VR of an attributed decoded with a VR of UN.
        /// When set true a definition lookup for the real VR will be made and the corresponding attribute value
        /// decoded usign this looked up VR.
        /// When set false no look up will be done for attributes decoded with a UN VR. The attribute values will be
        /// decoded with VR of UN.
        /// </summary>
        /// <param name="dataSetFileName">Media filename to read.</param>
        /// <param name="useUnVrDefinitionLookUp">Boolean - UN VR Definition LookUp.</param>
        /// <returns>Imported Dataset.</returns>
        public static DataSet ReadDataSetFromFile(string dataSetFileName, bool useUnVrDefinitionLookUp)
        {
            if (dataSetFileName == null)
            {
                throw new System.ArgumentNullException("dataSetFileName");
            }

            return(MDataSet.ReadFile(dataSetFileName, useUnVrDefinitionLookUp));
        }
Пример #3
0
        /// <summary>
        /// DEPRICATED - see similar method below with extra useUnVrDefinitionLookUp parameter.
        /// Read a DataSet from the given Media file.
        /// </summary>
        /// <param name="dataSetFileName">Media filename to read.</param>
        /// <returns>Imported Dataset.</returns>
        public static DataSet ReadDataSetFromFile(string dataSetFileName)
        {
            if (dataSetFileName == null)
            {
                throw new System.ArgumentNullException("dataSetFileName");
            }

            // Read File but consult definitions for any Attributes with VR UN to get real VR
            return(MDataSet.ReadFile(dataSetFileName, true));
        }