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.

65 lines
1.5 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __MEDIADEVICE_H_INCL__
  2. #define __MEDIADEVICE_H_INCL__
  3. #include "../../components/base/basicMediaSource.h"
  4. #include "../../data/media/mediaBus.h"
  5. #include <vector>
  6. typedef vector<mediaBus*> mdeiaJunction;
  7. typedef vector<basicMediaSource*> mediaSources;
  8. /**
  9. * TODO: Add class description
  10. *
  11. * @author gagua
  12. */
  13. class mediaDevice{
  14. private:
  15. mdeiaJunction m_vInboundBusses;
  16. mdeiaJunction m_vOutboundBusses;
  17. mediaSources m_vMediaSources;
  18. protected:
  19. bool attachMediaSource( basicMediaSource *src );
  20. public:
  21. // Constructor
  22. mediaDevice();
  23. // Destructor
  24. virtual ~mediaDevice();
  25. virtual bool init(){ return true; };
  26. // Copy constructor
  27. // TODO: Uncomment the copy constructor when you need it.
  28. //mediaDevice(const mediaDevice& src);
  29. // Assignment operator
  30. // TODO: Uncomment the assignment operator when you need it.
  31. //mediaDevice& operator=(const mediaDevice& src);
  32. };
  33. // Constructor implementation
  34. inline mediaDevice::mediaDevice(){
  35. }
  36. // Destructor implementation
  37. inline mediaDevice::~mediaDevice(){
  38. }
  39. // TODO: Uncomment the copy constructor when you need it.
  40. //inline mediaDevice::mediaDevice(const mediaDevice& src)
  41. //{
  42. // // TODO: copy
  43. //}
  44. // TODO: Uncomment the assignment operator when you need it.
  45. //inline mediaDevice& mediaDevice::operator=(const mediaDevice& rhs)
  46. //{
  47. // if (this == &rhs) {
  48. // return *this;
  49. // }
  50. //
  51. // // TODO: assignment
  52. //
  53. // return *this;
  54. //}
  55. #endif // __MEDIADEVICE_H_INCL__