Design Pattern Examples
Overview of object-oriented design patterns
c/Facade_Interface.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __FACADE_INTERFACE_H__
8#define __FACADE_INTERFACE_H__
9
10#include "helpers/uintarray.h"
11
28typedef struct
29{
33 int (*NumChains)(void);
34
44 void (*GetIdcodes)(int chainIndex, UIntArray* idcodes);
45
54 void (*EnableDevicesInDeviceChain)(int chainIndex, uint32_t selectMask);
55
61 void (*DisableDevicesInDeviceChain)(int chainIndex);
63
64
67
68
76
77#endif // __FACADE_INTERFACE_H__
static void DisableDevicesInDeviceChain(int chainIndex, uint32_t deviceselectMask)
Deselect one or more devices in the given device chain so those devices are no longer visible.
static void GetIdcodes(int chainIndex, UIntArray *idcodes)
Retrieve a list of idcodes of all visible devices in the given device chain.
static void EnableDevicesInDeviceChain(int chainIndex, uint32_t deviceselectMask)
Select one or more devices in the given device chain so those devices are visible.
static int NumChains(void)
The number of device chains available from the sub-system.
IDeviceNetworkHighLevel * Facade_GetHighLevelDeviceService(void)
Retrieve a set of function pointers to the high-level device service used in the Facade Pattern examp...
Represents a high level view of a complex network of device chains. A device chain can be thought of ...
Represents an array of 32-bit unsigned integers. The data field points to a block of memory allocated...
Definition: uintarray.h:24
Declaration of the UIntArray structure and the supporting functions that represents an array of 32-bi...