PortNamingConvention.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef __COMMUNICATION_PORTNAMINGCONVENTION_H
00032 #define __COMMUNICATION_PORTNAMINGCONVENTION_H
00033
00034 #include <string>
00035
00036 namespace mermaid
00037 {
00038 namespace support
00039 {
00040 namespace communication
00041 {
00042
00043
00044
00045
00046
00047 class PortNamingConvention
00048 {
00049 public:
00050
00051 static std::string getServiceRequestRequestPortName (std::string requesterEntityName, std::string requesterServiceName, std::string targetEntityName, std::string targetServiceName);
00052 static std::string getServiceRequestInputPortName (std::string entityName, std::string serviceName);
00053 static std::string getServiceRequestOutputPortName (std::string entityName, std::string serviceName, std::string requesterEntityName, std::string requesterServiceName);
00054 static std::string getServiceRequestReplyPortName (std::string requesterEntityName, std::string requesterServiceName, std::string targetEntityName, std::string targetServiceName);
00055
00056
00057 static std::string getDataFeedOutputPortName (std::string producerEntityName, std::string producerServiceName, std::string producerDatafeedName);
00058 static std::string getDataFeedInputPortName (std::string consumerEntityName, std::string consumerServiceName, std::string producerEntityName, std::string producerServiceName, std::string producerDatafeedName);
00059 };
00060 }
00061 }
00062 }
00063
00064 #endif // __COMMUNICATION_PORTNAMINGCONVENTION_H