Free Electron
Annotate.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_Annotate_h__
8 #define __architecture_Annotate_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /** Set a record attribute to a given record
15 
16  @copydoc Annotate_info
17  */
18 class Annotate : public Initialize<Annotate>,
19  virtual public AnnotateI
20 {
21  public:
22  Annotate(void);
23 virtual ~Annotate(void);
24  void initialize(void);
25 
26  // AS AnnotateI
27 virtual void attach(const String &attrname, Record &r_data);
28 
29  // AS HandlerI
30 virtual void handle(Record& r_sig);
31 
32  private:
33  class Annotation
34  {
35  public:
36  Record m_record;
37  String m_attrname;
38  };
39  std::list<Annotation> m_annotations;
40 };
41 
42 } /* namespace ext */
43 } /* namespace fe */
44 
45 #endif /* __architecture_Annotate_h__ */
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
Set a record attribute to a given record.
Definition: Annotate.h:18