Free Electron
SurfaceAttrPromoteOp.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 __operator_SurfaceAttrPromoteOp_h__
8 #define __operator_SurfaceAttrPromoteOp_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Project attributes to another rate
17 
18  @ingroup operator
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceAttrPromoteOp:
21  public OperatorSurfaceCommon,
22  public Initialize<SurfaceAttrPromoteOp>
23 {
24  public:
25  SurfaceAttrPromoteOp(void) {}
26 virtual ~SurfaceAttrPromoteOp(void) {}
27 
28  void initialize(void);
29 
30  //* As HandlerI
31 virtual void handle(Record& a_rSignal);
32 
33  private:
34 
35  enum AttrType
36  {
37  e_none,
38  e_string,
39  e_integer,
40  e_real,
41  e_spatialVector
42  };
43 
44  void copyAttribute(AttrType a_attrType,
45  sp<SurfaceAccessorI>& a_rspSourceAttr,
46  I32 a_sourceIndex,I32 a_sourceSubIndex,
47  sp<SurfaceAccessorI>& a_rspDestAttr,
48  I32 a_destIndex,I32 a_destSubIndex);
49 };
50 
51 } /* namespace ext */
52 } /* namespace fe */
53 
54 #endif /* __operator_SurfaceAttrPromoteOp_h__ */
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Partial Generic SurfaceI Implemention.
Definition: OperatorSurfaceCommon.h:20
Project attributes to another rate.
Definition: SurfaceAttrPromoteOp.h:20
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53