nnc: Implement BackendModule class
This commit implements BackendModule class
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
--- /dev/null
+#ifndef __BACKEND_MODULE_H__
+#define __BACKEND_MODULE_H__
+
+#include "module/AbstractModule.h"
+
+namespace nncc
+{
+namespace contrib
+{
+namespace module
+{
+
+class BackendModule : public AbstractModule
+{
+public:
+ static BackendModule &getInstance();
+ BackendModule &operator=(const BackendModule &) = delete;
+ BackendModule(const BackendModule &) = delete;
+
+private:
+ BackendModule();
+ ~BackendModule();
+};
+
+} // namespace module
+} // namespace contrib
+} // namespace nncc
+
+#endif // __BACKEND_MODULE_H__
--- /dev/null
+#include "module/BackendModule.h"
+
+namespace nncc
+{
+namespace contrib
+{
+namespace module
+{
+
+BackendModule &BackendModule::getInstance() {
+ static BackendModule instance;
+ return instance;
+}
+
+BackendModule::BackendModule() : AbstractModule(contrib::plugin::PluginType::typeBackEnd) {}
+BackendModule::~BackendModule() {}
+
+} // namespace module
+} // namespace contrib
+} // namespace nncc