Browse Source

Made change to allow for EMEarth1D to store transmit tag info.

submodule
T-bone 8 years ago
parent
commit
ff34dba76a
1 changed files with 33 additions and 0 deletions
  1. 33
    0
      Modules/FDEM1D/include/EMEarth1D.h

+ 33
- 0
Modules/FDEM1D/include/EMEarth1D.h View File

36
 
36
 
37
 namespace Lemma {
37
 namespace Lemma {
38
 
38
 
39
+    enum TXRXMODE { TX, RX, TXRX, NOMODE };
40
+
39
     class WireAntenna;
41
     class WireAntenna;
40
     class PolygonalWireAntenna;
42
     class PolygonalWireAntenna;
41
     class FieldPoints;
43
     class FieldPoints;
131
                 return this->Receivers.get();
133
                 return this->Receivers.get();
132
             }
134
             }
133
 
135
 
136
+            /**
137
+             *  Sets the Mode enum tag.
138
+             */
139
+            void SetTxRxMode( const TXRXMODE& ModeSet ) {
140
+                this->Mode = ModeSet;
141
+            }
142
+
134
             // ====================  INQUIRY       ===========================
143
             // ====================  INQUIRY       ===========================
135
 
144
 
145
+            /**
146
+             *  Returns the name of the underlying class, similiar to Python's type
147
+             *  @return string of class name
148
+             */
149
+            virtual inline std::string GetName() const {
150
+                return CName;
151
+            }
152
+
153
+            /**
154
+             *  Returns the Mode enum tag.
155
+             */
156
+            inline TXRXMODE GetTxRxMode() const {
157
+                return Mode;
158
+            }
159
+
136
         protected:
160
         protected:
137
 
161
 
138
             // ====================  OPERATIONS    ===========================
162
             // ====================  OPERATIONS    ===========================
187
              */
211
              */
188
             int icalc;
212
             int icalc;
189
 
213
 
214
+            /**
215
+             * Convenience tag that can be used for marking whether these
216
+             *  fields are part of a transmit or receive array.
217
+             */
218
+            TXRXMODE       Mode = NOMODE;
219
+
220
+            /** ASCII string representation of the class name */
221
+            static constexpr auto CName = "EMEarth1D";
222
+
190
     }; // -----  end of class  EMEarth1D  -----
223
     }; // -----  end of class  EMEarth1D  -----
191
 
224
 
192
     /////////////////////////////////////////
225
     /////////////////////////////////////////

Loading…
Cancel
Save