Source
121
121
122
122
123
123
124
124
125
125
126
126
127
127
128
128
#include "CSpectralResolutionType.h"
129
129
130
130
131
+
132
+
131
133
132
134
133
135
#include <ConversionException.h>
134
136
#include <NoSuchRow.h>
135
137
#include <IllegalAccessException.h>
136
138
137
139
#include <RowTransformer.h>
138
140
//#include <TableStreamReader.h>
139
141
140
142
/*\file SpectralWindow.h
1233
1235
1234
1236
1235
1237
1236
1238
/**
1237
1239
* Mark assocNature, which is an optional field, as non-existent.
1238
1240
*/
1239
1241
void clearAssocNature ();
1240
1242
1241
1243
1242
1244
1245
+
1246
+
// ===> Attribute numBin, which is optional
1247
+
1248
+
1249
+
1250
+
/**
1251
+
* The attribute numBin is optional. Return true if this attribute exists.
1252
+
* @return true if and only if the numBin attribute exists.
1253
+
*/
1254
+
bool isNumBinExists() const;
1255
+
1256
+
1257
+
1258
+
/**
1259
+
* Get numBin, which is optional.
1260
+
* @return numBin as int
1261
+
* @throws IllegalAccessException If numBin does not exist.
1262
+
*/
1263
+
int getNumBin() const;
1264
+
1265
+
1266
+
1267
+
1268
+
/**
1269
+
* Set numBin with the specified int.
1270
+
* @param numBin The int value to which numBin is to be set.
1271
+
1272
+
1273
+
*/
1274
+
void setNumBin (int numBin);
1275
+
1276
+
1277
+
1278
+
1279
+
/**
1280
+
* Mark numBin, which is an optional field, as non-existent.
1281
+
*/
1282
+
void clearNumBin ();
1283
+
1284
+
1285
+
1243
1286
////////////////////////////////
1244
1287
// Extrinsic Table Attributes //
1245
1288
////////////////////////////////
1246
1289
1247
1290
1248
1291
// ===> Attribute assocSpectralWindowId, which is optional
1249
1292
1250
1293
1251
1294
1252
1295
/**
1584
1627
void lineArrayFromBin( EndianIStream& eis);
1585
1628
void measFreqRefFromBin( EndianIStream& eis);
1586
1629
void nameFromBin( EndianIStream& eis);
1587
1630
void oversamplingFromBin( EndianIStream& eis);
1588
1631
void quantizationFromBin( EndianIStream& eis);
1589
1632
void refChanFromBin( EndianIStream& eis);
1590
1633
void resolutionFromBin( EndianIStream& eis);
1591
1634
void resolutionArrayFromBin( EndianIStream& eis);
1592
1635
void numAssocValuesFromBin( EndianIStream& eis);
1593
1636
void assocNatureFromBin( EndianIStream& eis);
1637
+
void numBinFromBin( EndianIStream& eis);
1594
1638
void assocSpectralWindowIdFromBin( EndianIStream& eis);
1595
1639
void imageSpectralWindowIdFromBin( EndianIStream& eis);
1596
1640
void dopplerIdFromBin( EndianIStream& eis);
1597
1641
1598
1642
1599
1643
/**
1600
1644
* Deserialize a stream of bytes read from an EndianIStream to build a PointingRow.
1601
1645
* @param eiss the EndianIStream to be read.
1602
1646
* @param table the SpectralWindowTable to which the row built by deserialization will be parented.
1603
1647
* @param attributesSeq a vector containing the names of the attributes . The elements order defines the order
2014
2058
2015
2059
bool assocNatureExists;
2016
2060
2017
2061
2018
2062
vector<SpectralResolutionTypeMod::SpectralResolutionType > assocNature;
2019
2063
2020
2064
2021
2065
2022
2066
2023
2067
2068
+
2069
+
// ===> Attribute numBin, which is optional
2070
+
2071
+
2072
+
bool numBinExists;
2073
+
2074
+
2075
+
int numBin;
2076
+
2077
+
2078
+
2079
+
2080
+
2024
2081
////////////////////////////////
2025
2082
// Extrinsic Table Attributes //
2026
2083
////////////////////////////////
2027
2084
2028
2085
2029
2086
// ===> Attribute assocSpectralWindowId, which is optional
2030
2087
2031
2088
2032
2089
bool assocSpectralWindowIdExists;
2033
2090
2115
2172
void lineArrayFromBin( EndianIStream& eis);
2116
2173
void measFreqRefFromBin( EndianIStream& eis);
2117
2174
void nameFromBin( EndianIStream& eis);
2118
2175
void oversamplingFromBin( EndianIStream& eis);
2119
2176
void quantizationFromBin( EndianIStream& eis);
2120
2177
void refChanFromBin( EndianIStream& eis);
2121
2178
void resolutionFromBin( EndianIStream& eis);
2122
2179
void resolutionArrayFromBin( EndianIStream& eis);
2123
2180
void numAssocValuesFromBin( EndianIStream& eis);
2124
2181
void assocNatureFromBin( EndianIStream& eis);
2182
+
void numBinFromBin( EndianIStream& eis);
2125
2183
void assocSpectralWindowIdFromBin( EndianIStream& eis);
2126
2184
void imageSpectralWindowIdFromBin( EndianIStream& eis);
2127
2185
void dopplerIdFromBin( EndianIStream& eis);
2128
2186
2129
2187
*/
2130
2188
2131
2189
///////////////////////////////////
2132
2190
// text-deserialization material //
2133
2191
///////////////////////////////////
2134
2192
std::map<std::string, SpectralWindowAttributeFromText> fromTextMethods;
2211
2269
2212
2270
void resolutionArrayFromText (const string & s);
2213
2271
2214
2272
2215
2273
void numAssocValuesFromText (const string & s);
2216
2274
2217
2275
2218
2276
void assocNatureFromText (const string & s);
2219
2277
2220
2278
2279
+
void numBinFromText (const string & s);
2280
+
2281
+
2221
2282
void assocSpectralWindowIdFromText (const string & s);
2222
2283
2223
2284
2224
2285
void imageSpectralWindowIdFromText (const string & s);
2225
2286
2226
2287
2227
2288
void dopplerIdFromText (const string & s);
2228
2289
2229
2290
2230
2291