ServiceTypeDescription.hpp

Go to the documentation of this file.
00001 /*
00002 Copyright 2007, 2008, 2009, 2010, 2011 Instituto de Sistemas e Robotica, Instituto Superior Tecnico
00003 
00004 This file is part of MeRMaID.
00005 
00006 MeRMaID is free software: you can redistribute it and/or modify
00007 it under the terms of the GNU Lesser General Public License as published by
00008 the Free Software Foundation, either version 3 of the License, or
00009 (at your option) any later version.
00010 
00011 MeRMaID is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU Lesser General Public License for more details.
00015 
00016 You should have received a copy of the GNU Lesser General Public License
00017 along with MeRMaID.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00020 
00021 
00022 /**
00023  * @Filename ServiceTypeDescription.hpp
00024  * @Description Support ServiceTypeDescription declaration
00025  * @Status Work in Progress
00026  * @Version $Id: ServiceTypeDescription.hpp 1 2011-03-04 18:13:18Z jreis $
00027  * @Maintainer nmsra (nmsra@mega.ist.utl.pt)
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       //forward declaration
00073       class Entity;
00074       class ServiceInterfaceDescription;
00075       
00076       /**
00077       * @Class ServiceTypeDescription ServiceTypeDescription.hpp "ServiceTypeDescription.hpp"
00078       * @Description This class holds a description of a Service type
00079       * @Author Marco Barbosa
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       }; // class ServiceDescription
00103     } // namespace service
00104   } // namespace support
00105 } // namespace mermaid
00106 
00107 #endif // __SUPPORT_SERVICETYPEDESCRIPTION_H
00108 //#include "Entity.hpp"
Generated on Fri Mar 4 22:14:58 2011 for MeRMaID::support by  doxygen 1.6.3