Explorar el Código

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

submodule
T-bone hace 8 años
padre
commit
ff34dba76a
Se han modificado 1 ficheros con 33 adiciones y 0 borrados
  1. 33
    0
      Modules/FDEM1D/include/EMEarth1D.h

+ 33
- 0
Modules/FDEM1D/include/EMEarth1D.h Ver fichero

@@ -36,6 +36,8 @@
36 36
 
37 37
 namespace Lemma {
38 38
 
39
+    enum TXRXMODE { TX, RX, TXRX, NOMODE };
40
+
39 41
     class WireAntenna;
40 42
     class PolygonalWireAntenna;
41 43
     class FieldPoints;
@@ -131,8 +133,30 @@ namespace Lemma {
131 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 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 160
         protected:
137 161
 
138 162
             // ====================  OPERATIONS    ===========================
@@ -187,6 +211,15 @@ namespace Lemma {
187 211
              */
188 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 223
     }; // -----  end of class  EMEarth1D  -----
191 224
 
192 225
     /////////////////////////////////////////

Loading…
Cancelar
Guardar