DelayedLoader.cpp
Go to the documentation of this file.
1 #include "DelayedLoader.hpp"
2 #include "DelayedLoadSystem.hpp"
3 
4 namespace iv
5 {
6 
8  cm( inst, this, "DelayedLoader" ),
9  inst( inst ),
10  dls( inst->getSystem< DelayedLoadSystem >() )
11 {
12  if( this->dls )
13  this->dls->loader_register( this );
14 }
15 
17 {
18  if( this->dls )
19  this->dls->loader_unregister( this );
20 }
21 
23 {
24  return this->inst;
25 }
26 
28 {
29  if( this->dls )
30  return this->dls->LoadingRunning();
31 
32  return false;
33 }
34 
35 void DelayedLoader::BlockLoading( bool block )
36 {
37  if( this->dls )
38  this->dls->BlockLoading( this, block );
39 }
40 
42 {
43  if( this->dls )
44  return this->dls->Status();
45  static DelayedLoadStatus status;
46  return status;
47 }
48 
49 }