35 lines
756 B
C++
35 lines
756 B
C++
#ifndef CABLE_H
|
|
#define CABLE_H
|
|
|
|
#include "CableTestBenchDefs.h"
|
|
#include "InputConnector.h"
|
|
#include "OutputConnector.h"
|
|
#include "GlobalDefine.h"
|
|
#include "IOModulesInterface.h"
|
|
|
|
class CCable
|
|
{
|
|
public:
|
|
CCable(CConnectorDefs::eConnectorType InputConnectorType,CIOModulesInterface *IOInterface);
|
|
|
|
int DefineCableByInputConnector(CConnectorDefs::eConnectorType InputConnectorType);
|
|
CInputConnector *GetInputConnector();
|
|
COutputConnector *GetOutputConnector();
|
|
|
|
bool IsCableDefined();
|
|
|
|
int ClearAllOutputConnectorPins();
|
|
|
|
|
|
|
|
private:
|
|
CInputConnector mInputConnector;
|
|
COutputConnector mOutputConnector;
|
|
bool mCableDefined;
|
|
CIOModulesInterface *mIOInterfaceHandle;
|
|
QBitArray mOutputPinsBuffer;
|
|
|
|
};
|
|
|
|
#endif // CABLE_H
|