You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.8 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __MEDIABUS_H_INCL__
  2. #define __MEDIABUS_H_INCL__
  3. #include <opencv2/opencv.hpp>
  4. #include "../../components/base/basicFunctionality.h"
  5. #include "../../components/base/basicLogCollection.h"
  6. #include "../../components/base/basicMediaLane.h"
  7. /**
  8. * TODO: Add class description
  9. *
  10. * @author gagua
  11. */
  12. class mediaBus : public basicMediaLane {
  13. protected:
  14. MedaLaneType m_eType;
  15. MediaFormatInfo m_eFormat;
  16. AttachmentStatus m_eConnectionStatus;
  17. public:
  18. // Constructor
  19. mediaBus();
  20. // Destructor
  21. virtual ~mediaBus();
  22. MedaLaneType getType( void );
  23. MediaFormatInfo getFormat( void );
  24. AttachmentStatus getConnectionStatus( void );
  25. void connectSource( void );
  26. void connectDestination( void );
  27. void disconnectSource(void);
  28. void disconnectDestination(void);
  29. bool postPackage( cv::Mat *ptr );
  30. cv::Mat *getPackage( int delayMilliseconds = 1000 );
  31. // Copy constructor
  32. // TODO: Uncomment the copy constructor when you need it.
  33. //mediaBus(const mediaBus& src);
  34. // Assignment operator
  35. // TODO: Uncomment the assignment operator when you need it.
  36. //mediaBus& operator=(const mediaBus& src);
  37. };
  38. typedef vector<mediaBus*> mediaPorts;
  39. // TODO: Uncomment the copy constructor when you need it.
  40. //inline mediaBus::mediaBus(const mediaBus& src)
  41. //{
  42. // // TODO: copy
  43. //}
  44. // TODO: Uncomment the assignment operator when you need it.
  45. //inline mediaBus& mediaBus::operator=(const mediaBus& rhs)
  46. //{
  47. // if (this == &rhs) {
  48. // return *this;
  49. // }
  50. //
  51. // // TODO: assignment
  52. //
  53. // return *this;
  54. //}
  55. #endif // __MEDIABUS_H_INCL__