28void SQLiteIPLocation() {
 
   35   const char *location = 
"SELECT IPLatitude, IPLongitude FROM accesslog;";
 
   39      if (!row->GetField(0)[0])
 
   41      std::string sLatitude(row->GetField(0));
 
   42      std::string sLongitude(row->GetField(1));
 
   43      float latitude = std::stof(sLatitude);
 
   44      float longitude = std::stof(sLongitude);
 
   45      WM->
Fill(longitude, latitude);
 
virtual void ToggleEventStatus()
Toggle event statusbar.
 
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
 
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
 
void Draw(Option_t *option="") override
Draw this histogram with options.
 
2D Histogram with Polygonal Bins
 
Int_t Fill(Double_t x, Double_t y) override
Increment the bin containing (x,y) by 1.
 
void SetLogz(Int_t value=1) override
Set Lin/Log scale for Z.
 
virtual TSQLRow * Next()=0
 
virtual TSQLResult * Query(const char *sql)=0
 
static TSQLServer * Connect(const char *db, const char *uid, const char *pw)
The db should be of the form: <dbms>://<host>[:<port>][/<database>], e.g.: mysql://pcroot....