Changeset 11243
- Timestamp:
- 07/01/11 16:53:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fadctrl.cc
r11221 r11243 802 802 803 803 SetMaxMemory(mem); 804 805 return T::GetCurrentState(); 806 } 807 808 int SetFileFormat(const EventImp &evt) 809 { 810 if (!CheckEventSize(evt.GetSize(), "SetFileFormat", 2)) 811 return T::kSM_FatalError; 812 813 const uint16_t fmt = evt.GetUShort(); 814 815 switch (fmt) 816 { 817 case 0: SetOutputFormat(kNone); break; 818 case 1: SetOutputFormat(kDebug); break; 819 case 2: SetOutputFormat(kFits); break; 820 case 3: SetOutputFormat(kRaw); break; 821 default: 822 T::Error("File format unknonw."); 823 return false; 824 } 804 825 805 826 return T::GetCurrentState(); … … 1524 1545 (""); 1525 1546 1547 T::AddEvent("SET_FILE_FORMAT", "S:1") 1548 (boost::bind(&StateMachineFAD::SetFileFormat, this, _1)) 1549 (""); 1550 1526 1551 1527 1552 T::AddEvent("ADD_ADDRESS", "C", FAD::kOffline)
Note:
See TracChangeset
for help on using the changeset viewer.