ServiceTypeDescription.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 __SUPPORT_SERVICETYPEDESCRIPTION_H
00032 #define __SUPPORT_SERVICETYPEDESCRIPTION_H
00033
00034 namespace mermaid
00035 {
00036 namespace support
00037 {
00038 namespace service
00039 {
00040 class ServiceTypeDescription;
00041 }
00042 }
00043 }
00044
00045 #include "ServiceInterfaceDescription.hpp"
00046 #include "DataFeedDescription.hpp"
00047
00048
00049 #include <XmlCharData.hpp>
00050 #include <XmlConvertible.hpp>
00051 #include <XmlDocument.hpp>
00052 #include <XmlElement.hpp>
00053 #include <XmlElementVector.hpp>
00054
00055 #include <map>
00056 #include <vector>
00057
00058 namespace mermaid
00059 {
00060 namespace support
00061 {
00062 namespace service
00063 {
00064
00065 using boost::shared_ptr;
00066 using mermaid::support::xml::XmlCharData;
00067 using mermaid::support::xml::XmlConvertible;
00068 using mermaid::support::xml::XmlDocument;
00069 using mermaid::support::xml::XmlElement;
00070 using mermaid::support::xml::XmlElementVector;
00071
00072
00073 class Entity;
00074 class ServiceInterfaceDescription;
00075
00076
00077
00078
00079
00080
00081 class ServiceTypeDescription
00082 {
00083
00084 public:
00085
00086 ServiceTypeDescription (std::string serviceTypeName, std::string serviceTypeComment);
00087
00088 std::string getServiceTypeName();
00089 std::string getServiceTypeComment();
00090 void addServiceInterfaceDescription (shared_ptr<ServiceInterfaceDescription> interfaceDescription);
00091 shared_ptr<ServiceInterfaceDescription> getServiceInterfaceDescription (std::string interfaceName);
00092 std::vector< shared_ptr<ServiceInterfaceDescription> > getAllServiceInterfaceDescriptions();
00093 void addDataFeedDescription (shared_ptr<DataFeedDescription> dataFeedDescription);
00094 shared_ptr<DataFeedDescription> getDataFeedDescription (std::string dataFeedName);
00095 std::vector< shared_ptr<DataFeedDescription> > getAllDataFeedDescriptions();
00096
00097 private:
00098 std::string serviceTypeName_;
00099 std::string serviceTypeComment_;
00100 std::map<std::string, shared_ptr<ServiceInterfaceDescription> > interfaceDescriptionMap_;
00101 std::map<std::string, shared_ptr<DataFeedDescription> > dataFeedDescriptionMap_;
00102 };
00103 }
00104 }
00105 }
00106
00107 #endif // __SUPPORT_SERVICETYPEDESCRIPTION_H
00108