logplus/Workflow/WFEngine/WorkflowEngine/include/ModuleConnection.h

78 lines
1.6 KiB
C
Raw Normal View History

2026-01-16 17:18:41 +08:00
/**
* @file ModuleConnection.h
* @brief
*
* @author
* @date 2011-7-27
*/
#ifndef PAI_FRAME_WORKFLOWENGINE_MODULECONNECTION_H
#define PAI_FRAME_WORKFLOWENGINE_MODULECONNECTION_H
#include <ostream>
#include <iostream>
#include <string>
#include "Turtle.h"
namespace pai {
namespace workflow {
/**
* @brief
*
*/
class PAI_WORKFLOWENGINE_EXPORT CModuleConnection {
private:
/*
* id
*
* */
int m_iSourceId;
/*
* id
*
*/
int m_iDestId;
/*
* the output port variable of previous module
*
* */
std::string m_strOutPort;
/*
* the input port variable of next module
*
* */
std::string m_strInPort;
public:
int GetSourceId() const { return this->m_iSourceId;}
int GetDestId() const { return this->m_iDestId;}
std::string GetOutPort() const { return this->m_strOutPort;}
std::string GetInPort() const { return this->m_strInPort;}
void SetSourceId(int id ) { this->m_iSourceId = id; }
void SetDestId(int id ) { this->m_iDestId = id; }
void SetOutPort(const std::string& port ) { this->m_strOutPort = port; }
void SetInPort(const std::string& port ) { this->m_strInPort = port; }
void Print();
CModuleConnection();
virtual ~CModuleConnection();
/**
* @breif
* @parma destModuleInfo
*/
void CopyTo(CModuleConnection& destModuleInfo);
bool operator==(const CModuleConnection& that) const;
friend std::ostream& operator<<(std::ostream& out, const CModuleConnection& connection);
};
}
}
#endif