Free Electron
TerminalDispatch.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __terminal_TerminalDispatch_h__
8 #define __terminal_TerminalDispatch_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Abstract control of a TerminalNode
17 
18  @ingroup terminal
19 *//***************************************************************************/
20 class FE_DL_EXPORT TerminalDispatch:
21  public Dispatch,
22  public CastableAs<TerminalDispatch>,
23  virtual public ConfigI
24 {
25  public:
26 
27  TerminalDispatch(void);
28 virtual ~TerminalDispatch(void);
29 
30  //* as Dispatch
31 virtual bool call(const String &a_name,Array<Instance>& a_argv);
32 virtual bool call(const String &a_name,InstanceMap& a_argv);
33 
34  //* as ConfigI
35 virtual void configParent(sp<ConfigI> a_parent) {}
36 virtual bool configLookup(const String &a_key, Instance &a_instance);
37 virtual void configSet(const String &a_key, Instance &a_instance);
38 virtual void configSet(const String &a_key, Record &a_record,
39  const String &a_attr) {}
40 
41  private:
42 
43  TerminalNode m_terminalNode;
44  sp<Scope> m_spScope;
45  Record m_outputRecord;
46  sp<Layout> m_spSurfaceLayout;
47  Accessor< sp<Component> > m_accessorAccessible;
48 
49  Array< sp<Component> > m_lastInputs;
50 };
51 
52 } /* namespace ext */
53 } /* namespace fe */
54 
55 #endif /* __terminal_TerminalDispatch_h__ */
ConfigI Interface See Config (implementation) for the interesting details.
Definition: ConfigI.h:19
Smart pointer used with types represented by BaseType.
Definition: Instance.h:28
kernel
Definition: namespace.dox:3
The main data access class for the data system.
Definition: Accessor.h:128
Abstract control of a TerminalNode.
Definition: TerminalDispatch.h:20
Terminal control of an OperatorSurfaceI.
Definition: TerminalNode.h:20
Automatically reference-counted string container.
Definition: String.h:128
Group of named instances.
Definition: InstanceMap.h:17
Wrapper for std::vector.
Definition: Array.h:21
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192