Changeset 13165 for trunk/FACT++
- Timestamp:
- 03/22/12 11:04:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/drivectrl.cc
r12989 r13165 879 879 int Track(const EventImp &evt) 880 880 { 881 if (evt.GetSize()<=17) 882 { 883 ostringstream msg; 884 msg << "Track - Received event has " << evt.GetSize() << " bytes, but expected at least 17."; 885 T::Fatal(msg); 886 return false; 887 } 888 889 if (evt.Get<char>(evt.GetSize()-1)!='\0') 890 T::Warn("Track - It seems that the string is not zero-terminated."); 891 881 892 const double *dat = evt.Ptr<double>(); 882 893 const string name = evt.Ptr<char>(16); … … 886 897 return T::Error("Source '"+name+"' not found in list."); 887 898 888 const double &ra 889 const double &dec 899 const double &ra = it->second.first; 900 const double &dec = it->second.second; 890 901 891 902 return StartWobble(ra, dec, dat[0], dat[1], name);
Note:
See TracChangeset
for help on using the changeset viewer.