BmnRoot 26.10.0-233-gb9bbe585
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
installLocalDB.C File Reference
#include "TString.h"
#include "TSystem.h"
#include <cstdio>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include "../geo_db_settings.h"
Include dependency graph for installLocalDB.C:

Go to the source code of this file.

Functions

bool exists_file (const char *name)
unsigned long int getServerRevision (const char *url)
unsigned long int getLocalRevision (TString &localDbPath)
int installLocalDB (const char *tag=nullptr, const char *url=GEO_SERVER_HOST)

Function Documentation

◆ exists_file()

bool exists_file ( const char * name)

Definition at line 14 of file installLocalDB.C.

Referenced by getLocalRevision(), and installLocalDB().

Here is the caller graph for this function:

◆ getLocalRevision()

unsigned long int getLocalRevision ( TString & localDbPath)

Definition at line 26 of file installLocalDB.C.

References exists_file(), TSQLRow::GetField(), TSQLServer::IsConnected(), TSQLResult::Next(), and TSQLiteServer::Query().

Referenced by installLocalDB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getServerRevision()

unsigned long int getServerRevision ( const char * url)

Definition at line 19 of file installLocalDB.C.

References TString::Data(), and TString::Format().

Referenced by installLocalDB().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ installLocalDB()

int installLocalDB ( const char * tag = nullptr,
const char * url = GEO_SERVER_HOST )

Definition at line 53 of file installLocalDB.C.

References TString::Chop(), TString::Data(), TString::EndsWith(), exists_file(), TString::Format(), FileStat_t::fSize, GEO_SERVER_HOST, getLocalRevision(), getServerRevision(), and TString::Length().

Here is the call graph for this function: