Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

AmuletRWIL.h File Reference

Go to the source code of this file.

Functions

void RWIL_Initialize ()

Variables

Am_Slot_Key Am_DIMMABLE
Am_Slot_Key Am_HOUSE
Am_Slot_Key Am_NUMBER
Am_Slot_Key Am_CUR_VALUE
Am_Slot_Key Am_READY
Am_Slot_Key Am_CHECK_IF_READY
Am_Slot_Key Am_DEV_PTR
Am_Object Am_X10_Device


Function Documentation

void RWIL_Initialize  
 

Definition at line 136 of file AmuletRWIL.cpp.

00137 {
00138   Am_Object_Advanced temp;
00139   Am_Demon_Set demons;
00140   unsigned short demon_mask;
00141   
00142   Am_X10_Device = Am_Root_Object.Create("Am_X10_Device")
00143     .Add (Am_ACTIVE, false) // consider a formula that checks to see if object is in window and sets active from that.
00144     .Add (Am_VALUE, 0)
00145     .Add (Am_DIMMABLE, true)
00146     .Add (Am_HOUSE, "")
00147     .Add (Am_NUMBER, -1)
00148     .Add (Am_CUR_VALUE, -1)
00149     .Add (Am_READY, true)
00150     .Add (Am_CHECK_IF_READY, x10_check_slot)
00151     ;
00152 
00153 
00154   temp = (Am_Object_Advanced&)Am_X10_Device;
00155  
00156   demons = temp.Get_Demons ().Copy ();
00157   demons.Set_Object_Demon (Am_CREATE_OBJ, x10_create);
00158   //  demons.Set_Object_Demon (Am_COPY_OBJ, x10_copy); // Do not really want to allow copying...  x10copy should assert
00159   demons.Set_Object_Demon (Am_DESTROY_OBJ, x10_destroy);
00160   
00161   temp.Get_Slot (Am_VALUE).Set_Demon_Bits (Am_X10_VALUE_SLOT |
00162                            Am_EAGER_DEMON);
00163 
00164   demons.Set_Slot_Demon (Am_X10_VALUE_SLOT, x10_value_slot,
00165              Am_DEMON_PER_OBJECT | Am_DEMON_ON_CHANGE);
00166   demon_mask = temp.Get_Demon_Mask ();
00167   demon_mask |= 0x0004;
00168   temp.Set_Demon_Mask (demon_mask);  
00169   temp.Set_Demons (demons);
00170 
00171   g_myRWIL = new RWIL;
00172   g_myRWIL->Start();
00173 }


Variable Documentation

Am_Slot_Key Am_CHECK_IF_READY
 

Definition at line 9 of file AmuletRWIL.h.

Am_Slot_Key Am_CUR_VALUE
 

Definition at line 7 of file AmuletRWIL.h.

Am_Slot_Key Am_DEV_PTR
 

Definition at line 10 of file AmuletRWIL.h.

Am_Slot_Key Am_DIMMABLE
 

Definition at line 4 of file AmuletRWIL.h.

Am_Slot_Key Am_HOUSE
 

Definition at line 5 of file AmuletRWIL.h.

Am_Slot_Key Am_NUMBER
 

Definition at line 6 of file AmuletRWIL.h.

Am_Slot_Key Am_READY
 

Definition at line 8 of file AmuletRWIL.h.

Am_Object Am_X10_Device
 

Definition at line 12 of file AmuletRWIL.h.


Generated on Tue Apr 9 13:53:08 2002 for RWIL - Real World Interface Library by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001