Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
SmartHomeState Struct Reference
Collaboration diagram for SmartHomeState:
[legend]

Public Member Functions

void log (const string &msg)
 

Public Attributes

bool lights_on = false
 
int temperature = 22
 
bool alarm_armed = false
 
string last_log
 

Detailed Description

Definition at line 62 of file driven_table_example.C.

Member Function Documentation

◆ log()

void SmartHomeState::log ( const string &  msg)
inline

Definition at line 69 of file driven_table_example.C.

References last_log, and Aleph::maps().

Member Data Documentation

◆ alarm_armed

bool SmartHomeState::alarm_armed = false

Definition at line 66 of file driven_table_example.C.

Referenced by on_arm_alarm().

◆ last_log

string SmartHomeState::last_log

Definition at line 67 of file driven_table_example.C.

Referenced by log().

◆ lights_on

bool SmartHomeState::lights_on = false

Definition at line 64 of file driven_table_example.C.

Referenced by on_lights_off(), on_lights_on(), and on_panic().

◆ temperature

int SmartHomeState::temperature = 22

Definition at line 65 of file driven_table_example.C.

Referenced by on_temp_up().


The documentation for this struct was generated from the following file: