Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:32

0001 #ifndef INTT_ODBC_QUERY_H
0002 #define INTT_ODBC_QUERY_H
0003 
0004 #include <array>
0005 #include <set>
0006 #include <string>
0007 
0008 class InttOdbcQuery
0009 {
0010 public:
0011   InttOdbcQuery() = default;
0012   ~InttOdbcQuery() = default;
0013 
0014   int Verbosity() {return m_verbosity;}
0015   int Verbosity(int verbosity) {return m_verbosity = verbosity;}
0016 
0017   int Query(int);
0018 
0019   bool IsStreaming() {return m_is_streaming;}
0020   const std::string &Type() {return m_type;}
0021 
0022 private:
0023   int QueryStreaming(void*, int);
0024   int QueryType(void*, int);
0025 
0026   static const int m_MAX_NUM_RETRIES = 3000;
0027   static const int m_MIN_SLEEP_DUR =  200; // milliseconds
0028   static const int m_MAX_SLEEP_DUR = 3000; // milliseconds
0029 
0030   int m_verbosity{0};
0031   bool m_query_successful{false};
0032 
0033   bool m_is_streaming{false};
0034   std::string m_type;
0035   std::array<std::set<std::string>, 8> m_file_set;
0036 };
0037 
0038 #endif//INTT_ODBC_QUERY_H
0039