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(768) {
00013 };
00014
00015 CORBA::Boolean MinimalScanRequest::clockByTwoNice() {
00016 return m_clockByTwo;
00017 }
00018
00019 CORBA::Long MinimalScanRequest::widthNice() {
00020 return m_width;
00021 }
00022
00023 void MinimalScanRequest::setWidthNice(CORBA::Long value) {
00024 m_width=value;
00025 }
00026
00027 void MinimalScanRequest::setClockByTwoNice(CORBA::Boolean value) {
00028 m_clockByTwo=value;
00029 }
00030
00031 CORBA::Boolean MinimalScanRequest::configureModulesNice(){
00032 return false;
00033 }
00034
00035 CORBA::Long MinimalScanRequest::delayNice(){
00036 return 1;
00037 }
00038
00039 Sct_SctApi::Scan_ptr MinimalScanRequest::getScanNice(){
00040
00041 return Sct_SctApi::Scan::_duplicate(m_scan);
00042 }
00043
00044 void MinimalScanRequest::setScanNice(Sct_SctApi::Scan_ptr scan){
00045 m_scan=Sct_SctApi::Scan::_duplicate(scan);
00046 }
00047
00048 CORBA::Boolean MinimalScanRequest::isRawNice(){
00049 return false;
00050 }
00051
00052
00053
00055
00056 ScanRequestImpl::ScanRequestImpl() : IPCObject<POA_Sct_CalibrationController::ScanRequest>() {
00057 }
00058
00059
00060 CORBA::Boolean ScanRequestImpl::isRawCorba(
00061 ) {
00062 return isRawNice();
00063 }
00064
00065 CORBA::Boolean ScanRequestImpl::clockByTwoCorba(
00066 ) {
00067 return clockByTwoNice();
00068 }
00069
00070
00071 CORBA::Long ScanRequestImpl::widthCorba(
00072 ) {
00073 return widthNice();
00074 }
00075
00076 void ScanRequestImpl::setWidthCorba(
00077 CORBA::Long value) {
00078 setWidthNice(value);
00079 }
00080
00081 void ScanRequestImpl::setClockByTwoCorba(
00082 CORBA::Boolean value) {
00083 setClockByTwoNice(value);
00084 }
00085
00086 CORBA::Boolean ScanRequestImpl:: configureModulesCorba(
00087 ){
00088 return configureModulesNice();
00089 }
00090
00091 CORBA::Long ScanRequestImpl::delayCorba(
00092 ){
00093 return delayNice();
00094 }
00095
00096 Sct_SctApi::Scan_ptr ScanRequestImpl::getScanCorba(
00097 ){
00098 return getScanNice();
00099 }
00100
00101 void ScanRequestImpl::setScanCorba(
00102 Sct_SctApi::Scan_ptr scan){
00103 Sct::BugReport("BUG01", "ScanRequest.cpp","Will this infinite recurse? It must not! Sleeping 1 sec",1000000);
00104 setScanNice(scan);
00105 }
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184 }
00185 }