fix FastRTPSGen version verification

This commit is contained in:
TSC21
2019-10-04 16:56:03 +01:00
committed by Nuno Marques
parent 9c00f3de02
commit e7b0384f05
7 changed files with 26 additions and 26 deletions
+4 -4
View File
@@ -64,7 +64,7 @@ topic = alias if alias else spec.short_name
#include <fastrtps/fastrtps_fwd.h>
#include <fastrtps/subscriber/SubscriberListener.h>
#include <fastrtps/subscriber/SampleInfo.h>
@[if 1.5 < fastrtpsgen_version <= 1.7]@
@[if 1.5 <= fastrtpsgen_version <= 1.7]@
#include "@(topic)_PubSubTypes.h"
@[else]@
#include "@(topic)PubSubTypes.h"
@@ -81,7 +81,7 @@ public:
bool init();
void run();
bool hasMsg();
@[if 1.5 < fastrtpsgen_version <= 1.7]@
@[if 1.5 <= fastrtpsgen_version <= 1.7]@
@(topic)_ getMsg();
@[else]@
@(topic) getMsg();
@@ -100,7 +100,7 @@ private:
SampleInfo_t m_info;
int n_matched;
int n_msg;
@[if 1.5 < fastrtpsgen_version <= 1.7]@
@[if 1.5 <= fastrtpsgen_version <= 1.7]@
@(topic)_ msg;
@[else]@
@(topic) msg;
@@ -108,7 +108,7 @@ private:
bool has_msg = false;
} m_listener;
@[if 1.5 < fastrtpsgen_version <= 1.7]@
@[if 1.5 <= fastrtpsgen_version <= 1.7]@
@(topic)_PubSubType myType;
@[else]@
@(topic)PubSubType myType;