IConnection.h 374 B

123456789101112131415161718
  1. #ifndef ICONNECTION_H
  2. #define ICONNECTION_H
  3. #include <vector>
  4. #include <memory>
  5. namespace mdd {
  6. template <class T>
  7. class IConnection {
  8. public:
  9. virtual int addConnection(std::shared_ptr<T> conector) = 0;
  10. virtual int removeConnection(std::shared_ptr<T> conector) = 0;
  11. virtual bool connect(std::shared_ptr<T> conector) = 0;
  12. virtual ~IConnection() {};
  13. };
  14. }
  15. #endif