ATLAS Offline Software
rcu_locate.cxx
Go to the documentation of this file.
1 //
2 // Distributed under the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5 
6 // Please feel free to contact me (krumnack@iastate.edu) for bug
7 // reports, feature suggestions, praise and complaints.
8 
9 
10 //
11 // includes
12 //
13 
14 #include <RootCoreUtils/Global.h>
15 
16 #include <iostream>
17 #include <RootCoreUtils/Locate.h>
18 
19 //
20 // method implementations
21 //
22 
23 int main (int argc, char **argv)
24 {
25  if (argc != 2)
26  {
27  std::cerr << "usage: " << argv[0] << " locations" << std::endl;
28  return 1;
29  }
30 
31  std::cout << RCU::locate (argv[1]) << std::endl;
32  return 0;
33 }
Global.h
LArCellConditions.argv
argv
Definition: LArCellConditions.py:112
Locate.h
DQHistogramMergeRegExp.argc
argc
Definition: DQHistogramMergeRegExp.py:20
main
int main(int argc, char **argv)
Definition: rcu_locate.cxx:23
RCU::locate
std::string locate(const std::string &locations)
effects: find the file with the given name from a list of locations separated by "::".
Definition: Locate.cxx:28