casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalReductionRow.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 CalReductionRow.h
32  */
33 
34 #ifndef CalReductionRow_CLASS
35 #define CalReductionRow_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/ArrayTime.h>
52 
53 
54 
55 #include <alma/ASDM/Tag.h>
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
66 
67 
68 
69 
70 
71 
72 
73 
75 
76 
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
88 #include <alma/ASDM/NoSuchRow.h>
90 
92 //#include <alma/ASDM/TableStreamReader.h>
93 
94 /*\file CalReduction.h
95  \brief Generated from model's revision "-1", branch ""
96 */
97 
98 namespace asdm {
99 
100 //class asdm::CalReductionTable;
101 
102 
103 
104 class CalReductionRow;
106 typedef void (CalReductionRow::*CalReductionAttributeFromText) (const std::string& s);
107 
117 //friend class asdm::TableStreamReader<CalReductionTable, CalReductionRow>;
118 
119 public:
120 
121  virtual ~CalReductionRow();
122 
126  CalReductionTable &getTable() const;
127 
132  bool isAdded() const;
133 
135  // Intrinsic Table Attributes //
137 
138 
139  // ===> Attribute calReductionId
140 
141 
142 
143 
144 
149  Tag getCalReductionId() const;
150 
151 
152 
153 
154 
155 
156 
157 
158 
159  // ===> Attribute numApplied
160 
161 
162 
163 
164 
169  int getNumApplied() const;
170 
171 
172 
173 
181  void setNumApplied (int numApplied);
182 
183 
184 
185 
186 
187 
188 
189  // ===> Attribute appliedCalibrations
190 
191 
192 
193 
194 
199  std::vector<std::string > getAppliedCalibrations() const;
200 
201 
202 
203 
211  void setAppliedCalibrations (std::vector<std::string > appliedCalibrations);
212 
213 
214 
215 
216 
217 
218 
219  // ===> Attribute numParam
220 
221 
222 
223 
224 
229  int getNumParam() const;
230 
231 
232 
233 
241  void setNumParam (int numParam);
242 
243 
244 
245 
246 
247 
248 
249  // ===> Attribute paramSet
250 
251 
252 
253 
254 
259  std::vector<std::string > getParamSet() const;
260 
261 
262 
263 
271  void setParamSet (std::vector<std::string > paramSet);
272 
273 
274 
275 
276 
277 
278 
279  // ===> Attribute numInvalidConditions
280 
281 
282 
283 
284 
289  int getNumInvalidConditions() const;
290 
291 
292 
293 
302 
303 
304 
305 
306 
307 
308 
309  // ===> Attribute invalidConditions
310 
311 
312 
313 
314 
319  std::vector<InvalidatingConditionMod::InvalidatingCondition > getInvalidConditions() const;
320 
321 
322 
323 
331  void setInvalidConditions (std::vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions);
332 
333 
334 
335 
336 
337 
338 
339  // ===> Attribute timeReduced
340 
341 
342 
343 
344 
349  ArrayTime getTimeReduced() const;
350 
351 
352 
353 
362 
363 
364 
365 
366 
367 
368 
369  // ===> Attribute messages
370 
371 
372 
373 
374 
379  std::string getMessages() const;
380 
381 
382 
383 
391  void setMessages (std::string messages);
392 
393 
394 
395 
396 
397 
398 
399  // ===> Attribute software
400 
401 
402 
403 
404 
409  std::string getSoftware() const;
410 
411 
412 
413 
421  void setSoftware (std::string software);
422 
423 
424 
425 
426 
427 
428 
429  // ===> Attribute softwareVersion
430 
431 
432 
433 
434 
439  std::string getSoftwareVersion() const;
440 
441 
442 
443 
451  void setSoftwareVersion (std::string softwareVersion);
452 
453 
454 
455 
456 
457 
459  // Extrinsic Table Attributes //
461 
463  // Links //
465 
466 
467 
468 
494  bool compareNoAutoInc(int numApplied, std::vector<std::string > appliedCalibrations, int numParam, std::vector<std::string > paramSet, int numInvalidConditions, std::vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions, ArrayTime timeReduced, std::string messages, std::string software, std::string softwareVersion);
495 
496 
497 
498 
524  bool compareRequiredValue(int numApplied, std::vector<std::string > appliedCalibrations, int numParam, std::vector<std::string > paramSet, int numInvalidConditions, std::vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions, ArrayTime timeReduced, std::string messages, std::string software, std::string softwareVersion);
525 
526 
536 
537 #ifndef WITHOUT_ACS
538 
542  asdmIDL::CalReductionRowIDL *toIDL() const;
543 
551  void toIDL(asdmIDL::CalReductionRowIDL& x) const;
552 #endif
553 
554 #ifndef WITHOUT_ACS
555 
560  void setFromIDL (asdmIDL::CalReductionRowIDL x) ;
561 #endif
562 
567  std::string toXML() const;
568 
575  void setFromXML (std::string rowDoc) ;
576 
579  // binary-deserialization material from an EndianIStream //
581 
582  std::map<std::string, CalReductionAttributeFromBin> fromBinMethods;
584 void numAppliedFromBin( EndianIStream& eis);
586 void numParamFromBin( EndianIStream& eis);
587 void paramSetFromBin( EndianIStream& eis);
591 void messagesFromBin( EndianIStream& eis);
592 void softwareFromBin( EndianIStream& eis);
594 
595 
596 
604  static CalReductionRow* fromBin(EndianIStream& eis, CalReductionTable& table, const std::vector<std::string>& attributesSeq);
605 
612  void fromText(const std::string& attributeName, const std::string& t);
614 
615 private:
624 
625  // This method is used by the Table class when this row is added to the table.
626  void isAdded(bool added);
627 
628 
638 
657 
659  // Intrinsic Table Attributes //
661 
662 
663  // ===> Attribute calReductionId
664 
665 
666 
667  Tag calReductionId;
668 
669 
670 
671 
681  void setCalReductionId (Tag calReductionId);
682 
683 
684 
685 
686  // ===> Attribute numApplied
687 
688 
689 
691 
692 
693 
694 
695 
696 
697  // ===> Attribute appliedCalibrations
698 
699 
700 
701  std::vector<std::string > appliedCalibrations;
702 
703 
704 
705 
706 
707 
708  // ===> Attribute numParam
709 
710 
711 
712  int numParam;
713 
714 
715 
716 
717 
718 
719  // ===> Attribute paramSet
720 
721 
722 
723  std::vector<std::string > paramSet;
724 
725 
726 
727 
728 
729 
730  // ===> Attribute numInvalidConditions
731 
732 
733 
735 
736 
737 
738 
739 
740 
741  // ===> Attribute invalidConditions
742 
743 
744 
745  std::vector<InvalidatingConditionMod::InvalidatingCondition > invalidConditions;
746 
747 
748 
749 
750 
751 
752  // ===> Attribute timeReduced
753 
754 
755 
757 
758 
759 
760 
761 
762 
763  // ===> Attribute messages
764 
765 
766 
767  std::string messages;
768 
769 
770 
771 
772 
773 
774  // ===> Attribute software
775 
776 
777 
778  std::string software;
779 
780 
781 
782 
783 
784 
785  // ===> Attribute softwareVersion
786 
787 
788 
789  std::string softwareVersion;
790 
791 
792 
793 
794 
796  // Extrinsic Table Attributes //
798 
800  // Links //
802 
803 
804 /*
806  // binary-deserialization material from an EndianIStream //
808  std::map<std::string, CalReductionAttributeFromBin> fromBinMethods;
809 void calReductionIdFromBin( EndianIStream& eis);
810 void numAppliedFromBin( EndianIStream& eis);
811 void appliedCalibrationsFromBin( EndianIStream& eis);
812 void numParamFromBin( EndianIStream& eis);
813 void paramSetFromBin( EndianIStream& eis);
814 void numInvalidConditionsFromBin( EndianIStream& eis);
815 void invalidConditionsFromBin( EndianIStream& eis);
816 void timeReducedFromBin( EndianIStream& eis);
817 void messagesFromBin( EndianIStream& eis);
818 void softwareFromBin( EndianIStream& eis);
819 void softwareVersionFromBin( EndianIStream& eis);
820 
821 
822 */
823 
825  // text-deserialization material //
827  std::map<std::string, CalReductionAttributeFromText> fromTextMethods;
828 
829 void calReductionIdFromText (const std::string & s);
830 
831 
832 void numAppliedFromText (const std::string & s);
833 
834 
835 void appliedCalibrationsFromText (const std::string & s);
836 
837 
838 void numParamFromText (const std::string & s);
839 
840 
841 void paramSetFromText (const std::string & s);
842 
843 
844 void numInvalidConditionsFromText (const std::string & s);
845 
846 
847 void invalidConditionsFromText (const std::string & s);
848 
849 
850 void timeReducedFromText (const std::string & s);
851 
852 
853 void messagesFromText (const std::string & s);
854 
855 
856 void softwareFromText (const std::string & s);
857 
858 
859 void softwareVersionFromText (const std::string & s);
860 
861 
862 
863 
868  void toBin(EndianOSStream& eoss);
869 
879 };
880 
881 } // End namespace asdm
882 
883 #endif /* CalReduction_CLASS */
void setSoftware(std::string software)
Set software with the specified std::string.
virtual ~CalReductionRow()
friend class asdm::TableStreamReader&lt;CalReductionTable, CalReductionRow&gt;;
std::vector< InvalidatingConditionMod::InvalidatingCondition > invalidConditions
===&gt; Attribute invalidConditions
int getNumApplied() const
===&gt; Attribute numApplied
void setInvalidConditions(std::vector< InvalidatingConditionMod::InvalidatingCondition > invalidConditions)
Set invalidConditions with the specified std::vector&lt;InvalidatingConditionMod::InvalidatingCondition ...
int getNumInvalidConditions() const
===&gt; Attribute numInvalidConditions
void numAppliedFromBin(EndianIStream &eis)
void invalidConditionsFromText(const std::string &s)
void softwareVersionFromText(const std::string &s)
std::string getSoftwareVersion() const
===&gt; Attribute softwareVersion
void calReductionIdFromBin(EndianIStream &eis)
bool equalByRequiredValue(CalReductionRow *x)
Return true if all required attributes of the value part are equal to their homologues in x and false...
bool hasBeenAdded
Whether this row has been added to the table or not.
void messagesFromBin(EndianIStream &eis)
void appliedCalibrationsFromBin(EndianIStream &eis)
asdmIDL::CalReductionRowIDL * toIDL() const
Return this row in the form of an IDL struct.
Extrinsic Table Attributes Links *binary deserialization material from an EndianIStream std::map< std::string, CalReductionAttributeFromBin > fromBinMethods
void calReductionIdFromText(const std::string &s)
void invalidConditionsFromBin(EndianIStream &eis)
void setFromXML(std::string rowDoc)
Fill the values of this row from an XML string that was produced by the toXML() method.
CalReductionTable & getTable() const
Return the table to which this row belongs.
bool compareRequiredValue(int numApplied, std::vector< std::string > appliedCalibrations, int numParam, std::vector< std::string > paramSet, int numInvalidConditions, std::vector< InvalidatingConditionMod::InvalidatingCondition > invalidConditions, ArrayTime timeReduced, std::string messages, std::string software, std::string softwareVersion)
Compare each mandatory value (i.e.
std::string software
===&gt; Attribute software
void paramSetFromText(const std::string &s)
The CalReductionTable class is an Alma table.
void toBin(EndianOSStream &eoss)
Serialize this into a stream of bytes written to an EndianOSStream.
void setTimeReduced(ArrayTime timeReduced)
Set timeReduced with the specified ArrayTime.
void setNumInvalidConditions(int numInvalidConditions)
Set numInvalidConditions with the specified int.
void appliedCalibrationsFromText(const std::string &s)
Extrinsic Table Attributes Links *bool compareNoAutoInc(int numApplied, std::vector< std::string > appliedCalibrations, int numParam, std::vector< std::string > paramSet, int numInvalidConditions, std::vector< InvalidatingConditionMod::InvalidatingCondition > invalidConditions, ArrayTime timeReduced, std::string messages, std::string software, std::string softwareVersion)
Compare each mandatory attribute except the autoincrementable one of this CalReductionRow with the co...
void timeReducedFromText(const std::string &s)
void paramSetFromBin(EndianIStream &eis)
void setNumApplied(int numApplied)
Set numApplied with the specified int.
The CalReductionRow class is a row of a CalReductionTable.
void setSoftwareVersion(std::string softwareVersion)
Set softwareVersion with the specified std::string.
std::string toXML() const
Return this row in the form of an XML string.
void messagesFromText(const std::string &s)
void softwareVersionFromBin(EndianIStream &eis)
void numInvalidConditionsFromBin(EndianIStream &eis)
std::vector< std::string > getParamSet() const
===&gt; Attribute paramSet
void setParamSet(std::vector< std::string > paramSet)
Set paramSet with the specified std::vector&lt;std::string &gt;.
std::string getSoftware() const
===&gt; Attribute software
*text deserialization material std::map< std::string, CalReductionAttributeFromText > fromTextMethods
int getNumParam() const
===&gt; Attribute numParam
int numApplied
===&gt; Attribute numApplied
The ArrayTime class implements the concept of a point in time, implemented as an Interval of time sin...
Definition: ArrayTime.h:89
CalReductionTable & table
The table to which this row belongs.
void setCalReductionId(Tag calReductionId)
Set calReductionId with the specified Tag value.
CalReductionRow(CalReductionTable &table)
Create a CalReductionRow.
void setNumParam(int numParam)
Set numParam with the specified int.
std::string getMessages() const
===&gt; Attribute messages
void setMessages(std::string messages)
Set messages with the specified std::string.
std::vector< std::string > appliedCalibrations
===&gt; Attribute appliedCalibrations
void timeReducedFromBin(EndianIStream &eis)
The Tag class is an implementation of a unique index identifying a row of an ASDM table...
Definition: Tag.h:73
ArrayTime getTimeReduced() const
===&gt; Attribute timeReduced
void setFromIDL(asdmIDL::CalReductionRowIDL x)
Fill the values of this row from the IDL struct CalReductionRowIDL.
std::string softwareVersion
===&gt; Attribute softwareVersion
void numAppliedFromText(const std::string &s)
void(CalReductionRow::* CalReductionAttributeFromText)(const std::string &s)
bool isAdded() const
Has this row been added to its table ?
std::vector< InvalidatingConditionMod::InvalidatingCondition > getInvalidConditions() const
===&gt; Attribute invalidConditions
std::string messages
===&gt; Attribute messages
void(CalReductionRow::* CalReductionAttributeFromBin)(EndianIStream &eis)
void softwareFromText(const std::string &s)
void numParamFromText(const std::string &s)
void setAppliedCalibrations(std::vector< std::string > appliedCalibrations)
Set appliedCalibrations with the specified std::vector&lt;std::string &gt;.
std::vector< std::string > paramSet
===&gt; Attribute paramSet
void softwareFromBin(EndianIStream &eis)
int numParam
===&gt; Attribute numParam
void numParamFromBin(EndianIStream &eis)
void numInvalidConditionsFromText(const std::string &s)
int numInvalidConditions
===&gt; Attribute numInvalidConditions
ArrayTime timeReduced
===&gt; Attribute timeReduced
std::vector< std::string > getAppliedCalibrations() const
===&gt; Attribute appliedCalibrations