MachineIntelligenceCore:Toolchain
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Application.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_CONFIGURATION_APPLICATION_HPP_
24 #define SRC_CONFIGURATION_APPLICATION_HPP_
25 
27 
28 #include <logger/Log.hpp>
29 using namespace mic::logger;
30 
31 namespace mic {
32 namespace application {
33 
39 public:
43  Application(std::string node_name_);
44 
45 
49  virtual ~Application() { };
50 
51 
57  virtual void initialize(int argc, char* argv[]) = 0;
58 
62  virtual void run();
63 
67  virtual void displayStatus();
68 
69 protected:
70 
72  unsigned long iteration;
73 
78 
82  virtual bool performSingleStep() = 0;
83 
84 };
85 
86 
87 } /* namespace application */
88 } /* namespace mic */
89 
90 #endif /* SRC_CONFIGURATION_APPLICATION_HPP_ */
Parent class for all classes possessing properties. Contains methods useful for their management...
Base class for all applications.
Definition: Application.hpp:38
Contains declaration of application factory, used by common main files for initialization of applicat...
Contains definitions of main logger-related macros.
mic::configuration::Property< long > number_of_iterations
Definition: Application.hpp:77
unsigned long iteration
Iteration counter.
Definition: Application.hpp:72