-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEMApplication.hpp
More file actions
40 lines (28 loc) · 936 Bytes
/
EMApplication.hpp
File metadata and controls
40 lines (28 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef EMApplication_hpp
#define EMApplication_hpp
#include <string>
#include <stdexcept>
// Documentation
namespace EM {
class EMApplicationInit;
class EMApplication {
friend class EMApplicationInit;
public:
virtual const char* name() =0;
virtual const char* author() =0;
virtual const char* copyright() =0;
virtual unsigned versionMajor() =0;
virtual unsigned versionMinor() =0;
virtual unsigned versionRelease()=0;
virtual const char* about() {return "No information available";};
virtual const char* example() {return "No information available";};
// add example about, and have --help = --version --about --example (no -V option)
private:
std::string invokedAs;
};
class EMApplicationException : public std::runtime_error {
public:
EMApplicationException(const std::string& s) : std::runtime_error(s){}
};
} // namespace EM
#endif