ATLAS Offline Software
Loading...
Searching...
No Matches
ExtractFileIdentifierApplication Class Reference
Inheritance diagram for ExtractFileIdentifierApplication:
Collaboration diagram for ExtractFileIdentifierApplication:

Public Member Functions

 ExtractFileIdentifierApplication (int argc, char *argv[])
bool parseArguments ()
void execute ()
void printSyntax ()
virtual int run ()
virtual void startSession ATLAS_NOT_THREAD_SAFE ()
virtual void readFileGUIDs ()
virtual std::string readFileGUID (const std::string &pfn)

Static Public Member Functions

static bool initGaudi ()
 initialize the Gaudi framework for standalone executables

Protected Attributes

std::string m_executableName
std::string m_technologyName
IStorageSvc * m_storageSvc = nullptr
std::vector< std::string > m_args
std::vector< std::string > m_fileNames
std::vector< std::pair< std::string, std::string > > m_fidAndPfn

Detailed Description

Definition at line 11 of file pool_extractFileIdentifier.cxx.

Constructor & Destructor Documentation

◆ ExtractFileIdentifierApplication()

ExtractFileIdentifierApplication::ExtractFileIdentifierApplication ( int argc,
char * argv[] )

Definition at line 21 of file pool_extractFileIdentifier.cxx.

22 : SimpleUtilityBase( argc, argv )
23{ }
SimpleUtilityBase(int argc=0, char *argv[]=0)
constructor taking commandline parmeters

Member Function Documentation

◆ ATLAS_NOT_THREAD_SAFE()

virtual void startSession SimpleUtilityBase::ATLAS_NOT_THREAD_SAFE ( )
virtualinherited

◆ execute()

void ExtractFileIdentifierApplication::execute ( )
virtual

Reimplemented from SimpleUtilityBase.

Definition at line 51 of file pool_extractFileIdentifier.cxx.

52{
53 startSession();
55 for( std::vector< std::pair< std::string, std::string > >::const_iterator iFile = m_fidAndPfn.begin();
56 iFile != m_fidAndPfn.end(); ++iFile ) {
57 std::cout << iFile->first << " (" << iFile->second << ")" << std::endl;
58 }
59}
std::vector< std::pair< std::string, std::string > > m_fidAndPfn
virtual void readFileGUIDs()

◆ initGaudi()

bool SimpleUtilityBase::initGaudi ( )
staticinherited

initialize the Gaudi framework for standalone executables

◆ parseArguments()

bool ExtractFileIdentifierApplication::parseArguments ( )
virtual

Reimplemented from SimpleUtilityBase.

Definition at line 27 of file pool_extractFileIdentifier.cxx.

28{
29 unsigned int excludedArgument = 0;
30 for ( unsigned int iArg = 0; iArg < m_args.size(); ++iArg ) {
31 if ( iArg > 0 && iArg == excludedArgument )
32 continue;
33 const std::string& arg = m_args[iArg];
34 if ( arg == "-t" ) {
35 unsigned int nextArgumentIndex = iArg + 1;
36 if ( nextArgumentIndex < m_args.size() ) {
37 excludedArgument = nextArgumentIndex;
38 m_technologyName = m_args[nextArgumentIndex];
39 }
40 }
41 else {
42 m_fileNames.push_back( arg );
43 }
44 }
46}
std::vector< std::string > m_args
std::vector< std::string > m_fileNames
virtual bool parseArguments()
std::string m_technologyName

◆ printSyntax()

void ExtractFileIdentifierApplication::printSyntax ( )
virtual

Reimplemented from SimpleUtilityBase.

Definition at line 63 of file pool_extractFileIdentifier.cxx.

64{
65 std::cerr << "Syntax : " << m_executableName << " [-t technologyType] files" << std::endl;
66}
std::string m_executableName

◆ readFileGUID()

virtual std::string SimpleUtilityBase::readFileGUID ( const std::string & pfn)
virtualinherited

◆ readFileGUIDs()

virtual void SimpleUtilityBase::readFileGUIDs ( )
virtualinherited

◆ run()

virtual int SimpleUtilityBase::run ( )
virtualinherited

Member Data Documentation

◆ m_args

std::vector< std::string > SimpleUtilityBase::m_args
protectedinherited

Definition at line 45 of file SimpleUtilityBase.h.

◆ m_executableName

std::string SimpleUtilityBase::m_executableName
protectedinherited

Definition at line 41 of file SimpleUtilityBase.h.

◆ m_fidAndPfn

std::vector< std::pair< std::string, std::string > > SimpleUtilityBase::m_fidAndPfn
protectedinherited

Definition at line 47 of file SimpleUtilityBase.h.

◆ m_fileNames

std::vector< std::string > SimpleUtilityBase::m_fileNames
protectedinherited

Definition at line 46 of file SimpleUtilityBase.h.

◆ m_storageSvc

IStorageSvc* SimpleUtilityBase::m_storageSvc = nullptr
protectedinherited

Definition at line 43 of file SimpleUtilityBase.h.

◆ m_technologyName

std::string SimpleUtilityBase::m_technologyName
protectedinherited

Definition at line 42 of file SimpleUtilityBase.h.


The documentation for this class was generated from the following file: