123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- #ifndef XMLENDPOINTPARSER_H_
- #define XMLENDPOINTPARSER_H_
- #ifndef DOXYGEN_SHOULD_SKIP_THIS_PUBLIC
- #include <fastrtps/xmlparser/XMLParserCommon.h>
- #include <set>
- #include <vector>
- #include <cstdint>
- namespace tinyxml2
- {
- class XMLElement;
- class XMLDocument;
- }
- namespace eprosima{
- namespace fastrtps{
- namespace rtps{
- class ReaderProxyData;
- class WriterProxyData;
- }
- namespace xmlparser{
- class StaticRTPSParticipantInfo{
- public:
- StaticRTPSParticipantInfo(){};
- virtual ~StaticRTPSParticipantInfo(){};
-
- std::string m_RTPSParticipantName;
-
- std::vector<rtps::ReaderProxyData*> m_readers;
-
- std::vector<rtps::WriterProxyData*> m_writers;
- };
- class XMLEndpointParser {
- public:
- XMLEndpointParser();
- virtual ~XMLEndpointParser();
-
- XMLP_ret loadXMLFile(std::string& filename);
-
- XMLP_ret loadXMLNode(tinyxml2::XMLDocument& doc);
- void loadXMLParticipantEndpoint(tinyxml2::XMLElement* xml_endpoint, StaticRTPSParticipantInfo* pdata);
-
- XMLP_ret loadXMLReaderEndpoint(tinyxml2::XMLElement* xml_endpoint,StaticRTPSParticipantInfo* pdata);
-
- XMLP_ret loadXMLWriterEndpoint(tinyxml2::XMLElement* xml_endpoint, StaticRTPSParticipantInfo* pdata);
-
- XMLP_ret lookforReader(const char* partname, uint16_t id, rtps::ReaderProxyData** rdataptr);
-
- XMLP_ret lookforWriter(const char* partname, uint16_t id, rtps::WriterProxyData** wdataptr);
- private:
- std::set<int16_t> m_endpointIds;
- std::set<uint32_t> m_entityIds;
- std::vector<StaticRTPSParticipantInfo*> m_RTPSParticipants;
- };
- }
- }
- }
- #endif
- #endif
|