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
65 lines
1.5 KiB
#ifndef __MEDIADEVICE_H_INCL__
|
|
#define __MEDIADEVICE_H_INCL__
|
|
|
|
#include "../../components/base/basicMediaSource.h"
|
|
#include "../../data/media/mediaBus.h"
|
|
#include <vector>
|
|
|
|
typedef vector<mediaBus*> mdeiaJunction;
|
|
|
|
typedef vector<basicMediaSource*> mediaSources;
|
|
|
|
/**
|
|
* TODO: Add class description
|
|
*
|
|
* @author gagua
|
|
*/
|
|
class mediaDevice{
|
|
private:
|
|
mdeiaJunction m_vInboundBusses;
|
|
mdeiaJunction m_vOutboundBusses;
|
|
mediaSources m_vMediaSources;
|
|
protected:
|
|
bool attachMediaSource( basicMediaSource *src );
|
|
public:
|
|
// Constructor
|
|
mediaDevice();
|
|
// Destructor
|
|
virtual ~mediaDevice();
|
|
virtual bool init(){ return true; };
|
|
// Copy constructor
|
|
// TODO: Uncomment the copy constructor when you need it.
|
|
//mediaDevice(const mediaDevice& src);
|
|
|
|
// Assignment operator
|
|
// TODO: Uncomment the assignment operator when you need it.
|
|
//mediaDevice& operator=(const mediaDevice& src);
|
|
};
|
|
|
|
// Constructor implementation
|
|
inline mediaDevice::mediaDevice(){
|
|
}
|
|
|
|
// Destructor implementation
|
|
inline mediaDevice::~mediaDevice(){
|
|
}
|
|
|
|
// TODO: Uncomment the copy constructor when you need it.
|
|
//inline mediaDevice::mediaDevice(const mediaDevice& src)
|
|
//{
|
|
// // TODO: copy
|
|
//}
|
|
|
|
// TODO: Uncomment the assignment operator when you need it.
|
|
//inline mediaDevice& mediaDevice::operator=(const mediaDevice& rhs)
|
|
//{
|
|
// if (this == &rhs) {
|
|
// return *this;
|
|
// }
|
|
//
|
|
// // TODO: assignment
|
|
//
|
|
// return *this;
|
|
//}
|
|
|
|
#endif // __MEDIADEVICE_H_INCL__
|