Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Utilities.hpp
Go to the documentation of this file.
1 /*
2  * Utilities.hpp
3  *
4  * Created on: Nov 23, 2012
5  * Author: nano
6  */
7 
8 #ifndef UTILITIES_HPP_
9 #define UTILITIES_HPP_
10 
11 #include <string>
12 #include "Command.hpp"
13 #include "../common/CommonBase.hpp"
14 
15 namespace phoxonics {
16 namespace common {
17 
18 class Utilities : public CommonBase {
19 public:
20  // default construction
21  Utilities();
22  ~Utilities();
23 
29  std::string get_new_unique_id();
30 
36  void round_double(int precision, double& val);
37 
38  void plot_geometry(std::string geometry_plot_file, std::string geometry_image_file,
39  std::string geometry_data_file);
40 
41 };
42 
43 } /* namespace common */
44 } /* namespace phoxonics */
45 
46 #endif /* UTILITIES_HPP_ */
void plot_geometry(std::string geometry_plot_file, std::string geometry_image_file, std::string geometry_data_file)
Definition: Utilities.cpp:36
Definition: Utilities.hpp:18
Definition: CommonBase.hpp:14
~Utilities()
Definition: Utilities.cpp:17
void round_double(int precision, double &val)
Definition: Utilities.cpp:29
Utilities()
Definition: Utilities.cpp:13
Definition: CommonBase.hpp:17
std::string get_new_unique_id()
Gets a new uuid.
Definition: Utilities.cpp:21