TDbiSqlContext.hxx

Go to the documentation of this file.
00001 // $Id: TDbiSqlContext.hxx,v 1.1 2011/01/18 05:49:20 finch Exp $
00002 
00003 #ifndef DBISQLCONTEXT
00004 #define DBISQLCONTEXT
00005 
00006 ////////////////////////////////////////////////////////////////////////
00007 ///                                             
00008 /// \class  TDbiSqlContext                                                                 
00009 /// \brief <b> Concept:</b> SQL corresponding to an Extended Context Query.           
00010 ///                                                                   
00011 /// <b> Purpose: </b> To hide the SQL needed to query the VLD tables.           
00012 ///                                                                    
00013 ////////////////////////////////////////////////////////////////////////
00014 
00015 #include "string"
00016 
00017 #include "TDbiString.hxx"
00018 #include "TVldContext.hxx"
00019 
00020 
00021 
00022 class TDbiSqlContext : public TDbiString
00023 {
00024 
00025 public:
00026 
00027 
00028 // Types and enum
00029 
00030   enum  IntervalType { kBefore,      kAfter,    kMisses,
00031                        kThroughout,  kWithin,   kOverlaps,
00032                        kStarts,      kEnds,
00033                        kUndefined };
00034 
00035 // Constructors and destructors.
00036            TDbiSqlContext(const std::string& ctxt = "");
00037            TDbiSqlContext(IntervalType interval,
00038                          TVldTimeStamp start,
00039                          TVldTimeStamp end,
00040                          DbiDetector::Detector_t det,
00041                          DbiSimFlag::SimFlag_t sim);
00042 
00043   virtual ~TDbiSqlContext();
00044 
00045 // State testing member functions
00046 
00047   TVldTimeStamp             GetTimeStart() const { return fTimeStart; }
00048   TVldTimeStamp             GetTimeEnd()   const { return fTimeEnd; }
00049   DbiDetector::Detector_t     GetDetector()  const { return fDetType; }
00050   DbiSimFlag::SimFlag_t       GetSimFlag()   const { return fSimType; }
00051 
00052 
00053 // State changing member functions
00054 
00055 private:
00056 
00057 // Data members
00058 
00059  IntervalType             fIntervalType;
00060  TVldTimeStamp             fTimeStart;
00061  TVldTimeStamp             fTimeEnd;
00062  DbiDetector::Detector_t     fDetType;
00063  DbiSimFlag::SimFlag_t       fSimType;
00064 
00065 
00066  ClassDef(TDbiSqlContext,0)     // SQL for Extended Context Query
00067 
00068 };
00069 
00070 
00071 
00072 #endif // DBISQLCONTEXT
00073 
00074 

Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1