mySobek Home   |   Help
Skip Navigation Links.
MISSING BANNER
Code Details >> Tools >> FDA >> FDA_Report_Reader

FDA_Report_Reader Class



Class is used to read the XML report from FDA


Namespace: SobekCM.Tools.FDA
Assembly: SobekCM_Tools (in SobekCM_Tools.dll) Version: 4.10.0.0 (4.10.0)

Syntax

C#
public class FDA_Report_Reader

Remarks

This uses an XML reader to iterate through each node in a FDA report and build the associated FDA_Report_Data object.

This does not save any GLOBAL files or any files not included in the package from the DEPOSITOR. When saving the individual file information in each package, this greatly ballooned the size of each FDA report data.

Examples

Example #1 - Simple code to read a FDA report, save it to the database, and write it to another location
 Copy imageCopy
// Read the report and save it in another location
public void Read_And_Save_Report(string Source, string Destination)
{
    // Try to read the report
    FDA_Report_Data reportData = FDA_Report_Reader.Read(Source);

    // If this appears valid, save to the database
    if (reportData.Report_Type != FDA_Report_Type.INVALID)
    {
        // Try to save to the database
        if ( reportData.Save_To_Database())
        {
             // Since this was successful, delete the old and save the briefer version
             File.Delete( Source );
             FDA_Report_Writer.Write( reportData, Destination );    /// 
        }
    }      
}

Inheritance Hierarchy

System..::..Object
  SobekCM.Tools.FDA..::..FDA_Report_Reader

Constructors

  NameDescription
Public methodFDA_Report_Reader
Initializes a new instance of the FDA_Report_Reader class

Methods

  NameDescription
Public methodStatic memberRead
Reads the FDA report and creates the associated data object

Properties

  NameDescription
Public propertyLast_Exception
Get the last exception which occurred

See Also



Version 4.10.0 ( last generated Monday, March 7, 2016 )