Free Electron
SourceSink.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 __field_SourceSink_h__
8 #define __field_SourceSink_h__
9 
10 #include "signal/signal.h"
11 #include "datatool/datatool.h"
12 #include "math/math.h"
13 #include "shape/shape.h"
14 namespace fe
15 {
16 namespace ext
17 {
18 
19 /** Changes local value in scalar field
20  */
21 class FE_DL_EXPORT BasicSourceSink :
22  virtual public HandlerI,
23  virtual public Config
24 {
25  public:
26  BasicSourceSink(void);
27 virtual ~BasicSourceSink(void);
28 
29  // AS HandlerI
30 virtual void handle( Record &r_sig);
31 
32  private:
33  AsParticle m_asParticle;
34  Accessor<Real> m_aConsumptionRate;
35 
36 };
37 
38 
39 } /* namespace ext */
40 } /* namespace fe */
41 
42 #endif /* __field_SourceSink_h__ */
43 
44 
Convienience base class for specification and use of path accessors.
Definition: Config.h:19
kernel
Definition: namespace.dox:3
Changes local value in scalar field.
Definition: SourceSink.h:21
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
particle in physical space
Definition: shapeAS.h:58
Reference to an instance of a Layout.
Definition: RecordSB.h:35