Free Electron
Assign.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 __architecture_Assign_h__
8 #define __architecture_Assign_h__
9 
10 #include <datatool/datatool.h>
11 namespace fe
12 {
13 namespace ext
14 {
15 
16 /** Assign the value of one attribute to another attribute
17 
18  @copydoc Assign_info
19  */
20 class Assign :
21  public Initialize<Assign>,
22  public Config,
23  virtual public AssignI
24 {
25  public:
26  Assign(void);
27 virtual ~Assign(void);
28  void initialize(void);
29 
30  // AS AssignI
31 virtual void set(const String &a_lhs, const String &a_rhs);
32 
33  // AS HandlerI
34 virtual void handle(Record& r_sig);
35 
36 
37  private:
38  class Assignment
39  {
40  public:
41  VoidAccessor m_lhs;
42  VoidAccessor m_rhs;
43  };
44  std::list<Assignment> m_assignments;
45 
46 
47 };
48 
49 } /* namespace ext */
50 } /* namespace fe */
51 
52 #endif /* __architecture_Assign_h__ */
Convienience base class for specification and use of path accessors.
Definition: Config.h:19
Assign the value of one attribute to another attribute.
Definition: Assign.h:20
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Automatically reference-counted string container.
Definition: String.h:128
Reference to an instance of a Layout.
Definition: RecordSB.h:35