ATLAS Offline Software
Loading...
Searching...
No Matches
SimpleUtilityBase.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef STORAGESVC_SIMPLEUTILITYBASE
6#define STORAGESVC_SIMPLEUTILITYBASE
7
8#include <iostream>
9#include <stdexcept>
10#include <vector>
11
13#include "StorageSvc/DbType.h"
14#include "StorageSvc/DbOption.h"
16
18
19
22 public:
24 SimpleUtilityBase( int argc = 0, char* argv[] = 0 );
26
27 virtual int run();
28
29 virtual bool parseArguments();
30 virtual void startSession ATLAS_NOT_THREAD_SAFE ();
31 virtual void readFileGUIDs();
32 virtual std::string readFileGUID( const std::string& pfn );
33
34 virtual void execute() {}
35 virtual void printSyntax() {}
36
38 static bool initGaudi();
39
40 protected:
41 std::string m_executableName;
42 std::string m_technologyName;
44
45 std::vector< std::string > m_args;
46 std::vector< std::string > m_fileNames;
47 std::vector< std::pair< std::string, std::string > > m_fidAndPfn;
48};
49
50
52/* this is a class and not a namespace so it can be autoloaded by ROOT */
53class Utils {
54 public:
55 static std::string readFileGUID ATLAS_NOT_THREAD_SAFE ( const std::string& pfn );
56};
57
58#endif
Define macros for attributes used to control the static checker.
The IStorageSvc interface is able to handle user request for.
Definition IStorageSvc.h:39
virtual void execute()
virtual std::string readFileGUID(const std::string &pfn)
virtual int run()
std::string m_executableName
IStorageSvc * m_storageSvc
SimpleUtilityBase(int argc=0, char *argv[]=0)
constructor taking commandline parmeters
virtual void printSyntax()
std::vector< std::string > m_args
virtual void startSession ATLAS_NOT_THREAD_SAFE()
std::vector< std::string > m_fileNames
virtual bool parseArguments()
std::vector< std::pair< std::string, std::string > > m_fidAndPfn
static bool initGaudi()
initialize the Gaudi framework for standalone executables
std::string m_technologyName
virtual void readFileGUIDs()
virtual ~SimpleUtilityBase()
static std::string readFileGUID ATLAS_NOT_THREAD_SAFE(const std::string &pfn)