casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpectralWindowRow.h
Go to the documentation of this file.
1 
2 /*
3  * ALMA - Atacama Large Millimeter Array
4  * (c) European Southern Observatory, 2002
5  * (c) Associated Universities Inc., 2002
6  * Copyright by ESO (in the framework of the ALMA collaboration),
7  * Copyright by AUI (in the framework of the ALMA collaboration),
8  * All rights reserved.
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free software Foundation; either
13  * version 2.1 of the License, or (at your option) any later version.
14  *
15  * This library is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY, without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with this library; if not, write to the Free Software
22  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23  * MA 02111-1307 USA
24  *
25  * Warning!
26  * --------------------------------------------------------------------
27  * | This is generated code! Do not modify this file. |
28  * | If you do, all changes will be lost when the file is re-generated. |
29  * --------------------------------------------------------------------
30  *
31  * File SpectralWindowRow.h
32  */
33 
34 #ifndef SpectralWindowRow_CLASS
35 #define SpectralWindowRow_CLASS
36 
37 #include <vector>
38 #include <string>
39 #include <set>
40 
41 #ifndef WITHOUT_ACS
42 #include <asdmIDLC.h>
43 #endif
44 
45 
46 
47 
48 
49 
50 
51 #include <alma/ASDM/Frequency.h>
52 
53 
54 
55 #include <alma/ASDM/Tag.h>
56 
57 
58 
59 
60 
61 
62 
63 
65 
66 
67 
69 
70 
71 
72 
73 
74 
75 
76 
77 
79 
80 
81 
82 
83 
85 
86 
87 
88 
89 
90 
91 
92 
93 
94 
95 
96 
97 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
113 
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 
131 
132 
133 
134 
136 #include <alma/ASDM/NoSuchRow.h>
138 
140 //#include <alma/ASDM/TableStreamReader.h>
141 
142 /*\file SpectralWindow.h
143  \brief Generated from model's revision "-1", branch ""
144 */
145 
146 namespace asdm {
147 
148 //class asdm::SpectralWindowTable;
149 
150 
151 // class asdm::SpectralWindowRow;
152 class SpectralWindowRow;
153 
154 // class asdm::SpectralWindowRow;
155 class SpectralWindowRow;
156 
157 // class asdm::DopplerRow;
158 class DopplerRow;
159 
160 
161 class SpectralWindowRow;
163 typedef void (SpectralWindowRow::*SpectralWindowAttributeFromText) (const std::string& s);
164 
174 //friend class asdm::TableStreamReader<SpectralWindowTable, SpectralWindowRow>;
175 
176 public:
177 
178  virtual ~SpectralWindowRow();
179 
183  SpectralWindowTable &getTable() const;
184 
189  bool isAdded() const;
190 
192  // Intrinsic Table Attributes //
194 
195 
196  // ===> Attribute spectralWindowId
197 
198 
199 
200 
201 
206  Tag getSpectralWindowId() const;
207 
208 
209 
210 
211 
212 
213 
214 
215 
216  // ===> Attribute basebandName
217 
218 
219 
220 
221 
226  BasebandNameMod::BasebandName getBasebandName() const;
227 
228 
229 
230 
238  void setBasebandName (BasebandNameMod::BasebandName basebandName);
239 
240 
241 
242 
243 
244 
245 
246  // ===> Attribute netSideband
247 
248 
249 
250 
251 
256  NetSidebandMod::NetSideband getNetSideband() const;
257 
258 
259 
260 
268  void setNetSideband (NetSidebandMod::NetSideband netSideband);
269 
270 
271 
272 
273 
274 
275 
276  // ===> Attribute numChan
277 
278 
279 
280 
281 
286  int getNumChan() const;
287 
288 
289 
290 
298  void setNumChan (int numChan);
299 
300 
301 
302 
303 
304 
305 
306  // ===> Attribute numBin, which is optional
307 
308 
309 
314  bool isNumBinExists() const;
315 
316 
317 
323  int getNumBin() const;
324 
325 
326 
327 
334  void setNumBin (int numBin);
335 
336 
337 
338 
342  void clearNumBin ();
343 
344 
345 
346 
347  // ===> Attribute refFreq
348 
349 
350 
351 
352 
357  Frequency getRefFreq() const;
358 
359 
360 
361 
370 
371 
372 
373 
374 
375 
376 
377  // ===> Attribute sidebandProcessingMode
378 
379 
380 
381 
382 
387  SidebandProcessingModeMod::SidebandProcessingMode getSidebandProcessingMode() const;
388 
389 
390 
391 
399  void setSidebandProcessingMode (SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode);
400 
401 
402 
403 
404 
405 
406 
407  // ===> Attribute totBandwidth
408 
409 
410 
411 
412 
417  Frequency getTotBandwidth() const;
418 
419 
420 
421 
430 
431 
432 
433 
434 
435 
436 
437  // ===> Attribute windowFunction
438 
439 
440 
441 
442 
447  WindowFunctionMod::WindowFunction getWindowFunction() const;
448 
449 
450 
451 
459  void setWindowFunction (WindowFunctionMod::WindowFunction windowFunction);
460 
461 
462 
463 
464 
465 
466 
467  // ===> Attribute chanFreqStart, which is optional
468 
469 
470 
475  bool isChanFreqStartExists() const;
476 
477 
478 
484  Frequency getChanFreqStart() const;
485 
486 
487 
488 
496 
497 
498 
499 
503  void clearChanFreqStart ();
504 
505 
506 
507 
508  // ===> Attribute chanFreqStep, which is optional
509 
510 
511 
516  bool isChanFreqStepExists() const;
517 
518 
519 
525  Frequency getChanFreqStep() const;
526 
527 
528 
529 
537 
538 
539 
540 
544  void clearChanFreqStep ();
545 
546 
547 
548 
549  // ===> Attribute chanFreqArray, which is optional
550 
551 
552 
557  bool isChanFreqArrayExists() const;
558 
559 
560 
566  std::vector<Frequency > getChanFreqArray() const;
567 
568 
569 
570 
577  void setChanFreqArray (std::vector<Frequency > chanFreqArray);
578 
579 
580 
581 
585  void clearChanFreqArray ();
586 
587 
588 
589 
590  // ===> Attribute chanWidth, which is optional
591 
592 
593 
598  bool isChanWidthExists() const;
599 
600 
601 
607  Frequency getChanWidth() const;
608 
609 
610 
611 
619 
620 
621 
622 
626  void clearChanWidth ();
627 
628 
629 
630 
631  // ===> Attribute chanWidthArray, which is optional
632 
633 
634 
639  bool isChanWidthArrayExists() const;
640 
641 
642 
648  std::vector<Frequency > getChanWidthArray() const;
649 
650 
651 
652 
659  void setChanWidthArray (std::vector<Frequency > chanWidthArray);
660 
661 
662 
663 
667  void clearChanWidthArray ();
668 
669 
670 
671 
672  // ===> Attribute correlationBit, which is optional
673 
674 
675 
680  bool isCorrelationBitExists() const;
681 
682 
683 
689  CorrelationBitMod::CorrelationBit getCorrelationBit() const;
690 
691 
692 
693 
700  void setCorrelationBit (CorrelationBitMod::CorrelationBit correlationBit);
701 
702 
703 
704 
708  void clearCorrelationBit ();
709 
710 
711 
712 
713  // ===> Attribute effectiveBw, which is optional
714 
715 
716 
721  bool isEffectiveBwExists() const;
722 
723 
724 
730  Frequency getEffectiveBw() const;
731 
732 
733 
734 
742 
743 
744 
745 
749  void clearEffectiveBw ();
750 
751 
752 
753 
754  // ===> Attribute effectiveBwArray, which is optional
755 
756 
757 
762  bool isEffectiveBwArrayExists() const;
763 
764 
765 
771  std::vector<Frequency > getEffectiveBwArray() const;
772 
773 
774 
775 
782  void setEffectiveBwArray (std::vector<Frequency > effectiveBwArray);
783 
784 
785 
786 
790  void clearEffectiveBwArray ();
791 
792 
793 
794 
795  // ===> Attribute freqGroup, which is optional
796 
797 
798 
803  bool isFreqGroupExists() const;
804 
805 
806 
812  int getFreqGroup() const;
813 
814 
815 
816 
823  void setFreqGroup (int freqGroup);
824 
825 
826 
827 
831  void clearFreqGroup ();
832 
833 
834 
835 
836  // ===> Attribute freqGroupName, which is optional
837 
838 
839 
844  bool isFreqGroupNameExists() const;
845 
846 
847 
853  std::string getFreqGroupName() const;
854 
855 
856 
857 
864  void setFreqGroupName (std::string freqGroupName);
865 
866 
867 
868 
872  void clearFreqGroupName ();
873 
874 
875 
876 
877  // ===> Attribute lineArray, which is optional
878 
879 
880 
885  bool isLineArrayExists() const;
886 
887 
888 
894  std::vector<bool > getLineArray() const;
895 
896 
897 
898 
905  void setLineArray (std::vector<bool > lineArray);
906 
907 
908 
909 
913  void clearLineArray ();
914 
915 
916 
917 
918  // ===> Attribute measFreqRef, which is optional
919 
920 
921 
926  bool isMeasFreqRefExists() const;
927 
928 
929 
935  FrequencyReferenceCodeMod::FrequencyReferenceCode getMeasFreqRef() const;
936 
937 
938 
939 
946  void setMeasFreqRef (FrequencyReferenceCodeMod::FrequencyReferenceCode measFreqRef);
947 
948 
949 
950 
954  void clearMeasFreqRef ();
955 
956 
957 
958 
959  // ===> Attribute name, which is optional
960 
961 
962 
967  bool isNameExists() const;
968 
969 
970 
976  std::string getName() const;
977 
978 
979 
980 
987  void setName (std::string name);
988 
989 
990 
991 
995  void clearName ();
996 
997 
998 
999 
1000  // ===> Attribute oversampling, which is optional
1001 
1002 
1003 
1008  bool isOversamplingExists() const;
1009 
1010 
1011 
1017  bool getOversampling() const;
1018 
1019 
1020 
1021 
1028  void setOversampling (bool oversampling);
1029 
1030 
1031 
1032 
1036  void clearOversampling ();
1037 
1038 
1039 
1040 
1041  // ===> Attribute quantization, which is optional
1042 
1043 
1044 
1049  bool isQuantizationExists() const;
1050 
1051 
1052 
1058  bool getQuantization() const;
1059 
1060 
1061 
1062 
1069  void setQuantization (bool quantization);
1070 
1071 
1072 
1073 
1077  void clearQuantization ();
1078 
1079 
1080 
1081 
1082  // ===> Attribute refChan, which is optional
1083 
1084 
1085 
1090  bool isRefChanExists() const;
1091 
1092 
1093 
1099  double getRefChan() const;
1100 
1101 
1102 
1103 
1110  void setRefChan (double refChan);
1111 
1112 
1113 
1114 
1118  void clearRefChan ();
1119 
1120 
1121 
1122 
1123  // ===> Attribute resolution, which is optional
1124 
1125 
1126 
1131  bool isResolutionExists() const;
1132 
1133 
1134 
1140  Frequency getResolution() const;
1141 
1142 
1143 
1144 
1152 
1153 
1154 
1155 
1159  void clearResolution ();
1160 
1161 
1162 
1163 
1164  // ===> Attribute resolutionArray, which is optional
1165 
1166 
1167 
1172  bool isResolutionArrayExists() const;
1173 
1174 
1175 
1181  std::vector<Frequency > getResolutionArray() const;
1182 
1183 
1184 
1185 
1192  void setResolutionArray (std::vector<Frequency > resolutionArray);
1193 
1194 
1195 
1196 
1200  void clearResolutionArray ();
1201 
1202 
1203 
1204 
1205  // ===> Attribute numAssocValues, which is optional
1206 
1207 
1208 
1213  bool isNumAssocValuesExists() const;
1214 
1215 
1216 
1222  int getNumAssocValues() const;
1223 
1224 
1225 
1226 
1233  void setNumAssocValues (int numAssocValues);
1234 
1235 
1236 
1237 
1241  void clearNumAssocValues ();
1242 
1243 
1244 
1245 
1246  // ===> Attribute assocNature, which is optional
1247 
1248 
1249 
1254  bool isAssocNatureExists() const;
1255 
1256 
1257 
1263  std::vector<SpectralResolutionTypeMod::SpectralResolutionType > getAssocNature() const;
1264 
1265 
1266 
1267 
1274  void setAssocNature (std::vector<SpectralResolutionTypeMod::SpectralResolutionType > assocNature);
1275 
1276 
1277 
1278 
1282  void clearAssocNature ();
1283 
1284 
1285 
1287  // Extrinsic Table Attributes //
1289 
1290 
1291  // ===> Attribute assocSpectralWindowId, which is optional
1292 
1293 
1294 
1299  bool isAssocSpectralWindowIdExists() const;
1300 
1301 
1302 
1308  std::vector<Tag> getAssocSpectralWindowId() const;
1309 
1310 
1311 
1312 
1319  void setAssocSpectralWindowId (std::vector<Tag> assocSpectralWindowId);
1320 
1321 
1322 
1323 
1328 
1329 
1330 
1331 
1332  // ===> Attribute dopplerId, which is optional
1333 
1334 
1335 
1340  bool isDopplerIdExists() const;
1341 
1342 
1343 
1349  int getDopplerId() const;
1350 
1351 
1352 
1353 
1360  void setDopplerId (int dopplerId);
1361 
1362 
1363 
1364 
1368  void clearDopplerId ();
1369 
1370 
1371 
1372 
1373  // ===> Attribute imageSpectralWindowId, which is optional
1374 
1375 
1376 
1381  bool isImageSpectralWindowIdExists() const;
1382 
1383 
1384 
1390  Tag getImageSpectralWindowId() const;
1391 
1392 
1393 
1394 
1402 
1403 
1404 
1405 
1410 
1411 
1412 
1414  // Links //
1416 
1417 
1418 
1426 
1427 
1428 
1429 
1430 
1435  void addAssocSpectralWindowId(Tag id);
1436 
1441  void addAssocSpectralWindowId(const std::vector<Tag> & id);
1442 
1443 
1449  const Tag getAssocSpectralWindowId(int i);
1450 
1459 
1464  std::vector<SpectralWindowRow *> getSpectralWindowsUsingAssocSpectralWindowId();
1465 
1466 
1467 
1468 
1469 
1470 
1471 
1472 
1482 
1483 
1484 
1485 
1486 
1487 
1488 
1489 
1490  // ===> Slice link from a row of SpectralWindow table to a collection of row of Doppler table.
1491 
1497  std::vector <DopplerRow *> getDopplers();
1498 
1499 
1500 
1501 
1502 
1503 
1504 
1505 
1525  bool compareNoAutoInc(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband, int numChan, Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode, Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction);
1526 
1527 
1528 
1529 
1549  bool compareRequiredValue(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband, int numChan, Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode, Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction);
1550 
1551 
1561 
1562 #ifndef WITHOUT_ACS
1563 
1567  asdmIDL::SpectralWindowRowIDL *toIDL() const;
1568 
1576  void toIDL(asdmIDL::SpectralWindowRowIDL& x) const;
1577 #endif
1578 
1579 #ifndef WITHOUT_ACS
1580 
1585  void setFromIDL (asdmIDL::SpectralWindowRowIDL x) ;
1586 #endif
1587 
1592  std::string toXML() const;
1593 
1600  void setFromXML (std::string rowDoc) ;
1601 
1604  // binary-deserialization material from an EndianIStream //
1606 
1607  std::map<std::string, SpectralWindowAttributeFromBin> fromBinMethods;
1610 void netSidebandFromBin( EndianIStream& eis);
1611 void numChanFromBin( EndianIStream& eis);
1612 void refFreqFromBin( EndianIStream& eis);
1616 
1617 void numBinFromBin( EndianIStream& eis);
1621 void chanWidthFromBin( EndianIStream& eis);
1624 void effectiveBwFromBin( EndianIStream& eis);
1626 void freqGroupFromBin( EndianIStream& eis);
1628 void lineArrayFromBin( EndianIStream& eis);
1629 void measFreqRefFromBin( EndianIStream& eis);
1630 void nameFromBin( EndianIStream& eis);
1633 void refChanFromBin( EndianIStream& eis);
1634 void resolutionFromBin( EndianIStream& eis);
1637 void assocNatureFromBin( EndianIStream& eis);
1640 void dopplerIdFromBin( EndianIStream& eis);
1641 
1642 
1650  static SpectralWindowRow* fromBin(EndianIStream& eis, SpectralWindowTable& table, const std::vector<std::string>& attributesSeq);
1651 
1658  void fromText(const std::string& attributeName, const std::string& t);
1660 
1661 private:
1670 
1671  // This method is used by the Table class when this row is added to the table.
1672  void isAdded(bool added);
1673 
1674 
1684 
1703 
1705  // Intrinsic Table Attributes //
1707 
1708 
1709  // ===> Attribute spectralWindowId
1710 
1711 
1712 
1713  Tag spectralWindowId;
1714 
1715 
1716 
1717 
1727  void setSpectralWindowId (Tag spectralWindowId);
1728 
1729 
1730 
1731 
1732  // ===> Attribute basebandName
1733 
1734 
1735 
1736  BasebandNameMod::BasebandName basebandName;
1737 
1738 
1739 
1740 
1741 
1742 
1743  // ===> Attribute netSideband
1744 
1745 
1746 
1747  NetSidebandMod::NetSideband netSideband;
1748 
1749 
1750 
1751 
1752 
1753 
1754  // ===> Attribute numChan
1755 
1756 
1757 
1758  int numChan;
1759 
1760 
1761 
1762 
1763 
1764 
1765  // ===> Attribute numBin, which is optional
1766 
1767 
1769 
1770 
1771  int numBin;
1772 
1773 
1774 
1775 
1776 
1777 
1778  // ===> Attribute refFreq
1779 
1780 
1781 
1783 
1784 
1785 
1786 
1787 
1788 
1789  // ===> Attribute sidebandProcessingMode
1790 
1791 
1792 
1793  SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode;
1794 
1795 
1796 
1797 
1798 
1799 
1800  // ===> Attribute totBandwidth
1801 
1802 
1803 
1805 
1806 
1807 
1808 
1809 
1810 
1811  // ===> Attribute windowFunction
1812 
1813 
1814 
1815  WindowFunctionMod::WindowFunction windowFunction;
1816 
1817 
1818 
1819 
1820 
1821 
1822  // ===> Attribute chanFreqStart, which is optional
1823 
1824 
1826 
1827 
1829 
1830 
1831 
1832 
1833 
1834 
1835  // ===> Attribute chanFreqStep, which is optional
1836 
1837 
1839 
1840 
1842 
1843 
1844 
1845 
1846 
1847 
1848  // ===> Attribute chanFreqArray, which is optional
1849 
1850 
1852 
1853 
1854  std::vector<Frequency > chanFreqArray;
1855 
1856 
1857 
1858 
1859 
1860 
1861  // ===> Attribute chanWidth, which is optional
1862 
1863 
1865 
1866 
1868 
1869 
1870 
1871 
1872 
1873 
1874  // ===> Attribute chanWidthArray, which is optional
1875 
1876 
1878 
1879 
1880  std::vector<Frequency > chanWidthArray;
1881 
1882 
1883 
1884 
1885 
1886 
1887  // ===> Attribute correlationBit, which is optional
1888 
1889 
1891 
1892 
1893  CorrelationBitMod::CorrelationBit correlationBit;
1894 
1895 
1896 
1897 
1898 
1899 
1900  // ===> Attribute effectiveBw, which is optional
1901 
1902 
1904 
1905 
1907 
1908 
1909 
1910 
1911 
1912 
1913  // ===> Attribute effectiveBwArray, which is optional
1914 
1915 
1917 
1918 
1919  std::vector<Frequency > effectiveBwArray;
1920 
1921 
1922 
1923 
1924 
1925 
1926  // ===> Attribute freqGroup, which is optional
1927 
1928 
1930 
1931 
1933 
1934 
1935 
1936 
1937 
1938 
1939  // ===> Attribute freqGroupName, which is optional
1940 
1941 
1943 
1944 
1945  std::string freqGroupName;
1946 
1947 
1948 
1949 
1950 
1951 
1952  // ===> Attribute lineArray, which is optional
1953 
1954 
1956 
1957 
1958  std::vector<bool > lineArray;
1959 
1960 
1961 
1962 
1963 
1964 
1965  // ===> Attribute measFreqRef, which is optional
1966 
1967 
1969 
1970 
1971  FrequencyReferenceCodeMod::FrequencyReferenceCode measFreqRef;
1972 
1973 
1974 
1975 
1976 
1977 
1978  // ===> Attribute name, which is optional
1979 
1980 
1982 
1983 
1984  std::string name;
1985 
1986 
1987 
1988 
1989 
1990 
1991  // ===> Attribute oversampling, which is optional
1992 
1993 
1995 
1996 
1998 
1999 
2000 
2001 
2002 
2003 
2004  // ===> Attribute quantization, which is optional
2005 
2006 
2008 
2009 
2011 
2012 
2013 
2014 
2015 
2016 
2017  // ===> Attribute refChan, which is optional
2018 
2019 
2021 
2022 
2023  double refChan;
2024 
2025 
2026 
2027 
2028 
2029 
2030  // ===> Attribute resolution, which is optional
2031 
2032 
2034 
2035 
2037 
2038 
2039 
2040 
2041 
2042 
2043  // ===> Attribute resolutionArray, which is optional
2044 
2045 
2047 
2048 
2049  std::vector<Frequency > resolutionArray;
2050 
2051 
2052 
2053 
2054 
2055 
2056  // ===> Attribute numAssocValues, which is optional
2057 
2058 
2060 
2061 
2063 
2064 
2065 
2066 
2067 
2068 
2069  // ===> Attribute assocNature, which is optional
2070 
2071 
2073 
2074 
2075  std::vector<SpectralResolutionTypeMod::SpectralResolutionType > assocNature;
2076 
2077 
2078 
2079 
2080 
2082  // Extrinsic Table Attributes //
2084 
2085 
2086  // ===> Attribute assocSpectralWindowId, which is optional
2087 
2088 
2089  bool assocSpectralWindowIdExists;
2090 
2091 
2092  std::vector<Tag> assocSpectralWindowId;
2093 
2094 
2095 
2096 
2097 
2098 
2099  // ===> Attribute dopplerId, which is optional
2100 
2101 
2103 
2104 
2106 
2107 
2108 
2109 
2110 
2111 
2112  // ===> Attribute imageSpectralWindowId, which is optional
2113 
2114 
2116 
2117 
2119 
2120 
2121 
2122 
2123 
2125  // Links //
2127 
2128 
2129 
2130 
2131 
2132 
2133 
2134 
2135 
2136 
2137 
2138 
2139 
2140 
2141 
2142 
2143 
2144 
2145 
2146 
2147 
2148 /*
2150  // binary-deserialization material from an EndianIStream //
2152  std::map<std::string, SpectralWindowAttributeFromBin> fromBinMethods;
2153 void spectralWindowIdFromBin( EndianIStream& eis);
2154 void basebandNameFromBin( EndianIStream& eis);
2155 void netSidebandFromBin( EndianIStream& eis);
2156 void numChanFromBin( EndianIStream& eis);
2157 void refFreqFromBin( EndianIStream& eis);
2158 void sidebandProcessingModeFromBin( EndianIStream& eis);
2159 void totBandwidthFromBin( EndianIStream& eis);
2160 void windowFunctionFromBin( EndianIStream& eis);
2161 
2162 void numBinFromBin( EndianIStream& eis);
2163 void chanFreqStartFromBin( EndianIStream& eis);
2164 void chanFreqStepFromBin( EndianIStream& eis);
2165 void chanFreqArrayFromBin( EndianIStream& eis);
2166 void chanWidthFromBin( EndianIStream& eis);
2167 void chanWidthArrayFromBin( EndianIStream& eis);
2168 void correlationBitFromBin( EndianIStream& eis);
2169 void effectiveBwFromBin( EndianIStream& eis);
2170 void effectiveBwArrayFromBin( EndianIStream& eis);
2171 void freqGroupFromBin( EndianIStream& eis);
2172 void freqGroupNameFromBin( EndianIStream& eis);
2173 void lineArrayFromBin( EndianIStream& eis);
2174 void measFreqRefFromBin( EndianIStream& eis);
2175 void nameFromBin( EndianIStream& eis);
2176 void oversamplingFromBin( EndianIStream& eis);
2177 void quantizationFromBin( EndianIStream& eis);
2178 void refChanFromBin( EndianIStream& eis);
2179 void resolutionFromBin( EndianIStream& eis);
2180 void resolutionArrayFromBin( EndianIStream& eis);
2181 void numAssocValuesFromBin( EndianIStream& eis);
2182 void assocNatureFromBin( EndianIStream& eis);
2183 void assocSpectralWindowIdFromBin( EndianIStream& eis);
2184 void imageSpectralWindowIdFromBin( EndianIStream& eis);
2185 void dopplerIdFromBin( EndianIStream& eis);
2186 
2187 */
2188 
2190  // text-deserialization material //
2192  std::map<std::string, SpectralWindowAttributeFromText> fromTextMethods;
2193 
2194 void spectralWindowIdFromText (const std::string & s);
2195 
2196 
2197 void basebandNameFromText (const std::string & s);
2198 
2199 
2200 void netSidebandFromText (const std::string & s);
2201 
2202 
2203 void numChanFromText (const std::string & s);
2204 
2205 
2206 void refFreqFromText (const std::string & s);
2207 
2208 
2209 void sidebandProcessingModeFromText (const std::string & s);
2210 
2211 
2212 void totBandwidthFromText (const std::string & s);
2213 
2214 
2215 void windowFunctionFromText (const std::string & s);
2216 
2217 
2218 
2219 void numBinFromText (const std::string & s);
2220 
2221 
2222 void chanFreqStartFromText (const std::string & s);
2223 
2224 
2225 void chanFreqStepFromText (const std::string & s);
2226 
2227 
2228 void chanFreqArrayFromText (const std::string & s);
2229 
2230 
2231 void chanWidthFromText (const std::string & s);
2232 
2233 
2234 void chanWidthArrayFromText (const std::string & s);
2235 
2236 
2237 void correlationBitFromText (const std::string & s);
2238 
2239 
2240 void effectiveBwFromText (const std::string & s);
2241 
2242 
2243 void effectiveBwArrayFromText (const std::string & s);
2244 
2245 
2246 void freqGroupFromText (const std::string & s);
2247 
2248 
2249 void freqGroupNameFromText (const std::string & s);
2250 
2251 
2252 void lineArrayFromText (const std::string & s);
2253 
2254 
2255 void measFreqRefFromText (const std::string & s);
2256 
2257 
2258 void nameFromText (const std::string & s);
2259 
2260 
2261 void oversamplingFromText (const std::string & s);
2262 
2263 
2264 void quantizationFromText (const std::string & s);
2265 
2266 
2267 void refChanFromText (const std::string & s);
2268 
2269 
2270 void resolutionFromText (const std::string & s);
2271 
2272 
2273 void resolutionArrayFromText (const std::string & s);
2274 
2275 
2276 void numAssocValuesFromText (const std::string & s);
2277 
2278 
2279 void assocNatureFromText (const std::string & s);
2280 
2281 
2282 void assocSpectralWindowIdFromText (const std::string & s);
2283 
2284 
2285 void imageSpectralWindowIdFromText (const std::string & s);
2286 
2287 
2288 void dopplerIdFromText (const std::string & s);
2289 
2290 
2291 
2296  void toBin(EndianOSStream& eoss);
2297 
2307 };
2308 
2309 } // End namespace asdm
2310 
2311 #endif /* SpectralWindow_CLASS */
bool oversamplingExists
===&gt; Attribute oversampling, which is optional
void setRefChan(double refChan)
Set refChan with the specified double.
asdmIDL::SpectralWindowRowIDL * toIDL() const
Return this row in the form of an IDL struct.
void imageSpectralWindowIdFromText(const std::string &s)
void dopplerIdFromBin(EndianIStream &eis)
bool isLineArrayExists() const
===&gt; Attribute lineArray, which is optional
Frequency getEffectiveBw() const
Get effectiveBw, which is optional.
void chanFreqStartFromBin(EndianIStream &eis)
bool isDopplerIdExists() const
===&gt; Attribute dopplerId, which is optional
bool getQuantization() const
Get quantization, which is optional.
Frequency refFreq
===&gt; Attribute refFreq
void setWindowFunction(WindowFunctionMod::WindowFunction windowFunction)
Set windowFunction with the specified WindowFunctionMod::WindowFunction.
void setLineArray(std::vector< bool > lineArray)
Set lineArray with the specified std::vector&lt;bool &gt;.
void windowFunctionFromText(const std::string &s)
void chanFreqStepFromText(const std::string &s)
void setName(std::string name)
Set name with the specified std::string.
void assocNatureFromText(const std::string &s)
void chanFreqStepFromBin(EndianIStream &eis)
bool freqGroupNameExists
===&gt; Attribute freqGroupName, which is optional
void nameFromText(const std::string &s)
bool isChanFreqArrayExists() const
===&gt; Attribute chanFreqArray, which is optional
bool measFreqRefExists
===&gt; Attribute measFreqRef, which is optional
void setSidebandProcessingMode(SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode)
Set sidebandProcessingMode with the specified SidebandProcessingModeMod::SidebandProcessingMode.
bool isFreqGroupExists() const
===&gt; Attribute freqGroup, which is optional
bool isNumBinExists() const
===&gt; Attribute numBin, which is optional
bool isChanFreqStartExists() const
===&gt; Attribute chanFreqStart, which is optional
void clearNumBin()
Mark numBin, which is an optional field, as non-existent.
void setOversampling(bool oversampling)
Set oversampling with the specified bool.
void numChanFromBin(EndianIStream &eis)
void setEffectiveBw(Frequency effectiveBw)
Set effectiveBw with the specified Frequency.
NetSidebandMod::NetSideband getNetSideband() const
===&gt; Attribute netSideband
bool isAdded() const
Has this row been added to its table ?
void basebandNameFromText(const std::string &s)
void totBandwidthFromText(const std::string &s)
bool effectiveBwArrayExists
===&gt; Attribute effectiveBwArray, which is optional
void resolutionArrayFromBin(EndianIStream &eis)
bool resolutionArrayExists
===&gt; Attribute resolutionArray, which is optional
bool chanWidthExists
===&gt; Attribute chanWidth, which is optional
bool isQuantizationExists() const
===&gt; Attribute quantization, which is optional
void setMeasFreqRef(FrequencyReferenceCodeMod::FrequencyReferenceCode measFreqRef)
Set measFreqRef with the specified FrequencyReferenceCodeMod::FrequencyReferenceCode.
Frequency getResolution() const
Get resolution, which is optional.
std::vector< bool > getLineArray() const
Get lineArray, which is optional.
bool correlationBitExists
===&gt; Attribute correlationBit, which is optional
bool imageSpectralWindowIdExists
===&gt; Attribute imageSpectralWindowId, which is optional
void measFreqRefFromText(const std::string &s)
void clearOversampling()
Mark oversampling, which is an optional field, as non-existent.
bool refChanExists
===&gt; Attribute refChan, which is optional
bool freqGroupExists
===&gt; Attribute freqGroup, which is optional
std::vector< Frequency > effectiveBwArray
bool isEffectiveBwExists() const
===&gt; Attribute effectiveBw, which is optional
void effectiveBwFromText(const std::string &s)
int getNumBin() const
Get numBin, which is optional.
bool assocNatureExists
===&gt; Attribute assocNature, which is optional
void setFreqGroupName(std::string freqGroupName)
Set freqGroupName with the specified std::string.
bool isRefChanExists() const
===&gt; Attribute refChan, which is optional
void setFreqGroup(int freqGroup)
Set freqGroup with the specified int.
void setResolution(Frequency resolution)
Set resolution with the specified Frequency.
void dopplerIdFromText(const std::string &s)
bool isChanWidthArrayExists() const
===&gt; Attribute chanWidthArray, which is optional
bool isNumAssocValuesExists() const
===&gt; Attribute numAssocValues, which is optional
bool compareNoAutoInc(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband, int numChan, Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode, Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction)
Compare each mandatory attribute except the autoincrementable one of this SpectralWindowRow with the ...
Frequency getChanWidth() const
Get chanWidth, which is optional.
void lineArrayFromText(const std::string &s)
SpectralWindowRow * getSpectralWindowUsingAssocSpectralWindowId(int i)
Returns the SpectralWindowRow linked to this row via the tag stored in assocSpectralWindowId at posit...
void clearChanWidthArray()
Mark chanWidthArray, which is an optional field, as non-existent.
CorrelationBitMod::CorrelationBit getCorrelationBit() const
Get correlationBit, which is optional.
void setChanFreqStep(Frequency chanFreqStep)
Set chanFreqStep with the specified Frequency.
void assocSpectralWindowIdFromBin(EndianIStream &eis)
Frequency getRefFreq() const
===&gt; Attribute refFreq
Frequency getTotBandwidth() const
===&gt; Attribute totBandwidth
std::vector< DopplerRow * > getDopplers()
===&gt; Slice link from a row of SpectralWindow table to a collection of row of Doppler table...
bool isAssocNatureExists() const
===&gt; Attribute assocNature, which is optional
std::string getName() const
Get name, which is optional.
void clearChanFreqArray()
Mark chanFreqArray, which is an optional field, as non-existent.
void clearChanFreqStart()
Mark chanFreqStart, which is an optional field, as non-existent.
void setBasebandName(BasebandNameMod::BasebandName basebandName)
Set basebandName with the specified BasebandNameMod::BasebandName.
void correlationBitFromText(const std::string &s)
void clearResolutionArray()
Mark resolutionArray, which is an optional field, as non-existent.
WindowFunctionMod::WindowFunction getWindowFunction() const
===&gt; Attribute windowFunction
void clearDopplerId()
Mark dopplerId, which is an optional field, as non-existent.
void chanFreqStartFromText(const std::string &s)
FrequencyReferenceCodeMod::FrequencyReferenceCode getMeasFreqRef() const
Get measFreqRef, which is optional.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void numChanFromText(const std::string &s)
void sidebandProcessingModeFromText(const std::string &s)
Frequency totBandwidth
===&gt; Attribute totBandwidth
void setNumChan(int numChan)
Set numChan with the specified int.
BasebandNameMod::BasebandName getBasebandName() const
===&gt; Attribute basebandName
void measFreqRefFromBin(EndianIStream &eis)
SidebandProcessingModeMod::SidebandProcessingMode getSidebandProcessingMode() const
===&gt; Attribute sidebandProcessingMode
bool numAssocValuesExists
===&gt; Attribute numAssocValues, which is optional
void effectiveBwArrayFromText(const std::string &s)
Tag getImageSpectralWindowId() const
Get imageSpectralWindowId, which is optional.
bool isChanFreqStepExists() const
===&gt; Attribute chanFreqStep, which is optional
int getDopplerId() const
Get dopplerId, which is optional.
void clearNumAssocValues()
Mark numAssocValues, which is an optional field, as non-existent.
void setChanWidthArray(std::vector< Frequency > chanWidthArray)
Set chanWidthArray with the specified std::vector&lt;Frequency &gt;.
void spectralWindowIdFromText(const std::string &s)
WindowFunctionMod::WindowFunction windowFunction
===&gt; Attribute windowFunction
void(SpectralWindowRow::* SpectralWindowAttributeFromBin)(EndianIStream &eis)
bool effectiveBwExists
===&gt; Attribute effectiveBw, which is optional
std::vector< Frequency > chanWidthArray
void spectralWindowIdFromBin(EndianIStream &eis)
BasebandNameMod::BasebandName basebandName
===&gt; Attribute basebandName
SpectralWindowRow(SpectralWindowTable &table)
Create a SpectralWindowRow.
void oversamplingFromText(const std::string &s)
bool equalByRequiredValue(SpectralWindowRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
void chanWidthArrayFromBin(EndianIStream &eis)
void clearFreqGroupName()
Mark freqGroupName, which is an optional field, as non-existent.
bool compareRequiredValue(BasebandNameMod::BasebandName basebandName, NetSidebandMod::NetSideband netSideband, int numChan, Frequency refFreq, SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode, Frequency totBandwidth, WindowFunctionMod::WindowFunction windowFunction)
Compare each mandatory value (i.e.
void effectiveBwArrayFromBin(EndianIStream &eis)
bool isImageSpectralWindowIdExists() const
===&gt; Attribute imageSpectralWindowId, which is optional
void setNumAssocValues(int numAssocValues)
Set numAssocValues with the specified int.
void addAssocSpectralWindowId(Tag id)
Append a Tag to assocSpectralWindowId.
void clearMeasFreqRef()
Mark measFreqRef, which is an optional field, as non-existent.
void setAssocNature(std::vector< SpectralResolutionTypeMod::SpectralResolutionType > assocNature)
Set assocNature with the specified std::vector&lt;SpectralResolutionTypeMod::SpectralResolutionType &gt;...
void basebandNameFromBin(EndianIStream &eis)
void refChanFromBin(EndianIStream &eis)
void clearQuantization()
Mark quantization, which is an optional field, as non-existent.
void numBinFromText(const std::string &s)
The SpectralWindowTable class is an Alma table.
void setCorrelationBit(CorrelationBitMod::CorrelationBit correlationBit)
Set correlationBit with the specified CorrelationBitMod::CorrelationBit.
void chanFreqArrayFromText(const std::string &s)
void imageSpectralWindowIdFromBin(EndianIStream &eis)
void numAssocValuesFromBin(EndianIStream &eis)
void clearLineArray()
Mark lineArray, which is an optional field, as non-existent.
void quantizationFromText(const std::string &s)
void quantizationFromBin(EndianIStream &eis)
void setResolutionArray(std::vector< Frequency > resolutionArray)
Set resolutionArray with the specified std::vector&lt;Frequency &gt;.
void clearImageSpectralWindowId()
Mark imageSpectralWindowId, which is an optional field, as non-existent.
void chanWidthFromBin(EndianIStream &eis)
std::vector< Frequency > chanFreqArray
bool nameExists
===&gt; Attribute name, which is optional
void clearFreqGroup()
Mark freqGroup, which is an optional field, as non-existent.
void freqGroupFromBin(EndianIStream &eis)
void refFreqFromBin(EndianIStream &eis)
double getRefChan() const
Get refChan, which is optional.
bool isEffectiveBwArrayExists() const
===&gt; Attribute effectiveBwArray, which is optional
void effectiveBwFromBin(EndianIStream &eis)
void clearAssocNature()
Mark assocNature, which is an optional field, as non-existent.
bool getOversampling() const
Get oversampling, which is optional.
std::vector< bool > lineArray
bool dopplerIdExists
===&gt; Attribute dopplerId, which is optional
void setChanFreqStart(Frequency chanFreqStart)
Set chanFreqStart with the specified Frequency.
void setImageSpectralWindowId(Tag imageSpectralWindowId)
Set imageSpectralWindowId with the specified Tag.
void setChanWidth(Frequency chanWidth)
Set chanWidth with the specified Frequency.
std::vector< SpectralResolutionTypeMod::SpectralResolutionType > getAssocNature() const
Get assocNature, which is optional.
Links *binary deserialization material from an EndianIStream std::map< std::string, SpectralWindowAttributeFromBin > fromBinMethods
void nameFromBin(EndianIStream &eis)
SidebandProcessingModeMod::SidebandProcessingMode sidebandProcessingMode
===&gt; Attribute sidebandProcessingMode
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
void setQuantization(bool quantization)
Set quantization with the specified bool.
Frequency getChanFreqStart() const
Get chanFreqStart, which is optional.
void chanWidthArrayFromText(const std::string &s)
void clearEffectiveBw()
Mark effectiveBw, which is an optional field, as non-existent.
void clearChanFreqStep()
Mark chanFreqStep, which is an optional field, as non-existent.
void setNumBin(int numBin)
Set numBin with the specified int.
void assocNatureFromBin(EndianIStream &eis)
void oversamplingFromBin(EndianIStream &eis)
void setTotBandwidth(Frequency totBandwidth)
Set totBandwidth with the specified Frequency.
std::vector< Tag > assocSpectralWindowId
CorrelationBitMod::CorrelationBit correlationBit
SpectralWindowRow * getSpectralWindowUsingImageSpectralWindowId()
imageSpectralWindowId pointer to the row in the SpectralWindow table having SpectralWindow.imageSpectralWindowId == imageSpectralWindowId
NetSidebandMod::NetSideband netSideband
===&gt; Attribute netSideband
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
void clearRefChan()
Mark refChan, which is an optional field, as non-existent.
bool chanFreqStepExists
===&gt; Attribute chanFreqStep, which is optional
std::string toXML() const
Return this row in the form of an XML string.
void clearResolution()
Mark resolution, which is an optional field, as non-existent.
std::vector< Frequency > resolutionArray
void sidebandProcessingModeFromBin(EndianIStream &eis)
void numBinFromBin(EndianIStream &eis)
void setEffectiveBwArray(std::vector< Frequency > effectiveBwArray)
Set effectiveBwArray with the specified std::vector&lt;Frequency &gt;.
std::vector< Frequency > getChanFreqArray() const
Get chanFreqArray, which is optional.
void clearEffectiveBwArray()
Mark effectiveBwArray, which is an optional field, as non-existent.
SpectralWindowTable & table
The table to which this row belongs.
bool resolutionExists
===&gt; Attribute resolution, which is optional
void lineArrayFromBin(EndianIStream &eis)
void assocSpectralWindowIdFromText(const std::string &s)
bool chanWidthArrayExists
===&gt; Attribute chanWidthArray, which is optional
void freqGroupFromText(const std::string &s)
void totBandwidthFromBin(EndianIStream &eis)
FrequencyReferenceCodeMod::FrequencyReferenceCode measFreqRef
bool isNameExists() const
===&gt; Attribute name, which is optional
void setAssocSpectralWindowId(std::vector< Tag > assocSpectralWindowId)
Set assocSpectralWindowId with the specified std::vector&lt;Tag&gt; .
bool hasBeenAdded
Whether this row has been added to the table or not.
std::vector< SpectralResolutionTypeMod::SpectralResolutionType > assocNature
void setRefFreq(Frequency refFreq)
Set refFreq with the specified Frequency.
int getNumAssocValues() const
Get numAssocValues, which is optional.
void clearName()
Mark name, which is an optional field, as non-existent.
bool lineArrayExists
===&gt; Attribute lineArray, which is optional
void freqGroupNameFromBin(EndianIStream &eis)
bool isMeasFreqRefExists() const
===&gt; Attribute measFreqRef, which is optional
void clearCorrelationBit()
Mark correlationBit, which is an optional field, as non-existent.
void setFromIDL(asdmIDL::SpectralWindowRowIDL x)
Fill the values of this row from the IDL struct SpectralWindowRowIDL.
void chanFreqArrayFromBin(EndianIStream &eis)
void clearChanWidth()
Mark chanWidth, which is an optional field, as non-existent.
void resolutionFromBin(EndianIStream &eis)
void setNetSideband(NetSidebandMod::NetSideband netSideband)
Set netSideband with the specified NetSidebandMod::NetSideband.
SpectralWindowTable & getTable() const
Return the table to which this row belongs.
std::vector< SpectralWindowRow * > getSpectralWindowsUsingAssocSpectralWindowId()
Returns the vector of SpectralWindowRow* linked to this row via the Tags stored in assocSpectralWindo...
void setChanFreqArray(std::vector< Frequency > chanFreqArray)
Set chanFreqArray with the specified std::vector&lt;Frequency &gt;.
std::vector< Frequency > getEffectiveBwArray() const
Get effectiveBwArray, which is optional.
bool isFreqGroupNameExists() const
===&gt; Attribute freqGroupName, which is optional
bool isResolutionArrayExists() const
===&gt; Attribute resolutionArray, which is optional
void numAssocValuesFromText(const std::string &s)
bool quantizationExists
===&gt; Attribute quantization, which is optional
int getNumChan() const
===&gt; Attribute numChan
void windowFunctionFromBin(EndianIStream &eis)
void freqGroupNameFromText(const std::string &s)
virtual ~SpectralWindowRow()
friend class asdm::TableStreamReader&lt;SpectralWindowTable, SpectralWindowRow&gt;;
void(SpectralWindowRow::* SpectralWindowAttributeFromText)(const std::string &s)
std::vector< Frequency > getResolutionArray() const
Get resolutionArray, which is optional.
bool chanFreqArrayExists
===&gt; Attribute chanFreqArray, which is optional
*text deserialization material std::map< std::string, SpectralWindowAttributeFromText > fromTextMethods
std::vector< Frequency > getChanWidthArray() const
Get chanWidthArray, which is optional.
void netSidebandFromText(const std::string &s)
bool numBinExists
===&gt; Attribute numBin, which is optional
Frequency getChanFreqStep() const
Get chanFreqStep, which is optional.
std::vector< Tag > getAssocSpectralWindowId() const
Get assocSpectralWindowId, which is optional.
void resolutionFromText(const std::string &s)
The Frequency class implements a quantity of frequency in hertz.
Definition: Frequency.h:53
The SpectralWindowRow class is a row of a SpectralWindowTable.
bool isOversamplingExists() const
===&gt; Attribute oversampling, which is optional
void correlationBitFromBin(EndianIStream &eis)
bool isCorrelationBitExists() const
===&gt; Attribute correlationBit, which is optional
std::string getFreqGroupName() const
Get freqGroupName, which is optional.
void setDopplerId(int dopplerId)
Set dopplerId with the specified int.
bool isChanWidthExists() const
===&gt; Attribute chanWidth, which is optional
int getFreqGroup() const
Get freqGroup, which is optional.
void chanWidthFromText(const std::string &s)
bool chanFreqStartExists
===&gt; Attribute chanFreqStart, which is optional
void clearAssocSpectralWindowId()
Mark assocSpectralWindowId, which is an optional field, as non-existent.
int numChan
===&gt; Attribute numChan
bool isResolutionExists() const
===&gt; Attribute resolution, which is optional
void setSpectralWindowId(Tag spectralWindowId)
Set spectralWindowId with the specified Tag value.
void resolutionArrayFromText(const std::string &s)
void netSidebandFromBin(EndianIStream &eis)
void refChanFromText(const std::string &s)
void refFreqFromText(const std::string &s)