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

#ifndef __MEDIABUS_H_INCL__
#define __MEDIABUS_H_INCL__
#include <opencv2/opencv.hpp>
#include "../../components/base/basicFunctionality.h"
#include "../../components/base/basicLogCollection.h"
#include "../../components/base/basicMediaLane.h"
/**
* TODO: Add class description
*
* @author gagua
*/
class mediaBus : public basicMediaLane {
protected:
MedaLaneType m_eType;
MediaFormatInfo m_eFormat;
AttachmentStatus m_eConnectionStatus;
public:
// Constructor
mediaBus();
// Destructor
virtual ~mediaBus();
MedaLaneType getType( void );
MediaFormatInfo getFormat( void );
AttachmentStatus getConnectionStatus( void );
void connectSource( void );
void connectDestination( void );
void disconnectSource(void);
void disconnectDestination(void);
bool postPackage( cv::Mat *ptr );
cv::Mat *getPackage( int delayMilliseconds = 1000 );
// Copy constructor
// TODO: Uncomment the copy constructor when you need it.
//mediaBus(const mediaBus& src);
// Assignment operator
// TODO: Uncomment the assignment operator when you need it.
//mediaBus& operator=(const mediaBus& src);
};
typedef vector<mediaBus*> mediaPorts;
// TODO: Uncomment the copy constructor when you need it.
//inline mediaBus::mediaBus(const mediaBus& src)
//{
// // TODO: copy
//}
// TODO: Uncomment the assignment operator when you need it.
//inline mediaBus& mediaBus::operator=(const mediaBus& rhs)
//{
// if (this == &rhs) {
// return *this;
// }
//
// // TODO: assignment
//
// return *this;
//}
#endif // __MEDIABUS_H_INCL__