imports started
This commit is contained in:
31
src/imports/import_base.hpp
Normal file
31
src/imports/import_base.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef _IMPORT_BASE_HPP_
|
||||
#define _IMPORT_BASE_HPP_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "connect.hpp"
|
||||
#include "modules.hpp"
|
||||
|
||||
class ImportBase
|
||||
{
|
||||
Connections *connects;
|
||||
Modules *mods;
|
||||
|
||||
public:
|
||||
ImportBase()
|
||||
{
|
||||
connects = new Connections();
|
||||
mods = new Modules();
|
||||
}
|
||||
virtual void load(std::string file_name) = 0;
|
||||
Connections *connections()
|
||||
{
|
||||
return connects;
|
||||
}
|
||||
Modules *modules()
|
||||
{
|
||||
return mods;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // _IMPORT_BASE_HPP_
|
||||
14
src/imports/import_mentor.cpp
Normal file
14
src/imports/import_mentor.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
#include "import_mentor.hpp"
|
||||
|
||||
ImportMentor::ImportMentor() {
|
||||
|
||||
}
|
||||
|
||||
ImportMentor::~ImportMentor() {
|
||||
|
||||
}
|
||||
|
||||
void ImportMentor::load(std::string filename) {
|
||||
|
||||
}
|
||||
16
src/imports/import_mentor.hpp
Normal file
16
src/imports/import_mentor.hpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _IMPORT_MENTOR_HPP_
|
||||
#define _IMPORT_MENTOR_HPP_
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "import_base.hpp"
|
||||
|
||||
class ImportMentor : public ImportBase
|
||||
{
|
||||
public:
|
||||
ImportMentor();
|
||||
~ImportMentor();
|
||||
void load(std::string file_name);
|
||||
};
|
||||
|
||||
#endif // _IMPORT_MENTOR_HPP_
|
||||
Reference in New Issue
Block a user