Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

DbiSqlContext.h

Go to the documentation of this file.
00001 // $Id: DbiSqlContext.h,v 1.4 2005/08/26 19:19:39 rhatcher Exp $
00002 
00003 #ifndef DBISQLCONTEXT
00004 #define DBISQLCONTEXT
00005 
00007 // DbiSqlContext                                                      //
00008 //                                                                    //
00009 // Package: Dbi (Database Interface).                                 //
00010 //                                                                    //
00011 // N. West 05/2003                                                    //
00012 //                                                                    //
00013 // Concept: SQL corresponding to an Extended Context Query.           //
00014 //                                                                    //
00015 // Purpose: To hide the SQL needed to query the VLD tables.           //
00016 //                                                                    //
00018 
00019 #include "string"
00020 
00021 #include "DatabaseInterface/DbiString.h"
00022 #include "Validity/VldContext.h"
00023 
00024 
00025 class DbiSqlContext : public DbiString
00026 {
00027 
00028 public:
00029 
00030 
00031 // Types and enum
00032 
00033   enum  IntervalType { kBefore,      kAfter,    kMisses,
00034                        kThroughout,  kWithin,   kOverlaps,
00035                        kStarts,      kEnds,
00036                        kUndefined };
00037 
00038 // Constructors and destructors.
00039            DbiSqlContext(const std::string& ctxt = "");
00040            DbiSqlContext(IntervalType interval,
00041                          VldTimeStamp start,
00042                          VldTimeStamp end,
00043                          Detector::Detector_t det,    
00044                          SimFlag::SimFlag_t sim); 
00045 
00046   virtual ~DbiSqlContext();
00047 
00048 // State testing member functions
00049 
00050   VldTimeStamp             GetTimeStart() const { return fTimeStart; }
00051   VldTimeStamp             GetTimeEnd()   const { return fTimeEnd; }
00052   Detector::Detector_t     GetDetector()  const { return fDetType; }
00053   SimFlag::SimFlag_t       GetSimFlag()   const { return fSimType; }
00054 
00055 
00056 // State changing member functions
00057 
00058 private:  
00059 
00060 // Data members
00061 
00062  IntervalType             fIntervalType;
00063  VldTimeStamp             fTimeStart;
00064  VldTimeStamp             fTimeEnd;
00065  Detector::Detector_t     fDetType;    
00066  SimFlag::SimFlag_t       fSimType; 
00067 
00068 
00069  ClassDef(DbiSqlContext,0)     // SQL for Extended Context Query
00070 
00071 };
00072 
00073 
00074 #endif // DBISQLCONTEXT
00075 

Generated on Mon Feb 15 11:06:34 2010 for loon by  doxygen 1.3.9.1