#include <archon/x3d/server/load.H>
Inheritance diagram for Archon::X3D::Loader::Job:
Public Member Functions | |
Job (Ref< Loader >, Uri baseUri, const vector< string > &uriList, UriType uriType, Ref< AbstractFileServer > fileServer=0) | |
virtual | ~Job () |
bool | isCompleted () |
Return true if this job is completed either successfully or with failiure. | |
void | wait () |
Wait for this job to complete either successfully or with failiure. | |
void | kill () |
Send a termination request to this job. | |
Ref< const Contents > | getContents () |
Returns null if the job is not completet yet or if it failed to load anything. | |
Protected Member Functions | |
virtual void | onCompletion () |
Called by the loading thread to indicate completion. |
You must instantiate it yourself and submit the objects through Loader::submitJob. Note that it is a reference counted object, and thus should primarily be refered to with Ref<Loader> references. You may use the class "as is" or derive it if you want to receive completion notification.
Note that protected derivation is required because RefObjectBase is a virtual base class of Utilities::Job, meaning that classes derived from Loader::Job need to be able to access the constructor of Utilities::Job.
Definition at line 193 of file load.H.
|
|
|
Returns null if the job is not completet yet or if it failed to load anything. To determine if the job is still running you must either call 'isCompleted' or 'wait' or override the onCompletion method. |
|
Send a termination request to this job. It does not wait for the thread to terminate though. |
|
Called by the loading thread to indicate completion. Override this one if you want to receive the notification. |