Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
File.hpp
Go to the documentation of this file.
1 /*
2  * File.hpp
3  *
4  * Created on: Oct 25, 2014
5  * Author: cuda
6  */
7 
8 #ifndef FILE_HPP_
9 #define FILE_HPP_
10 
11 #include <string>
12 
13 #include "../common/CommonBase.hpp"
14 #include "../exception/CustomException.hpp"
15 
16 namespace phoxonics {
17 namespace common {
18 
19 class File : public CommonBase {
20 public:
21  explicit File();
22  virtual ~File();
23 
24  // check if a file exists
25  bool file_exists(const std::string& file_name);
26 
27  // copies a file
28  void copy(std::string source_file, std::string target_file);
29 };
30 
31 } /* namespace common */
32 } /* namespace phoxonics */
33 
34 #endif /* FILE_HPP_ */
Definition: CommonBase.hpp:14
Definition: File.hpp:19
Definition: CommonBase.hpp:17
File()
Definition: File.cpp:13
virtual ~File()
Definition: File.cpp:17
bool file_exists(const std::string &file_name)
Definition: File.cpp:21
void copy(std::string source_file, std::string target_file)
Definition: File.cpp:27