Design Pattern Examples
Overview of object-oriented design patterns
DeviceNode Struct Reference

Represents a single device. Part of the Facade Pattern example. More...

Collaboration diagram for DeviceNode:
Collaboration graph

Public Attributes

const char * Name
 Name of this device.
 
uint32_t Idcode
 The idcode for this device.
 
DeviceTypes DeviceType
 A value from the DeviceTypes enumeration identifying the type of the device.
 
bool Visible
 Whether the device is visible in the device chain.
 

Detailed Description

Represents a single device. Part of the Facade Pattern example.

Definition at line 14 of file Facade_ComplexSystem.c.

Member Data Documentation

◆ DeviceType

DeviceTypes DeviceType

A value from the DeviceTypes enumeration identifying the type of the device.

Definition at line 30 of file Facade_ComplexSystem.c.

◆ Idcode

uint32_t Idcode

The idcode for this device.

Definition at line 24 of file Facade_ComplexSystem.c.

◆ Name

const char* Name

Name of this device.

Definition at line 19 of file Facade_ComplexSystem.c.

Referenced by Visitor_Shop::PickupOrder(), Visitor_Shop::PlaceOrder(), and EntryInformation::ToString().

◆ Visible

bool Visible

Whether the device is visible in the device chain.

Definition at line 35 of file Facade_ComplexSystem.c.

Referenced by DeviceChain_ResetVisibility(), and DeviceChain_ShowHideNodes().


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