www.mooseframework.org
SystemInfo.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include <string>
13 #include <ctime>
14 
16 {
17 public:
18  SystemInfo(int argc, char * argv[]);
19 
20  std::string getInfo() const;
21  std::string getTimeStamp(std::time_t * time_stamp = NULL) const;
22  std::string getExecutable() const;
23  std::string getExecutableTimeStamp() const;
24  std::string getExecutableTimeStamp(const std::string & exe) const;
25 
26  int argc() const { return _argc; };
27  char ** argv() const { return _argv; };
28 
29 protected:
30  int _argc;
31  char ** _argv;
32 };
SystemInfo(int argc, char *argv[])
Definition: SystemInfo.C:23
std::string getExecutable() const
Definition: SystemInfo.C:131
std::string getTimeStamp(std::time_t *time_stamp=NULL) const
Definition: SystemInfo.C:58
char ** _argv
Definition: SystemInfo.h:31
std::string getExecutableTimeStamp() const
Definition: SystemInfo.C:142
std::string getInfo() const
Definition: SystemInfo.C:26
int argc() const
Definition: SystemInfo.h:26
char ** argv() const
Definition: SystemInfo.h:27