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

Scan.h

00001 
00002 #ifndef SCT_SCTAPI_SCAN_H
00003 #define SCT_SCTAPI_SCAN_H
00004 
00014 //fwd dec
00015 namespace SctApi {
00016   class Scan;
00017 };
00018 
00019 // includes
00020 #include <vector>
00021 #include <boost/shared_ptr.hpp>
00022 #include <boost/date_time/posix_time/posix_time.hpp>
00023 #include <CommonWithDsp/processor.h>
00024 #include "ModuleList.h"
00025 
00026 // other fwd decs
00027 namespace SctApi {
00028   class Trigger;
00029 };
00030 
00031 //defn
00032 namespace SctApi {
00033   class Scan {
00034   public:
00035     virtual ~Scan() {};
00036 
00038     typedef std::vector<FLOAT32> ScanPoints;
00039 
00041     typedef std::vector<UINT32> TrigPoints;
00042 
00044 
00064     typedef enum ScanOptions {FULL, BITS32, LOOPCALLINE, DISTSLAVE, DEBUG, TIM, NTH, NTH_REM, ENABLE_DATA_MODE} ScanOptionsEnum;
00065 
00066     virtual void configure(unsigned short type, float start, float stop, float step) = 0;
00067     virtual void configure2(unsigned short type, float start, float stop, float step) = 0;
00068 
00069     virtual const boost::shared_ptr<Trigger> getTrigger1() const = 0;
00070     virtual const boost::shared_ptr<Trigger> getTrigger2() const = 0;
00071 
00072     virtual boost::shared_ptr<Trigger> getTrigger1() = 0;
00073     virtual boost::shared_ptr<Trigger> getTrigger2() = 0;
00074 
00075     virtual void setTrigger1(boost::shared_ptr<Trigger> trigger) = 0;
00076     virtual void setTrigger2(boost::shared_ptr<Trigger> trigger) = 0;
00077 
00078     virtual void setScanVariable1(unsigned short var) = 0;
00079     virtual void setScanVariable2(unsigned short var) = 0;
00080 
00081     virtual unsigned short getScanVariable1() const = 0;
00082     virtual unsigned short getScanVariable2() const = 0;
00083 
00084     virtual void setNTrigs(unsigned long nTrigs) = 0;
00085     virtual unsigned long getNTrigs() const = 0;
00086 
00087     virtual const TrigPoints getVariableTrigs() const = 0;
00088     virtual void setVariableTrigs(const TrigPoints &scans) = 0;
00089     virtual void setVariableTrigRange(unsigned short start, unsigned short end, unsigned long value) = 0;
00090 
00091     virtual const ScanPoints getScanPoints1() const = 0;
00092     virtual const ScanPoints getScanPoints2() const = 0;
00093     virtual void setScanPoints1(const ScanPoints &scans) = 0;
00094     virtual void setScanPoints2(const ScanPoints &scans) = 0;
00095 
00096     virtual int getOption(enum ScanOptions) const = 0;
00097     virtual void setOption(enum ScanOptions, int option) = 0;
00098 
00100     virtual void print() const = 0;
00101 
00102     virtual void setScanNumber(unsigned int scan) = 0;
00103     virtual unsigned int getScanNumber() const = 0;
00104     virtual void setRunNumber(unsigned int scan) = 0;
00105     virtual unsigned int getRunNumber() const = 0;
00106 
00107     virtual ModuleList getModuleList(unsigned int group) const = 0;
00108     virtual void setModuleList(unsigned int group, const ModuleList & newList) = 0;
00109     virtual unsigned int getNGroups() const = 0;
00110     virtual void setNGroups(unsigned int val) = 0;
00111   
00112     virtual boost::posix_time::ptime getStartTime() const = 0;
00113     virtual void setStartTime(boost::posix_time::ptime t) = 0;
00114   
00115     virtual boost::posix_time::ptime getEndTime() const = 0;
00116     virtual void setEndTime(boost::posix_time::ptime t) = 0;
00117   };
00118 };
00119 
00120 #endif

Generated on Fri Sep 16 18:01:56 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5