GetInputObject (Daemon subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<span style="font-size:120%"><b>Retrieve and object passed to the daemon.</b></span>
{{Template:Daemon:GetInputObject subtitle}}


GetInputObject is a member of the [[Daemon class]]
GetInputObject is a member of the [[Daemon class]]
Line 5: Line 5:
This shared method retrieves the input object passed by the master thread (in the second argument of the Run method) and makes it available to the daemon.
This shared method retrieves the input object passed by the master thread (in the second argument of the Run method) and makes it available to the daemon.


==GetInputObject Syntax==
==Syntax==
<pre>
{{Template:Daemon:GetInputObject syntax}}
%(Daemon):GetInputObject(%inputObj)
===Syntax terms===
</pre>
 
==Syntax Terms==
<dl>
<dl>
<dt>%(Daemon)  
<dt>%(Daemon)  
Line 18: Line 15:
</dl>
</dl>


==Usage Notes==
==Usage notes==
<ul>
<ul>
   
   
Line 27: Line 24:




[[Category:Daemon methods|GetInputObject]]
==See also==
{{Template:Daemon:GetInputObject footer}}

Revision as of 04:37, 7 February 2011

Retrieve input object passed by master thread (Daemon class)


GetInputObject is a member of the Daemon class

This shared method retrieves the input object passed by the master thread (in the second argument of the Run method) and makes it available to the daemon.

Syntax

%(Daemon):GetInputObject( object)

Syntax terms

%(Daemon)
The class name in parentheses denotes a shared method. Specifying %(Daemon): is not the only way to invoke the method (see Daemon class.).
%inputObj
The object passed to the daemon method object in the last Run method invocation. %inputObj must be deep copyable, as described in Copying objects.

Usage notes

  • GetInputObject may not be issued on a master thread.
  • If the input object passed by the Run method does not match the %inputObj argument of GetInputObject, the request containing GetInputObject is cancelled.
  • GetInputObject sets its argument to null if no object or a null object is passed by Run, and subsequent references to that object cancel the request.


See also