IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
Base class for data classes that support writing data to / reading from custom XML files, writing from / to database objects, etc. More...
Classes | |
class | AccummulatedReport |
Class used for accummulated error and warning reports for task composed of several steps. This is used when we want to perform the whole task even if some errors occur, and treat all errors and messages after the task is completed. More... | |
Public Member Functions | |
virtual void | Save (string filename) |
Saves contents of the msg to an xml file. More... | |
virtual void | CreateXml () |
Creates msg Xml from the current msg data and stores it in this object. More... | |
virtual void | Load (string filename) |
Loads msg data from a file containing the XML msg. More... | |
virtual void | LoadXml (string doc) |
Loads msg data from a string containing the XML msg. More... | |
virtual void | LoadXml (XmlDocument doc) |
Loads msg data from an XmlDocument containing XML msg. More... | |
abstract void | Read () |
Reads msg data from the internal XML document containing the msg. More... | |
abstract void | Read (XmlParser data) |
Read msg data from an XML document containing the msg. More... | |
virtual void | CheckConsistency (AccummulatedReport rep) |
Empty data consistency check, intended to be overridden in derived classes. More... | |
virtual void | WriteToConsole () |
Writes cntents of the msg in a human readable form to the system console. More... | |
virtual void | Write (string filename, bool append) |
Writes cntents of the msg in a human readable form to a file. More... | |
abstract XmlDocument | ToXml () |
Converts a msg to Xml and returns it. More... | |
Public Attributes | |
string | XmlString = null |
Protected Attributes | |
XmlBuilder | Data = new XmlBuilder() |
Properties | |
virtual IReporter | R [get] |
Reporter for this class. More... | |
XmlDocument | Doc [get] |
Returns the XML document representing the msg. More... | |
Private Member Functions | |
void | Write (TextWriter tw) |
Writes contents of the msg in a human readable form to a textwriter. More... | |
Private Attributes | |
IReporter | _R = null |
Base class for data classes that support writing data to / reading from custom XML files, writing from / to database objects, etc.
|
inlinevirtual |
Saves contents of the msg to an xml file.
filename | Name of the file that the msg is saved to. |
Referenced by IGTest.FindingsRtfTest.btnSaveOutput_Click(), IGTest.FindingsRtfTest.btnSaveOutputRtf_Click(), IGTest.ProgramIGTest.TestFindings(), IGTest.ProgramIGTest.TestMsgFinancialTransaction(), and IGTest.ProgramIGTest.TestMsgObservationEvent().
|
inlinevirtual |
Creates msg Xml from the current msg data and stores it in this object.
References IG.Lib.XmlUtilityBase.LoadXml().
|
inlinevirtual |
Loads msg data from a file containing the XML msg.
filename | Name of the file from which tata is read. |
References IG.Lib.XmlUtilityBase.Load().
Referenced by IGTest.FindingsRtfTest.btnImportInput_Click(), IGTest.FindingsRtfTest.btnImportInputRtf_Click(), IGTest.FindingsRtfTest.btnImportOutput_Click(), IGTest.FindingsRtfTest.btnImportOutputRtf_Click(), IGTest.ProgramIGTest.TestFindings(), IGTest.ProgramIGTest.TestMsgFinancialTransaction(), IGTest.ProgramIGTest.TestMsgObservationEvent(), IGTest.ProgramIGTest.TestMsgObservationOrder(), IGTest.ProgramIGTest.TestMsgObservationOrderNullify(), and IGTest.ProgramIGTest.TestMsgObservationOrderNullifySend().
|
inlinevirtual |
Loads msg data from a string containing the XML msg.
doc | String containing the msg in XML format. |
References IG.Lib.XmlUtilityBase.LoadXml().
Referenced by IGTest.ProgramIGTest.ReceiveSpecimenObservationOrder(), and IGTest.ProgramIGTest.TestCalypsoWs().
|
inlinevirtual |
Loads msg data from an XmlDocument containing XML msg.
filename | XMLDocument containing the msg. |
References IG.Lib.XmlUtilityBase.LoadXml().
|
pure virtual |
Reads msg data from the internal XML document containing the msg.
Implemented in IG.Lib.MsgObervationOrder, IG.Lib.DocFindings, IG.Lib.MsgFinancialTransaction, and IG.Lib.MsgObservationEvent.
Referenced by IGTest.ProgramIGTest.ReceiveSpecimenObservationOrder().
|
pure virtual |
Read msg data from an XML document containing the msg.
doc | Document containing the msg. |
Implemented in IG.Lib.MsgObervationOrder, IG.Lib.DocFindings, IG.Lib.MsgFinancialTransaction, and IG.Lib.MsgObservationEvent.
|
inlinevirtual |
Empty data consistency check, intended to be overridden in derived classes.
rep | Object where error, warning and info reports are accumulated. |
Reimplemented in IG.Lib.MsgObervationOrder, IG.Lib.DocFindings, IG.Lib.MsgFinancialTransaction, and IG.Lib.MsgObservationEvent.
References IG.Lib.ParsableXmlObject.AccummulatedReport.AddInfo().
|
inlineprivate |
Writes contents of the msg in a human readable form to a textwriter.
|
inlinevirtual |
Writes cntents of the msg in a human readable form to the system console.
Referenced by IGTest.ProgramIGTest.ReceiveSpecimenObservationOrder(), IGTest.ProgramIGTest.TestCalypsoWs(), IGTest.ProgramIGTest.TestFindings(), IGTest.ProgramIGTest.TestMsgFinancialTransaction(), IGTest.ProgramIGTest.TestMsgObservationEvent(), IGTest.ProgramIGTest.TestMsgObservationOrder(), and IGTest.ProgramIGTest.TestMsgObservationOrderNullify().
|
inlinevirtual |
Writes cntents of the msg in a human readable form to a file.
filename | File to which msg contents is written. |
append | If true then fle is appended, otherwise it is overwritten. |
|
pure virtual |
Converts a msg to Xml and returns it.
Implemented in IG.Lib.MsgObervationOrder, IG.Lib.DocFindings, IG.Lib.MsgObservationEvent, and IG.Lib.MsgFinancialTransaction.
string IG.Lib.ParsableXmlObject.XmlString = null |
|
private |
|
protected |
|
get |
Reporter for this class.
|
get |
Returns the XML document representing the msg.
Referenced by LabexBis.Calypso.SendOoNullifyToBis(), IGTest.ProgramIGTest.TestFindings(), IGTest.ProgramIGTest.TestMsgFinancialTransaction(), IGTest.ProgramIGTest.TestMsgObservationEvent(), and IGTest.ProgramIGTest.TestMsgObservationOrderNullify().