BmnRoot 26.10.0-18-g4e3414f9
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 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="https://bmn-geometry.jinr.int")

Function Documentation

◆ exists_file()

bool exists_file ( const char * name)

Definition at line 12 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 36 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 17 of file installLocalDB.C.

References 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 = "https://bmn-geometry.jinr.int" )

Definition at line 63 of file installLocalDB.C.

References TString::Data(), exists_file(), FileStat_t::fMode, TString::Format(), FileStat_t::fSize, getLocalRevision(), and getServerRevision().

Here is the call graph for this function: