Design Pattern Examples
Overview of object-oriented design patterns
cplusplus/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 <vector>
11
13{
14
32 {
34
38 virtual int NumChains() = 0;
39
47 virtual std::vector<uint32_t> GetIdcodes(int chainIndex) = 0;
48
57 virtual void EnableDevicesInDeviceChain(int chainIndex, uint32_t selectMask) = 0;
58
64 virtual void DisableDevicesInDeviceChain(int chainIndex) = 0;
65 };
66
67
68 //########################################################################
69 //########################################################################
70
71
79
80} // end namespace
81
82#endif // __FACADE_INTERFACE_H__
83
The namespace containing all Design Pattern Examples implemented in C++.
IDeviceNetworkHighLevel * CreateHighLevelInstance()
Class factory for a singleton instance of the IDeviceNetworkHighLevel interface. Part of the Facade P...
Represents a high level view of a complex network of device chains. A device chain can be thought of ...
virtual void EnableDevicesInDeviceChain(int chainIndex, uint32_t selectMask)=0
Make visible certain devices in the given device chain. The selectMask value has a bit set for each T...
virtual void DisableDevicesInDeviceChain(int chainIndex)=0
Resets the given device chain so that all devices except the TAP controller is no longer visible.
virtual std::vector< uint32_t > GetIdcodes(int chainIndex)=0
Returns a list of all idcodes from all selected devices in the given device chain.
virtual int NumChains()=0
The number of device chains available from the sub-system.