GENIEGenerator
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SystemUtils.h
Go to the documentation of this file.
1 //____________________________________________________________________________
2 /*!
3 
4 \namespace genie::utils::system
5 
6 \brief System utilities
7 
8 \author Costas Andreopoulos <c.andreopoulos \at cern.ch>
9  University of Liverpool
10 
11 \created Oct 08, 2009
12 
13 \cpright Copyright (c) 2003-2024, The GENIE Collaboration
14  For the full text of the license visit http://copyright.genie-mc.org
15 */
16 //____________________________________________________________________________
17 
18 #ifndef _SYST_UTILS_H_
19 #define _SYST_UTILS_H_
20 
21 #include <vector>
22 #include <string>
23 
24 using std::vector;
25 using std::string;
26 
27 namespace genie {
28 namespace utils {
29 
30 namespace system
31 {
32 
33  vector<string> GetAllFilesInPath (string path, string extension="");
34 
35  int GenieMajorVrsNum (string tag);
36  int GenieMinorVrsNum (string tag);
37  int GenieRevisVrsNum (string tag);
38 
39  bool FileExists(string filename);
40  bool DirectoryExists( const char * path ) ;
41 
42  string LocalTimeAsString(string format);
43 
44 } // system namespace
45 } // utils namespace
46 } // genie namespace
47 
48 #endif // _SYST_UTILS_H_
int GenieMajorVrsNum(string tag)
Definition: SystemUtils.cxx:59
bool FileExists(string filename)
Definition: SystemUtils.cxx:80
vector< string > GetAllFilesInPath(string path, string extension="")
Definition: SystemUtils.cxx:29
int GenieMinorVrsNum(string tag)
Definition: SystemUtils.cxx:66
string LocalTimeAsString(string format)
bool DirectoryExists(const char *path)
Definition: SystemUtils.cxx:92
int GenieRevisVrsNum(string tag)
Definition: SystemUtils.cxx:73