casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CorrelatorModeRow.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 CorrelatorModeRow.h
32  */
33 
34 #ifndef CorrelatorModeRow_CLASS
35 #define CorrelatorModeRow_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/Tag.h>
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
63 
64 
65 
66 
67 
69 
70 
71 
72 
73 
74 
75 
77 
78 
79 
81 
82 
83 
85 
86 
87 
88 
90 #include <alma/ASDM/NoSuchRow.h>
92 
94 //#include <alma/ASDM/TableStreamReader.h>
95 
96 /*\file CorrelatorMode.h
97  \brief Generated from model's revision "-1", branch ""
98 */
99 
100 namespace asdm {
101 
102 //class asdm::CorrelatorModeTable;
103 
104 
105 
106 class CorrelatorModeRow;
108 typedef void (CorrelatorModeRow::*CorrelatorModeAttributeFromText) (const std::string& s);
109 
119 //friend class asdm::TableStreamReader<CorrelatorModeTable, CorrelatorModeRow>;
120 
121 public:
122 
123  virtual ~CorrelatorModeRow();
124 
128  CorrelatorModeTable &getTable() const;
129 
134  bool isAdded() const;
135 
137  // Intrinsic Table Attributes //
139 
140 
141  // ===> Attribute correlatorModeId
142 
143 
144 
145 
146 
151  Tag getCorrelatorModeId() const;
152 
153 
154 
155 
156 
157 
158 
159 
160 
161  // ===> Attribute numBaseband
162 
163 
164 
165 
166 
171  int getNumBaseband() const;
172 
173 
174 
175 
183  void setNumBaseband (int numBaseband);
184 
185 
186 
187 
188 
189 
190 
191  // ===> Attribute basebandNames
192 
193 
194 
195 
196 
201  std::vector<BasebandNameMod::BasebandName > getBasebandNames() const;
202 
203 
204 
205 
213  void setBasebandNames (std::vector<BasebandNameMod::BasebandName > basebandNames);
214 
215 
216 
217 
218 
219 
220 
221  // ===> Attribute basebandConfig
222 
223 
224 
225 
226 
231  std::vector<int > getBasebandConfig() const;
232 
233 
234 
235 
243  void setBasebandConfig (std::vector<int > basebandConfig);
244 
245 
246 
247 
248 
249 
250 
251  // ===> Attribute accumMode
252 
253 
254 
255 
256 
261  AccumModeMod::AccumMode getAccumMode() const;
262 
263 
264 
265 
273  void setAccumMode (AccumModeMod::AccumMode accumMode);
274 
275 
276 
277 
278 
279 
280 
281  // ===> Attribute binMode
282 
283 
284 
285 
286 
291  int getBinMode() const;
292 
293 
294 
295 
303  void setBinMode (int binMode);
304 
305 
306 
307 
308 
309 
310 
311  // ===> Attribute numAxes
312 
313 
314 
315 
316 
321  int getNumAxes() const;
322 
323 
324 
325 
333  void setNumAxes (int numAxes);
334 
335 
336 
337 
338 
339 
340 
341  // ===> Attribute axesOrderArray
342 
343 
344 
345 
346 
351  std::vector<AxisNameMod::AxisName > getAxesOrderArray() const;
352 
353 
354 
355 
363  void setAxesOrderArray (std::vector<AxisNameMod::AxisName > axesOrderArray);
364 
365 
366 
367 
368 
369 
370 
371  // ===> Attribute filterMode
372 
373 
374 
375 
376 
381  std::vector<FilterModeMod::FilterMode > getFilterMode() const;
382 
383 
384 
385 
393  void setFilterMode (std::vector<FilterModeMod::FilterMode > filterMode);
394 
395 
396 
397 
398 
399 
400 
401  // ===> Attribute correlatorName
402 
403 
404 
405 
406 
411  CorrelatorNameMod::CorrelatorName getCorrelatorName() const;
412 
413 
414 
415 
423  void setCorrelatorName (CorrelatorNameMod::CorrelatorName correlatorName);
424 
425 
426 
427 
428 
429 
431  // Extrinsic Table Attributes //
433 
435  // Links //
437 
438 
439 
440 
464  bool compareNoAutoInc(int numBaseband, std::vector<BasebandNameMod::BasebandName > basebandNames, std::vector<int > basebandConfig, AccumModeMod::AccumMode accumMode, int binMode, int numAxes, std::vector<AxisNameMod::AxisName > axesOrderArray, std::vector<FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName);
465 
466 
467 
468 
492  bool compareRequiredValue(int numBaseband, std::vector<BasebandNameMod::BasebandName > basebandNames, std::vector<int > basebandConfig, AccumModeMod::AccumMode accumMode, int binMode, int numAxes, std::vector<AxisNameMod::AxisName > axesOrderArray, std::vector<FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName);
493 
494 
504 
505 #ifndef WITHOUT_ACS
506 
510  asdmIDL::CorrelatorModeRowIDL *toIDL() const;
511 
519  void toIDL(asdmIDL::CorrelatorModeRowIDL& x) const;
520 #endif
521 
522 #ifndef WITHOUT_ACS
523 
528  void setFromIDL (asdmIDL::CorrelatorModeRowIDL x) ;
529 #endif
530 
535  std::string toXML() const;
536 
543  void setFromXML (std::string rowDoc) ;
544 
547  // binary-deserialization material from an EndianIStream //
549 
550  std::map<std::string, CorrelatorModeAttributeFromBin> fromBinMethods;
555 void accumModeFromBin( EndianIStream& eis);
556 void binModeFromBin( EndianIStream& eis);
557 void numAxesFromBin( EndianIStream& eis);
559 void filterModeFromBin( EndianIStream& eis);
561 
562 
563 
571  static CorrelatorModeRow* fromBin(EndianIStream& eis, CorrelatorModeTable& table, const std::vector<std::string>& attributesSeq);
572 
579  void fromText(const std::string& attributeName, const std::string& t);
581 
582 private:
591 
592  // This method is used by the Table class when this row is added to the table.
593  void isAdded(bool added);
594 
595 
605 
624 
626  // Intrinsic Table Attributes //
628 
629 
630  // ===> Attribute correlatorModeId
631 
632 
633 
634  Tag correlatorModeId;
635 
636 
637 
638 
648  void setCorrelatorModeId (Tag correlatorModeId);
649 
650 
651 
652 
653  // ===> Attribute numBaseband
654 
655 
656 
658 
659 
660 
661 
662 
663 
664  // ===> Attribute basebandNames
665 
666 
667 
668  std::vector<BasebandNameMod::BasebandName > basebandNames;
669 
670 
671 
672 
673 
674 
675  // ===> Attribute basebandConfig
676 
677 
678 
679  std::vector<int > basebandConfig;
680 
681 
682 
683 
684 
685 
686  // ===> Attribute accumMode
687 
688 
689 
690  AccumModeMod::AccumMode accumMode;
691 
692 
693 
694 
695 
696 
697  // ===> Attribute binMode
698 
699 
700 
701  int binMode;
702 
703 
704 
705 
706 
707 
708  // ===> Attribute numAxes
709 
710 
711 
712  int numAxes;
713 
714 
715 
716 
717 
718 
719  // ===> Attribute axesOrderArray
720 
721 
722 
723  std::vector<AxisNameMod::AxisName > axesOrderArray;
724 
725 
726 
727 
728 
729 
730  // ===> Attribute filterMode
731 
732 
733 
734  std::vector<FilterModeMod::FilterMode > filterMode;
735 
736 
737 
738 
739 
740 
741  // ===> Attribute correlatorName
742 
743 
744 
745  CorrelatorNameMod::CorrelatorName correlatorName;
746 
747 
748 
749 
750 
752  // Extrinsic Table Attributes //
754 
756  // Links //
758 
759 
760 /*
762  // binary-deserialization material from an EndianIStream //
764  std::map<std::string, CorrelatorModeAttributeFromBin> fromBinMethods;
765 void correlatorModeIdFromBin( EndianIStream& eis);
766 void numBasebandFromBin( EndianIStream& eis);
767 void basebandNamesFromBin( EndianIStream& eis);
768 void basebandConfigFromBin( EndianIStream& eis);
769 void accumModeFromBin( EndianIStream& eis);
770 void binModeFromBin( EndianIStream& eis);
771 void numAxesFromBin( EndianIStream& eis);
772 void axesOrderArrayFromBin( EndianIStream& eis);
773 void filterModeFromBin( EndianIStream& eis);
774 void correlatorNameFromBin( EndianIStream& eis);
775 
776 
777 */
778 
780  // text-deserialization material //
782  std::map<std::string, CorrelatorModeAttributeFromText> fromTextMethods;
783 
784 void correlatorModeIdFromText (const std::string & s);
785 
786 
787 void numBasebandFromText (const std::string & s);
788 
789 
790 void basebandNamesFromText (const std::string & s);
791 
792 
793 void basebandConfigFromText (const std::string & s);
794 
795 
796 void accumModeFromText (const std::string & s);
797 
798 
799 void binModeFromText (const std::string & s);
800 
801 
802 void numAxesFromText (const std::string & s);
803 
804 
805 void axesOrderArrayFromText (const std::string & s);
806 
807 
808 void filterModeFromText (const std::string & s);
809 
810 
811 void correlatorNameFromText (const std::string & s);
812 
813 
814 
815 
820  void toBin(EndianOSStream& eoss);
821 
831 };
832 
833 } // End namespace asdm
834 
835 #endif /* CorrelatorMode_CLASS */
bool isAdded() const
Has this row been added to its table ?
The CorrelatorModeRow class is a row of a CorrelatorModeTable.
void setBinMode(int binMode)
Set binMode with the specified int.
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
CorrelatorModeTable & getTable() const
Return the table to which this row belongs.
void filterModeFromText(const std::string &s)
std::vector< AxisNameMod::AxisName > getAxesOrderArray() const
===&gt; Attribute axesOrderArray
int numBaseband
===&gt; Attribute numBaseband
int getNumBaseband() const
===&gt; Attribute numBaseband
void numAxesFromBin(EndianIStream &eis)
std::vector< BasebandNameMod::BasebandName > basebandNames
===&gt; Attribute basebandNames
CorrelatorNameMod::CorrelatorName correlatorName
===&gt; Attribute correlatorName
void basebandNamesFromText(const std::string &s)
CorrelatorModeRow(CorrelatorModeTable &table)
Create a CorrelatorModeRow.
void correlatorModeIdFromText(const std::string &s)
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, CorrelatorModeAttributeFromBin > fromBinMethods
void setFilterMode(std::vector< FilterModeMod::FilterMode > filterMode)
Set filterMode with the specified std::vector&lt;FilterModeMod::FilterMode &gt;.
bool equalByRequiredValue(CorrelatorModeRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
std::vector< AxisNameMod::AxisName > axesOrderArray
===&gt; Attribute axesOrderArray
void setNumAxes(int numAxes)
Set numAxes with the specified int.
std::vector< FilterModeMod::FilterMode > getFilterMode() const
===&gt; Attribute filterMode
void filterModeFromBin(EndianIStream &eis)
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void numAxesFromText(const std::string &s)
void binModeFromText(const std::string &s)
void correlatorNameFromBin(EndianIStream &eis)
void setBasebandNames(std::vector< BasebandNameMod::BasebandName > basebandNames)
Set basebandNames with the specified std::vector&lt;BasebandNameMod::BasebandName &gt;. ...
AccumModeMod::AccumMode accumMode
===&gt; Attribute accumMode
void numBasebandFromBin(EndianIStream &eis)
void(CorrelatorModeRow::* CorrelatorModeAttributeFromText)(const std::string &s)
std::vector< FilterModeMod::FilterMode > filterMode
===&gt; Attribute filterMode
void axesOrderArrayFromText(const std::string &s)
void basebandConfigFromText(const std::string &s)
void accumModeFromBin(EndianIStream &eis)
int binMode
===&gt; Attribute binMode
void numBasebandFromText(const std::string &s)
bool compareRequiredValue(int numBaseband, std::vector< BasebandNameMod::BasebandName > basebandNames, std::vector< int > basebandConfig, AccumModeMod::AccumMode accumMode, int binMode, int numAxes, std::vector< AxisNameMod::AxisName > axesOrderArray, std::vector< FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName)
Compare each mandatory value (i.e.
void setBasebandConfig(std::vector< int > basebandConfig)
Set basebandConfig with the specified std::vector&lt;int &gt;.
CorrelatorModeTable & table
The table to which this row belongs.
asdmIDL::CorrelatorModeRowIDL * toIDL() const
Return this row in the form of an IDL struct.
bool hasBeenAdded
Whether this row has been added to the table or not.
void binModeFromBin(EndianIStream &eis)
int getBinMode() const
===&gt; Attribute binMode
void setFromIDL(asdmIDL::CorrelatorModeRowIDL x)
Fill the values of this row from the IDL struct CorrelatorModeRowIDL.
The CorrelatorModeTable class is an Alma table.
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
void setCorrelatorModeId(Tag correlatorModeId)
Set correlatorModeId with the specified Tag value.
CorrelatorNameMod::CorrelatorName getCorrelatorName() const
===&gt; Attribute correlatorName
void axesOrderArrayFromBin(EndianIStream &eis)
void correlatorModeIdFromBin(EndianIStream &eis)
int getNumAxes() const
===&gt; Attribute numAxes
Extrinsic Table Attributes Links *bool compareNoAutoInc(int numBaseband, std::vector< BasebandNameMod::BasebandName > basebandNames, std::vector< int > basebandConfig, AccumModeMod::AccumMode accumMode, int binMode, int numAxes, std::vector< AxisNameMod::AxisName > axesOrderArray, std::vector< FilterModeMod::FilterMode > filterMode, CorrelatorNameMod::CorrelatorName correlatorName)
Compare each mandatory attribute except the autoincrementable one of this CorrelatorModeRow with the ...
void(CorrelatorModeRow::* CorrelatorModeAttributeFromBin)(EndianIStream &eis)
void basebandConfigFromBin(EndianIStream &eis)
std::vector< int > basebandConfig
===&gt; Attribute basebandConfig
void setNumBaseband(int numBaseband)
Set numBaseband with the specified int.
AccumModeMod::AccumMode getAccumMode() const
===&gt; Attribute accumMode
std::vector< int > getBasebandConfig() const
===&gt; Attribute basebandConfig
std::vector< BasebandNameMod::BasebandName > getBasebandNames() const
===&gt; Attribute basebandNames
virtual ~CorrelatorModeRow()
friend class asdm::TableStreamReader&lt;CorrelatorModeTable, CorrelatorModeRow&gt;;
*text deserialization material std::map< std::string, CorrelatorModeAttributeFromText > fromTextMethods
void setAccumMode(AccumModeMod::AccumMode accumMode)
Set accumMode with the specified AccumModeMod::AccumMode.
void setCorrelatorName(CorrelatorNameMod::CorrelatorName correlatorName)
Set correlatorName with the specified CorrelatorNameMod::CorrelatorName.
void setAxesOrderArray(std::vector< AxisNameMod::AxisName > axesOrderArray)
Set axesOrderArray with the specified std::vector&lt;AxisNameMod::AxisName &gt;.
void basebandNamesFromBin(EndianIStream &eis)
std::string toXML() const
Return this row in the form of an XML string.
void accumModeFromText(const std::string &s)
int numAxes
===&gt; Attribute numAxes
void correlatorNameFromText(const std::string &s)