00001 #include "ScanRequest.h"
00002 #include "CalibrationController.h"
00003 #include "RequestException.h"
00004 #include "Sct/SctNames.h"
00005 #include "Sct/BugReport.h"
00006
00007 namespace SctCalibrationController {
00008 namespace Ipc {
00009
00010 MinimalScanRequest::MinimalScanRequest() :
00011 m_clockByTwo(false),
00012 m_width(512),
00013 m_configureModules(true) {
00014 };
00015
00016 CORBA::Boolean MinimalScanRequest::clockByTwoNice() {
00017 return m_clockByTwo;
00018 }
00019
00020 CORBA::Long MinimalScanRequest::widthNice() {
00021 return m_width;
00022 }
00023
00024 void MinimalScanRequest::setWidthNice(CORBA::Long value) {
00025 m_width=value;
00026 }
00027
00028 void MinimalScanRequest::setClockByTwoNice(CORBA::Boolean value) {
00029 m_clockByTwo=value;
00030 }
00031
00032 CORBA::Boolean MinimalScanRequest::configureModulesNice(){
00033 return m_configureModules;
00034 }
00035
00036 void MinimalScanRequest::setConfigureModulesNice(CORBA::Boolean val){
00037 m_configureModules=val;
00038 }
00039
00040 CORBA::Long MinimalScanRequest::delayNice(){
00041 return 1;
00042 }
00043
00044 Sct_SctApi::Scan_ptr MinimalScanRequest::getScanNice(){
00045
00046 return Sct_SctApi::Scan::_duplicate(m_scan);
00047 }
00048
00049 void MinimalScanRequest::setScanNice(Sct_SctApi::Scan_ptr scan){
00050 m_scan=Sct_SctApi::Scan::_duplicate(scan);
00051 }
00052
00053 CORBA::Boolean MinimalScanRequest::isRawNice(){
00054 return false;
00055 }
00056
00057
00058
00060
00061 ScanRequestImpl::ScanRequestImpl() : IPCObject<POA_Sct_CalibrationController::ScanRequest>() {
00062 }
00063
00064
00065 CORBA::Boolean ScanRequestImpl::isRawCorba() {
00066 return isRawNice();
00067 }
00068
00069 CORBA::Boolean ScanRequestImpl::clockByTwoCorba() {
00070 return clockByTwoNice();
00071 }
00072
00073
00074 CORBA::Long ScanRequestImpl::widthCorba() {
00075 return widthNice();
00076 }
00077
00078 void ScanRequestImpl::setWidthCorba(CORBA::Long value) {
00079 setWidthNice(value);
00080 }
00081
00082 void ScanRequestImpl::setClockByTwoCorba(CORBA::Boolean value) {
00083 setClockByTwoNice(value);
00084 }
00085
00086 CORBA::Boolean ScanRequestImpl::configureModulesCorba(){
00087 return configureModulesNice();
00088 }
00089
00090 void ScanRequestImpl::setConfigureModulesCorba(CORBA::Boolean val){
00091 setConfigureModulesNice(val);
00092 }
00093
00094 CORBA::Long ScanRequestImpl::delayCorba(
00095 ){
00096 return delayNice();
00097 }
00098
00099 Sct_SctApi::Scan_ptr ScanRequestImpl::getScanCorba(
00100 ){
00101 return getScanNice();
00102 }
00103
00104 void ScanRequestImpl::setScanCorba(Sct_SctApi::Scan_ptr scan){
00105 Sct::BugReport("BUG01", "ScanRequest.cpp","Will this infinite recurse? It must not! Sleeping 1 sec",1000000);
00106 setScanNice(scan);
00107 }
00108 }
00109 }