Skip to content

Commit

Permalink
updating missing common directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorgoth committed May 30, 2019
1 parent 3d8d77f commit 3f0b132
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.*~
#*#
*.o
*.so
9 changes: 9 additions & 0 deletions common/include/CommandLineInput.hh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef CommandLineInput_HH
#define CommandLineInput_HH 1
//C++ INCLUDES
#include <iostream>
#include <string>

std::string ParseCommandLine( int argc, char* argv[], std::string opt );

#endif
18 changes: 18 additions & 0 deletions common/src/CommandLineInput.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//C++ INCLUDES
//ROOT INCLUDES
//LOCAL INCLUDES
#include "CommandLineInput.hh"

std::string ParseCommandLine( int argc, char* argv[], std::string opt )
{
for (int i = 1; i < argc; i++ )
{
std::string tmp( argv[i] );
if ( tmp.find( opt ) != std::string::npos )
{
return tmp.substr( tmp.find_last_of("=") + 1 );
}
}

return "";
};
Binary file added common/src/CommandLineInput.o
Binary file not shown.

0 comments on commit 3f0b132

Please sign in to comment.