wx.Build.ErrorDataReceiver Class Reference

List of all members.

Public Member Functions

 ErrorDataReceiver (IBuildAction processedAction, ErrorHandler handler, bool enableErrorObjects)
 ErrorDataReceiver (IBuildAction processedAction)
 ErrorDataReceiver (IBuildAction processedAction, ErrorHandler handler)
void OnReceiveErrorStreamData (object sender, System.Diagnostics.DataReceivedEventArgs evt)
void OnReceiveMsgEvent (object sender, wx.ProcessUtils.MsgEventArgs evt)
void OnReceiveOutputStreamData (object sender, System.Diagnostics.DataReceivedEventArgs evt)

Properties

System.Text.RegularExpressions.Regex ErrorClassifier [get, set]
System.Text.RegularExpressions.Regex FilePosPattern [get, set]
System.Text.RegularExpressions.Regex WarningClassifier [get, set]


Constructor & Destructor Documentation

wx.Build.ErrorDataReceiver.ErrorDataReceiver ( IBuildAction  processedAction,
ErrorHandler  handler 
)

Creates an instance.

Parameters:
processedAction is the action that caused the message or null if this is unknown.
handler is the receiver of all messages. null is allowed here and will tell this receiver to use the standard procedure in BuildConfig to handle error objects including logging on XML file if configured. Note, that instances created by this CTor will enable error objects.

wx.Build.ErrorDataReceiver.ErrorDataReceiver ( IBuildAction  processedAction  ) 

Creates an instance sending errors and messages to the configured error handler.

Parameters:
processedAction is the action that caused the message or null if this is unknown.

wx.Build.ErrorDataReceiver.ErrorDataReceiver ( IBuildAction  processedAction,
ErrorHandler  handler,
bool  enableErrorObjects 
)

Creates an instance.

Parameters:
processedAction is the action that caused the message or null if this is unknown.
handler is the receiver of all messages. null is allowed here and will tell this receiver to use the standard procedure in BuildConfig to handle error objects including logging on XML file if configured.
enableErrorObjects will enable the detection of file positions as error objects. Some tools throw error messages that cannot be used as format strings. In that case, the use of error objects shall be disabled.


Member Function Documentation

void wx.Build.ErrorDataReceiver.OnReceiveErrorStreamData ( object  sender,
System.Diagnostics.DataReceivedEventArgs  evt 
)

This always produces errors.

void wx.Build.ErrorDataReceiver.OnReceiveMsgEvent ( object  sender,
wx.ProcessUtils.MsgEventArgs  evt 
)

This is appropriate to create wx.Utils.MsgEventHandler.

Parameters:
sender sender of the event. Unused.
evt The event encapsulating a string and a message type.

void wx.Build.ErrorDataReceiver.OnReceiveOutputStreamData ( object  sender,
System.Diagnostics.DataReceivedEventArgs  evt 
)

This tries to classify output according to the set classifiers.


Property Documentation

System.Text.RegularExpressions.Regex wx.Build.ErrorDataReceiver.ErrorClassifier [get, set]

If a message line complies with this expression, this message will be classified as MessageType error.

System.Text.RegularExpressions.Regex wx.Build.ErrorDataReceiver.FilePosPattern [get, set]

Pattern defining print out of ErrorObject.FilePos in the received error lines. This may be null if not known. This pattern may identify the groups "file", "line", and "column".

System.Text.RegularExpressions.Regex wx.Build.ErrorDataReceiver.WarningClassifier [get, set]

If a message line complies with this expression, this will be classified as ErrorObject.MessageType warning.


The wx.NET Build System.   (c) 2009-2010 Harald Meyer auf'm Hofe