Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

ScanWrapper Class Reference

The class ScanWrapper is designed to look externally like a ::SctApi::Scan (i.e. More...

#include <ScanWrapper.h>


Public Types

typedef enum ScanWrapper::MemoryPolicy_enum MemoryPolicy
typedef ::SctApi::Scan::ScanPoints ScanPoints
typedef ::SctApi::Scan::TrigPoints TrigPoints
typedef ::SctApi::Scan::ScanOptionsEnum ScanOptionsEnum
enum  MemoryPolicy_enum { takeOwnershipOfObjectReference, doNotTakeOwnershipOfObjectReference }

Public Member Functions

 ScanWrapper (Sct_SctApi::Scan_ptr w)
void configure (unsigned short type, float start, float stop, float step)
void configure2 (unsigned short type, float start, float stop, float step)
const boost::shared_ptr<
::SctApi::Trigger > 
getTrigger1 () const
const boost::shared_ptr<
::SctApi::Trigger > 
getTrigger2 () const
boost::shared_ptr< ::SctApi::Trigger > getTrigger1 ()
boost::shared_ptr< ::SctApi::Trigger > getTrigger2 ()
void setTrigger1 (boost::shared_ptr< ::SctApi::Trigger > trigger)
void setTrigger2 (boost::shared_ptr< ::SctApi::Trigger > trigger)
void setScanVariable1 (unsigned short var)
void setScanVariable2 (unsigned short var)
unsigned short getScanVariable1 () const
unsigned short getScanVariable2 () const
void setNTrigs (unsigned long nTrigs)
unsigned long getNTrigs () const
const TrigPoints getVariableTrigs () const
void setVariableTrigs (const TrigPoints &scans)
void setVariableTrigRange (unsigned short start, unsigned short end, unsigned long value)
const ScanPoints getScanPoints1 () const
const ScanPoints getScanPoints2 () const
void setScanPoints1 (const ScanPoints &scans)
void setScanPoints2 (const ScanPoints &scans)
int getOption (ScanOptionsEnum scanOption) const
void setOption (ScanOptionsEnum scanOption, int option)
std::string print () const
 Print the scan.

void setScanNumber (unsigned int scan)
unsigned int getScanNumber () const
void setRunNumber (unsigned int scan)
unsigned int getRunNumber () const
::SctApi::ModuleList getModuleList (unsigned int group) const
void setModuleList (unsigned int group, const::SctApi::ModuleList &newList)
unsigned int getNGroups () const
void setNGroups (unsigned int val)
boost::posix_time::ptime getStartTime () const
void setStartTime (boost::posix_time::ptime t)
boost::posix_time::ptime getEndTime () const
void setEndTime (boost::posix_time::ptime t)

Private Member Functions

Sct_SctApi::Scan_ptr corbaScanServer () const
Sct_SctApi::Scan_ptr corbaScanServer ()

Private Attributes

const MemoryPolicy m_memoryPolicy
Sct_SctApi::Scan_var m_worker


Detailed Description

The class ScanWrapper is designed to look externally like a ::SctApi::Scan (i.e.

implement the ::SctApiScan interface) while actually just passing all these calls through to a CORBA scan object, which is itself internally implemented by a "standard" SctApi scan object!

This class DOES NOT OWN the object reference which it is constructed with! An alternative strategy could be developed ...

Author:
Christopher Lester

Definition at line 27 of file ScanWrapper.h.


Member Function Documentation

std::string ScanWrapper::print  )  const
 

Print the scan.


The documentation for this class was generated from the following file:
Generated on Thu Dec 22 20:17:30 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5