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

rwil Namespace Reference


Compounds

class  rwil::CriticalSection
 Creates a critical section. More...

class  rwil::Device
 Represents an abstract device capable of accepting messages. More...

class  rwil::EncapsulatingMessage
 Creates a message containing all the data of the old message and a new parameter "message". More...

class  rwil::FailedAfterRetryingMessage
 This message type represents a message with an error because of a failure after retrying many many times. More...

class  rwil::Message
 Generic Message class. Uses strings to represent parameters and values. Additionally keeps a timestamp. More...

class  rwil::MessageList
 Maintains a thread-safe list of messages. More...

class  rwil::Mutex
 A mutex class. More...

class  rwil::RWIL
 The object that represents the rwil. To start the system, call Start(). More...

class  rwil::ScopedMutex
 Creates a mutex that automatically Waits and Releases a mutex. More...

class  rwil::Semaphore
 Creates a semaphore. More...

class  rwil::SetRetriesMessage
 A message for setting the number of retries. More...

class  rwil::Thread
 Creates a thread which allows one instance of a thread at a time to execute. More...

class  rwil::X10Device
 This is a representation of a single X10 device in the framework. More...

class  rwil::X10Recv
 This is a representation of a single X10 device in the framework. More...


Typedefs

typedef void(* rwil_MessageList_AddCallback_t )(const list< Message > &)

Functions

std::string IntToString (int input)
 Converts an integer to a stl string. More...

int StringToInt (std::string input)
 Converts a stl string to an integer. More...


Typedef Documentation

typedef void(* rwil::rwil_MessageList_AddCallback_t)(const list<Message>&)
 

Definition at line 7 of file MessageList.h.

Referenced by rwil::MessageList::SetAddCallback().


Function Documentation

std::string rwil::IntToString int    input
 

Converts an integer to a stl string.

Definition at line 5 of file Utility.cpp.

Referenced by rwil::X10Recv::GetStatus(), rwil::X10Device::GetStatus(), rwil_interpolatebright(), rwil_setbright(), rwil::SetRetriesMessage::SetRetriesMessage(), and x10_send_message().

00006   {
00007     char buf[20];
00008     sprintf(buf,"%u", input);
00009     return std::string(buf);
00010   }

int rwil::StringToInt std::string    input
 

Converts a stl string to an integer.

Definition at line 11 of file Utility.cpp.

Referenced by rwil::X10Device::ExecuteMessage(), rwil_callback(), rwil_getbright(), and rwil::Device::Tick().

00012   {
00013     return atoi(input.c_str());
00014   }


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