奥特QT DDS 插件库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2800 lines
66KB

  1. // Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. /*!
  15. * @file DDSSampleMachine.hpp
  16. * This header file contains the declaration of the described types in the IDL file.
  17. *
  18. * This file was generated by the tool fastddsgen.
  19. */
  20. #ifndef FAST_DDS_GENERATED__SAMPLEMODULE_DDSSAMPLEMACHINE_HPP
  21. #define FAST_DDS_GENERATED__SAMPLEMODULE_DDSSAMPLEMACHINE_HPP
  22. #include <cstdint>
  23. #include <utility>
  24. #if defined(_WIN32)
  25. #if defined(EPROSIMA_USER_DLL_EXPORT)
  26. #define eProsima_user_DllExport __declspec( dllexport )
  27. #else
  28. #define eProsima_user_DllExport
  29. #endif // EPROSIMA_USER_DLL_EXPORT
  30. #else
  31. #define eProsima_user_DllExport
  32. #endif // _WIN32
  33. #if defined(_WIN32)
  34. #if defined(EPROSIMA_USER_DLL_EXPORT)
  35. #if defined(DDSSAMPLEMACHINE_SOURCE)
  36. #define DDSSAMPLEMACHINE_DllAPI __declspec( dllexport )
  37. #else
  38. #define DDSSAMPLEMACHINE_DllAPI __declspec( dllimport )
  39. #endif // DDSSAMPLEMACHINE_SOURCE
  40. #else
  41. #define DDSSAMPLEMACHINE_DllAPI
  42. #endif // EPROSIMA_USER_DLL_EXPORT
  43. #else
  44. #define DDSSAMPLEMACHINE_DllAPI
  45. #endif // _WIN32
  46. namespace SampleModule {
  47. /*!
  48. * @brief This class represents the enumeration CommandState defined by the user in the IDL file.
  49. * @ingroup DDSSampleMachine
  50. */
  51. enum class CommandState : int32_t
  52. {
  53. STOP,
  54. START
  55. };
  56. /*!
  57. * @brief This class represents the structure SampleConfig defined by the user in the IDL file.
  58. * @ingroup DDSSampleMachine
  59. */
  60. class SampleConfig
  61. {
  62. public:
  63. /*!
  64. * @brief Default constructor.
  65. */
  66. eProsima_user_DllExport SampleConfig()
  67. {
  68. }
  69. /*!
  70. * @brief Default destructor.
  71. */
  72. eProsima_user_DllExport ~SampleConfig()
  73. {
  74. }
  75. /*!
  76. * @brief Copy constructor.
  77. * @param x Reference to the object SampleConfig that will be copied.
  78. */
  79. eProsima_user_DllExport SampleConfig(
  80. const SampleConfig& x)
  81. {
  82. m_unifiedDepth = x.m_unifiedDepth;
  83. m_sampleOrder = x.m_sampleOrder;
  84. }
  85. /*!
  86. * @brief Move constructor.
  87. * @param x Reference to the object SampleConfig that will be copied.
  88. */
  89. eProsima_user_DllExport SampleConfig(
  90. SampleConfig&& x) noexcept
  91. {
  92. m_unifiedDepth = x.m_unifiedDepth;
  93. m_sampleOrder = x.m_sampleOrder;
  94. }
  95. /*!
  96. * @brief Copy assignment.
  97. * @param x Reference to the object SampleConfig that will be copied.
  98. */
  99. eProsima_user_DllExport SampleConfig& operator =(
  100. const SampleConfig& x)
  101. {
  102. m_unifiedDepth = x.m_unifiedDepth;
  103. m_sampleOrder = x.m_sampleOrder;
  104. return *this;
  105. }
  106. /*!
  107. * @brief Move assignment.
  108. * @param x Reference to the object SampleConfig that will be copied.
  109. */
  110. eProsima_user_DllExport SampleConfig& operator =(
  111. SampleConfig&& x) noexcept
  112. {
  113. m_unifiedDepth = x.m_unifiedDepth;
  114. m_sampleOrder = x.m_sampleOrder;
  115. return *this;
  116. }
  117. /*!
  118. * @brief Comparison operator.
  119. * @param x SampleConfig object to compare.
  120. */
  121. eProsima_user_DllExport bool operator ==(
  122. const SampleConfig& x) const
  123. {
  124. return (m_unifiedDepth == x.m_unifiedDepth &&
  125. m_sampleOrder == x.m_sampleOrder);
  126. }
  127. /*!
  128. * @brief Comparison operator.
  129. * @param x SampleConfig object to compare.
  130. */
  131. eProsima_user_DllExport bool operator !=(
  132. const SampleConfig& x) const
  133. {
  134. return !(*this == x);
  135. }
  136. /*!
  137. * @brief This function sets a value in member unifiedDepth
  138. * @param _unifiedDepth New value for member unifiedDepth
  139. */
  140. eProsima_user_DllExport void unifiedDepth(
  141. uint16_t _unifiedDepth)
  142. {
  143. m_unifiedDepth = _unifiedDepth;
  144. }
  145. /*!
  146. * @brief This function returns the value of member unifiedDepth
  147. * @return Value of member unifiedDepth
  148. */
  149. eProsima_user_DllExport uint16_t unifiedDepth() const
  150. {
  151. return m_unifiedDepth;
  152. }
  153. /*!
  154. * @brief This function returns a reference to member unifiedDepth
  155. * @return Reference to member unifiedDepth
  156. */
  157. eProsima_user_DllExport uint16_t& unifiedDepth()
  158. {
  159. return m_unifiedDepth;
  160. }
  161. /*!
  162. * @brief This function sets a value in member sampleOrder
  163. * @param _sampleOrder New value for member sampleOrder
  164. */
  165. eProsima_user_DllExport void sampleOrder(
  166. uint8_t _sampleOrder)
  167. {
  168. m_sampleOrder = _sampleOrder;
  169. }
  170. /*!
  171. * @brief This function returns the value of member sampleOrder
  172. * @return Value of member sampleOrder
  173. */
  174. eProsima_user_DllExport uint8_t sampleOrder() const
  175. {
  176. return m_sampleOrder;
  177. }
  178. /*!
  179. * @brief This function returns a reference to member sampleOrder
  180. * @return Reference to member sampleOrder
  181. */
  182. eProsima_user_DllExport uint8_t& sampleOrder()
  183. {
  184. return m_sampleOrder;
  185. }
  186. private:
  187. uint16_t m_unifiedDepth{0};
  188. uint8_t m_sampleOrder{0};
  189. };
  190. /*!
  191. * @brief This class represents the structure SampleCommand defined by the user in the IDL file.
  192. * @ingroup DDSSampleMachine
  193. */
  194. class SampleCommand
  195. {
  196. public:
  197. /*!
  198. * @brief Default constructor.
  199. */
  200. eProsima_user_DllExport SampleCommand()
  201. {
  202. }
  203. /*!
  204. * @brief Default destructor.
  205. */
  206. eProsima_user_DllExport ~SampleCommand()
  207. {
  208. }
  209. /*!
  210. * @brief Copy constructor.
  211. * @param x Reference to the object SampleCommand that will be copied.
  212. */
  213. eProsima_user_DllExport SampleCommand(
  214. const SampleCommand& x)
  215. {
  216. m_maskBits = x.m_maskBits;
  217. m_controlType = x.m_controlType;
  218. m_startSample = x.m_startSample;
  219. m_stopSample = x.m_stopSample;
  220. m_reset = x.m_reset;
  221. m_positionCheck = x.m_positionCheck;
  222. m_emergencyUp = x.m_emergencyUp;
  223. m_emergencyStop = x.m_emergencyStop;
  224. m_controlBelt1 = x.m_controlBelt1;
  225. m_controlBelt2 = x.m_controlBelt2;
  226. m_controlCrush1 = x.m_controlCrush1;
  227. m_controlCrush2 = x.m_controlCrush2;
  228. m_controlDivider = x.m_controlDivider;
  229. m_controlCoalDistributor = x.m_controlCoalDistributor;
  230. m_reductionRatio = x.m_reductionRatio;
  231. m_version = x.m_version;
  232. }
  233. /*!
  234. * @brief Move constructor.
  235. * @param x Reference to the object SampleCommand that will be copied.
  236. */
  237. eProsima_user_DllExport SampleCommand(
  238. SampleCommand&& x) noexcept
  239. {
  240. m_maskBits = x.m_maskBits;
  241. m_controlType = x.m_controlType;
  242. m_startSample = x.m_startSample;
  243. m_stopSample = x.m_stopSample;
  244. m_reset = x.m_reset;
  245. m_positionCheck = x.m_positionCheck;
  246. m_emergencyUp = x.m_emergencyUp;
  247. m_emergencyStop = x.m_emergencyStop;
  248. m_controlBelt1 = x.m_controlBelt1;
  249. m_controlBelt2 = x.m_controlBelt2;
  250. m_controlCrush1 = x.m_controlCrush1;
  251. m_controlCrush2 = x.m_controlCrush2;
  252. m_controlDivider = x.m_controlDivider;
  253. m_controlCoalDistributor = x.m_controlCoalDistributor;
  254. m_reductionRatio = x.m_reductionRatio;
  255. m_version = x.m_version;
  256. }
  257. /*!
  258. * @brief Copy assignment.
  259. * @param x Reference to the object SampleCommand that will be copied.
  260. */
  261. eProsima_user_DllExport SampleCommand& operator =(
  262. const SampleCommand& x)
  263. {
  264. m_maskBits = x.m_maskBits;
  265. m_controlType = x.m_controlType;
  266. m_startSample = x.m_startSample;
  267. m_stopSample = x.m_stopSample;
  268. m_reset = x.m_reset;
  269. m_positionCheck = x.m_positionCheck;
  270. m_emergencyUp = x.m_emergencyUp;
  271. m_emergencyStop = x.m_emergencyStop;
  272. m_controlBelt1 = x.m_controlBelt1;
  273. m_controlBelt2 = x.m_controlBelt2;
  274. m_controlCrush1 = x.m_controlCrush1;
  275. m_controlCrush2 = x.m_controlCrush2;
  276. m_controlDivider = x.m_controlDivider;
  277. m_controlCoalDistributor = x.m_controlCoalDistributor;
  278. m_reductionRatio = x.m_reductionRatio;
  279. m_version = x.m_version;
  280. return *this;
  281. }
  282. /*!
  283. * @brief Move assignment.
  284. * @param x Reference to the object SampleCommand that will be copied.
  285. */
  286. eProsima_user_DllExport SampleCommand& operator =(
  287. SampleCommand&& x) noexcept
  288. {
  289. m_maskBits = x.m_maskBits;
  290. m_controlType = x.m_controlType;
  291. m_startSample = x.m_startSample;
  292. m_stopSample = x.m_stopSample;
  293. m_reset = x.m_reset;
  294. m_positionCheck = x.m_positionCheck;
  295. m_emergencyUp = x.m_emergencyUp;
  296. m_emergencyStop = x.m_emergencyStop;
  297. m_controlBelt1 = x.m_controlBelt1;
  298. m_controlBelt2 = x.m_controlBelt2;
  299. m_controlCrush1 = x.m_controlCrush1;
  300. m_controlCrush2 = x.m_controlCrush2;
  301. m_controlDivider = x.m_controlDivider;
  302. m_controlCoalDistributor = x.m_controlCoalDistributor;
  303. m_reductionRatio = x.m_reductionRatio;
  304. m_version = x.m_version;
  305. return *this;
  306. }
  307. /*!
  308. * @brief Comparison operator.
  309. * @param x SampleCommand object to compare.
  310. */
  311. eProsima_user_DllExport bool operator ==(
  312. const SampleCommand& x) const
  313. {
  314. return (m_maskBits == x.m_maskBits &&
  315. m_controlType == x.m_controlType &&
  316. m_startSample == x.m_startSample &&
  317. m_stopSample == x.m_stopSample &&
  318. m_reset == x.m_reset &&
  319. m_positionCheck == x.m_positionCheck &&
  320. m_emergencyUp == x.m_emergencyUp &&
  321. m_emergencyStop == x.m_emergencyStop &&
  322. m_controlBelt1 == x.m_controlBelt1 &&
  323. m_controlBelt2 == x.m_controlBelt2 &&
  324. m_controlCrush1 == x.m_controlCrush1 &&
  325. m_controlCrush2 == x.m_controlCrush2 &&
  326. m_controlDivider == x.m_controlDivider &&
  327. m_controlCoalDistributor == x.m_controlCoalDistributor &&
  328. m_reductionRatio == x.m_reductionRatio &&
  329. m_version == x.m_version);
  330. }
  331. /*!
  332. * @brief Comparison operator.
  333. * @param x SampleCommand object to compare.
  334. */
  335. eProsima_user_DllExport bool operator !=(
  336. const SampleCommand& x) const
  337. {
  338. return !(*this == x);
  339. }
  340. /*!
  341. * @brief This function sets a value in member maskBits
  342. * @param _maskBits New value for member maskBits
  343. */
  344. eProsima_user_DllExport void maskBits(
  345. uint32_t _maskBits)
  346. {
  347. m_maskBits = _maskBits;
  348. }
  349. /*!
  350. * @brief This function returns the value of member maskBits
  351. * @return Value of member maskBits
  352. */
  353. eProsima_user_DllExport uint32_t maskBits() const
  354. {
  355. return m_maskBits;
  356. }
  357. /*!
  358. * @brief This function returns a reference to member maskBits
  359. * @return Reference to member maskBits
  360. */
  361. eProsima_user_DllExport uint32_t& maskBits()
  362. {
  363. return m_maskBits;
  364. }
  365. /*!
  366. * @brief This function sets a value in member controlType
  367. * @param _controlType New value for member controlType
  368. */
  369. eProsima_user_DllExport void controlType(
  370. uint8_t _controlType)
  371. {
  372. m_controlType = _controlType;
  373. }
  374. /*!
  375. * @brief This function returns the value of member controlType
  376. * @return Value of member controlType
  377. */
  378. eProsima_user_DllExport uint8_t controlType() const
  379. {
  380. return m_controlType;
  381. }
  382. /*!
  383. * @brief This function returns a reference to member controlType
  384. * @return Reference to member controlType
  385. */
  386. eProsima_user_DllExport uint8_t& controlType()
  387. {
  388. return m_controlType;
  389. }
  390. /*!
  391. * @brief This function sets a value in member startSample
  392. * @param _startSample New value for member startSample
  393. */
  394. eProsima_user_DllExport void startSample(
  395. CommandState _startSample)
  396. {
  397. m_startSample = _startSample;
  398. }
  399. /*!
  400. * @brief This function returns the value of member startSample
  401. * @return Value of member startSample
  402. */
  403. eProsima_user_DllExport CommandState startSample() const
  404. {
  405. return m_startSample;
  406. }
  407. /*!
  408. * @brief This function returns a reference to member startSample
  409. * @return Reference to member startSample
  410. */
  411. eProsima_user_DllExport CommandState& startSample()
  412. {
  413. return m_startSample;
  414. }
  415. /*!
  416. * @brief This function sets a value in member stopSample
  417. * @param _stopSample New value for member stopSample
  418. */
  419. eProsima_user_DllExport void stopSample(
  420. CommandState _stopSample)
  421. {
  422. m_stopSample = _stopSample;
  423. }
  424. /*!
  425. * @brief This function returns the value of member stopSample
  426. * @return Value of member stopSample
  427. */
  428. eProsima_user_DllExport CommandState stopSample() const
  429. {
  430. return m_stopSample;
  431. }
  432. /*!
  433. * @brief This function returns a reference to member stopSample
  434. * @return Reference to member stopSample
  435. */
  436. eProsima_user_DllExport CommandState& stopSample()
  437. {
  438. return m_stopSample;
  439. }
  440. /*!
  441. * @brief This function sets a value in member reset
  442. * @param _reset New value for member reset
  443. */
  444. eProsima_user_DllExport void reset(
  445. CommandState _reset)
  446. {
  447. m_reset = _reset;
  448. }
  449. /*!
  450. * @brief This function returns the value of member reset
  451. * @return Value of member reset
  452. */
  453. eProsima_user_DllExport CommandState reset() const
  454. {
  455. return m_reset;
  456. }
  457. /*!
  458. * @brief This function returns a reference to member reset
  459. * @return Reference to member reset
  460. */
  461. eProsima_user_DllExport CommandState& reset()
  462. {
  463. return m_reset;
  464. }
  465. /*!
  466. * @brief This function sets a value in member positionCheck
  467. * @param _positionCheck New value for member positionCheck
  468. */
  469. eProsima_user_DllExport void positionCheck(
  470. CommandState _positionCheck)
  471. {
  472. m_positionCheck = _positionCheck;
  473. }
  474. /*!
  475. * @brief This function returns the value of member positionCheck
  476. * @return Value of member positionCheck
  477. */
  478. eProsima_user_DllExport CommandState positionCheck() const
  479. {
  480. return m_positionCheck;
  481. }
  482. /*!
  483. * @brief This function returns a reference to member positionCheck
  484. * @return Reference to member positionCheck
  485. */
  486. eProsima_user_DllExport CommandState& positionCheck()
  487. {
  488. return m_positionCheck;
  489. }
  490. /*!
  491. * @brief This function sets a value in member emergencyUp
  492. * @param _emergencyUp New value for member emergencyUp
  493. */
  494. eProsima_user_DllExport void emergencyUp(
  495. CommandState _emergencyUp)
  496. {
  497. m_emergencyUp = _emergencyUp;
  498. }
  499. /*!
  500. * @brief This function returns the value of member emergencyUp
  501. * @return Value of member emergencyUp
  502. */
  503. eProsima_user_DllExport CommandState emergencyUp() const
  504. {
  505. return m_emergencyUp;
  506. }
  507. /*!
  508. * @brief This function returns a reference to member emergencyUp
  509. * @return Reference to member emergencyUp
  510. */
  511. eProsima_user_DllExport CommandState& emergencyUp()
  512. {
  513. return m_emergencyUp;
  514. }
  515. /*!
  516. * @brief This function sets a value in member emergencyStop
  517. * @param _emergencyStop New value for member emergencyStop
  518. */
  519. eProsima_user_DllExport void emergencyStop(
  520. CommandState _emergencyStop)
  521. {
  522. m_emergencyStop = _emergencyStop;
  523. }
  524. /*!
  525. * @brief This function returns the value of member emergencyStop
  526. * @return Value of member emergencyStop
  527. */
  528. eProsima_user_DllExport CommandState emergencyStop() const
  529. {
  530. return m_emergencyStop;
  531. }
  532. /*!
  533. * @brief This function returns a reference to member emergencyStop
  534. * @return Reference to member emergencyStop
  535. */
  536. eProsima_user_DllExport CommandState& emergencyStop()
  537. {
  538. return m_emergencyStop;
  539. }
  540. /*!
  541. * @brief This function sets a value in member controlBelt1
  542. * @param _controlBelt1 New value for member controlBelt1
  543. */
  544. eProsima_user_DllExport void controlBelt1(
  545. CommandState _controlBelt1)
  546. {
  547. m_controlBelt1 = _controlBelt1;
  548. }
  549. /*!
  550. * @brief This function returns the value of member controlBelt1
  551. * @return Value of member controlBelt1
  552. */
  553. eProsima_user_DllExport CommandState controlBelt1() const
  554. {
  555. return m_controlBelt1;
  556. }
  557. /*!
  558. * @brief This function returns a reference to member controlBelt1
  559. * @return Reference to member controlBelt1
  560. */
  561. eProsima_user_DllExport CommandState& controlBelt1()
  562. {
  563. return m_controlBelt1;
  564. }
  565. /*!
  566. * @brief This function sets a value in member controlBelt2
  567. * @param _controlBelt2 New value for member controlBelt2
  568. */
  569. eProsima_user_DllExport void controlBelt2(
  570. CommandState _controlBelt2)
  571. {
  572. m_controlBelt2 = _controlBelt2;
  573. }
  574. /*!
  575. * @brief This function returns the value of member controlBelt2
  576. * @return Value of member controlBelt2
  577. */
  578. eProsima_user_DllExport CommandState controlBelt2() const
  579. {
  580. return m_controlBelt2;
  581. }
  582. /*!
  583. * @brief This function returns a reference to member controlBelt2
  584. * @return Reference to member controlBelt2
  585. */
  586. eProsima_user_DllExport CommandState& controlBelt2()
  587. {
  588. return m_controlBelt2;
  589. }
  590. /*!
  591. * @brief This function sets a value in member controlCrush1
  592. * @param _controlCrush1 New value for member controlCrush1
  593. */
  594. eProsima_user_DllExport void controlCrush1(
  595. CommandState _controlCrush1)
  596. {
  597. m_controlCrush1 = _controlCrush1;
  598. }
  599. /*!
  600. * @brief This function returns the value of member controlCrush1
  601. * @return Value of member controlCrush1
  602. */
  603. eProsima_user_DllExport CommandState controlCrush1() const
  604. {
  605. return m_controlCrush1;
  606. }
  607. /*!
  608. * @brief This function returns a reference to member controlCrush1
  609. * @return Reference to member controlCrush1
  610. */
  611. eProsima_user_DllExport CommandState& controlCrush1()
  612. {
  613. return m_controlCrush1;
  614. }
  615. /*!
  616. * @brief This function sets a value in member controlCrush2
  617. * @param _controlCrush2 New value for member controlCrush2
  618. */
  619. eProsima_user_DllExport void controlCrush2(
  620. CommandState _controlCrush2)
  621. {
  622. m_controlCrush2 = _controlCrush2;
  623. }
  624. /*!
  625. * @brief This function returns the value of member controlCrush2
  626. * @return Value of member controlCrush2
  627. */
  628. eProsima_user_DllExport CommandState controlCrush2() const
  629. {
  630. return m_controlCrush2;
  631. }
  632. /*!
  633. * @brief This function returns a reference to member controlCrush2
  634. * @return Reference to member controlCrush2
  635. */
  636. eProsima_user_DllExport CommandState& controlCrush2()
  637. {
  638. return m_controlCrush2;
  639. }
  640. /*!
  641. * @brief This function sets a value in member controlDivider
  642. * @param _controlDivider New value for member controlDivider
  643. */
  644. eProsima_user_DllExport void controlDivider(
  645. CommandState _controlDivider)
  646. {
  647. m_controlDivider = _controlDivider;
  648. }
  649. /*!
  650. * @brief This function returns the value of member controlDivider
  651. * @return Value of member controlDivider
  652. */
  653. eProsima_user_DllExport CommandState controlDivider() const
  654. {
  655. return m_controlDivider;
  656. }
  657. /*!
  658. * @brief This function returns a reference to member controlDivider
  659. * @return Reference to member controlDivider
  660. */
  661. eProsima_user_DllExport CommandState& controlDivider()
  662. {
  663. return m_controlDivider;
  664. }
  665. /*!
  666. * @brief This function sets a value in member controlCoalDistributor
  667. * @param _controlCoalDistributor New value for member controlCoalDistributor
  668. */
  669. eProsima_user_DllExport void controlCoalDistributor(
  670. CommandState _controlCoalDistributor)
  671. {
  672. m_controlCoalDistributor = _controlCoalDistributor;
  673. }
  674. /*!
  675. * @brief This function returns the value of member controlCoalDistributor
  676. * @return Value of member controlCoalDistributor
  677. */
  678. eProsima_user_DllExport CommandState controlCoalDistributor() const
  679. {
  680. return m_controlCoalDistributor;
  681. }
  682. /*!
  683. * @brief This function returns a reference to member controlCoalDistributor
  684. * @return Reference to member controlCoalDistributor
  685. */
  686. eProsima_user_DllExport CommandState& controlCoalDistributor()
  687. {
  688. return m_controlCoalDistributor;
  689. }
  690. /*!
  691. * @brief This function sets a value in member reductionRatio
  692. * @param _reductionRatio New value for member reductionRatio
  693. */
  694. eProsima_user_DllExport void reductionRatio(
  695. uint16_t _reductionRatio)
  696. {
  697. m_reductionRatio = _reductionRatio;
  698. }
  699. /*!
  700. * @brief This function returns the value of member reductionRatio
  701. * @return Value of member reductionRatio
  702. */
  703. eProsima_user_DllExport uint16_t reductionRatio() const
  704. {
  705. return m_reductionRatio;
  706. }
  707. /*!
  708. * @brief This function returns a reference to member reductionRatio
  709. * @return Reference to member reductionRatio
  710. */
  711. eProsima_user_DllExport uint16_t& reductionRatio()
  712. {
  713. return m_reductionRatio;
  714. }
  715. /*!
  716. * @brief This function sets a value in member version
  717. * @param _version New value for member version
  718. */
  719. eProsima_user_DllExport void version(
  720. uint8_t _version)
  721. {
  722. m_version = _version;
  723. }
  724. /*!
  725. * @brief This function returns the value of member version
  726. * @return Value of member version
  727. */
  728. eProsima_user_DllExport uint8_t version() const
  729. {
  730. return m_version;
  731. }
  732. /*!
  733. * @brief This function returns a reference to member version
  734. * @return Reference to member version
  735. */
  736. eProsima_user_DllExport uint8_t& version()
  737. {
  738. return m_version;
  739. }
  740. private:
  741. uint32_t m_maskBits{0};
  742. uint8_t m_controlType{0};
  743. CommandState m_startSample{CommandState::STOP};
  744. CommandState m_stopSample{CommandState::STOP};
  745. CommandState m_reset{CommandState::STOP};
  746. CommandState m_positionCheck{CommandState::STOP};
  747. CommandState m_emergencyUp{CommandState::STOP};
  748. CommandState m_emergencyStop{CommandState::STOP};
  749. CommandState m_controlBelt1{CommandState::STOP};
  750. CommandState m_controlBelt2{CommandState::STOP};
  751. CommandState m_controlCrush1{CommandState::STOP};
  752. CommandState m_controlCrush2{CommandState::STOP};
  753. CommandState m_controlDivider{CommandState::STOP};
  754. CommandState m_controlCoalDistributor{CommandState::STOP};
  755. uint16_t m_reductionRatio{0};
  756. uint8_t m_version{0};
  757. };
  758. /*!
  759. * @brief This class represents the enumeration DeviceState defined by the user in the IDL file.
  760. * @ingroup DDSSampleMachine
  761. */
  762. enum class DeviceState : int32_t
  763. {
  764. OFF,
  765. ON,
  766. ERROR
  767. };
  768. /*!
  769. * @brief This class represents the structure SampleMachineInfo defined by the user in the IDL file.
  770. * @ingroup DDSSampleMachine
  771. */
  772. class SampleMachineInfo
  773. {
  774. public:
  775. /*!
  776. * @brief Default constructor.
  777. */
  778. eProsima_user_DllExport SampleMachineInfo()
  779. {
  780. }
  781. /*!
  782. * @brief Default destructor.
  783. */
  784. eProsima_user_DllExport ~SampleMachineInfo()
  785. {
  786. }
  787. /*!
  788. * @brief Copy constructor.
  789. * @param x Reference to the object SampleMachineInfo that will be copied.
  790. */
  791. eProsima_user_DllExport SampleMachineInfo(
  792. const SampleMachineInfo& x)
  793. {
  794. m_maskBits = x.m_maskBits;
  795. m_bigPoint = x.m_bigPoint;
  796. m_smallPoint = x.m_smallPoint;
  797. m_depthPoint = x.m_depthPoint;
  798. m_hasToXY = x.m_hasToXY;
  799. m_hasSamplePoints = x.m_hasSamplePoints;
  800. m_gameOver = x.m_gameOver;
  801. m_backState = x.m_backState;
  802. m_sampleState = x.m_sampleState;
  803. m_belt1State = x.m_belt1State;
  804. m_belt2State = x.m_belt2State;
  805. m_crush1State = x.m_crush1State;
  806. m_crush2State = x.m_crush2State;
  807. m_dividerState = x.m_dividerState;
  808. m_bigLimit = x.m_bigLimit;
  809. m_bigZeroLimit = x.m_bigZeroLimit;
  810. m_smallLimit = x.m_smallLimit;
  811. m_smallZeroLimit = x.m_smallZeroLimit;
  812. m_upLimit = x.m_upLimit;
  813. m_downLimit = x.m_downLimit;
  814. m_version = x.m_version;
  815. }
  816. /*!
  817. * @brief Move constructor.
  818. * @param x Reference to the object SampleMachineInfo that will be copied.
  819. */
  820. eProsima_user_DllExport SampleMachineInfo(
  821. SampleMachineInfo&& x) noexcept
  822. {
  823. m_maskBits = x.m_maskBits;
  824. m_bigPoint = x.m_bigPoint;
  825. m_smallPoint = x.m_smallPoint;
  826. m_depthPoint = x.m_depthPoint;
  827. m_hasToXY = x.m_hasToXY;
  828. m_hasSamplePoints = x.m_hasSamplePoints;
  829. m_gameOver = x.m_gameOver;
  830. m_backState = x.m_backState;
  831. m_sampleState = x.m_sampleState;
  832. m_belt1State = x.m_belt1State;
  833. m_belt2State = x.m_belt2State;
  834. m_crush1State = x.m_crush1State;
  835. m_crush2State = x.m_crush2State;
  836. m_dividerState = x.m_dividerState;
  837. m_bigLimit = x.m_bigLimit;
  838. m_bigZeroLimit = x.m_bigZeroLimit;
  839. m_smallLimit = x.m_smallLimit;
  840. m_smallZeroLimit = x.m_smallZeroLimit;
  841. m_upLimit = x.m_upLimit;
  842. m_downLimit = x.m_downLimit;
  843. m_version = x.m_version;
  844. }
  845. /*!
  846. * @brief Copy assignment.
  847. * @param x Reference to the object SampleMachineInfo that will be copied.
  848. */
  849. eProsima_user_DllExport SampleMachineInfo& operator =(
  850. const SampleMachineInfo& x)
  851. {
  852. m_maskBits = x.m_maskBits;
  853. m_bigPoint = x.m_bigPoint;
  854. m_smallPoint = x.m_smallPoint;
  855. m_depthPoint = x.m_depthPoint;
  856. m_hasToXY = x.m_hasToXY;
  857. m_hasSamplePoints = x.m_hasSamplePoints;
  858. m_gameOver = x.m_gameOver;
  859. m_backState = x.m_backState;
  860. m_sampleState = x.m_sampleState;
  861. m_belt1State = x.m_belt1State;
  862. m_belt2State = x.m_belt2State;
  863. m_crush1State = x.m_crush1State;
  864. m_crush2State = x.m_crush2State;
  865. m_dividerState = x.m_dividerState;
  866. m_bigLimit = x.m_bigLimit;
  867. m_bigZeroLimit = x.m_bigZeroLimit;
  868. m_smallLimit = x.m_smallLimit;
  869. m_smallZeroLimit = x.m_smallZeroLimit;
  870. m_upLimit = x.m_upLimit;
  871. m_downLimit = x.m_downLimit;
  872. m_version = x.m_version;
  873. return *this;
  874. }
  875. /*!
  876. * @brief Move assignment.
  877. * @param x Reference to the object SampleMachineInfo that will be copied.
  878. */
  879. eProsima_user_DllExport SampleMachineInfo& operator =(
  880. SampleMachineInfo&& x) noexcept
  881. {
  882. m_maskBits = x.m_maskBits;
  883. m_bigPoint = x.m_bigPoint;
  884. m_smallPoint = x.m_smallPoint;
  885. m_depthPoint = x.m_depthPoint;
  886. m_hasToXY = x.m_hasToXY;
  887. m_hasSamplePoints = x.m_hasSamplePoints;
  888. m_gameOver = x.m_gameOver;
  889. m_backState = x.m_backState;
  890. m_sampleState = x.m_sampleState;
  891. m_belt1State = x.m_belt1State;
  892. m_belt2State = x.m_belt2State;
  893. m_crush1State = x.m_crush1State;
  894. m_crush2State = x.m_crush2State;
  895. m_dividerState = x.m_dividerState;
  896. m_bigLimit = x.m_bigLimit;
  897. m_bigZeroLimit = x.m_bigZeroLimit;
  898. m_smallLimit = x.m_smallLimit;
  899. m_smallZeroLimit = x.m_smallZeroLimit;
  900. m_upLimit = x.m_upLimit;
  901. m_downLimit = x.m_downLimit;
  902. m_version = x.m_version;
  903. return *this;
  904. }
  905. /*!
  906. * @brief Comparison operator.
  907. * @param x SampleMachineInfo object to compare.
  908. */
  909. eProsima_user_DllExport bool operator ==(
  910. const SampleMachineInfo& x) const
  911. {
  912. return (m_maskBits == x.m_maskBits &&
  913. m_bigPoint == x.m_bigPoint &&
  914. m_smallPoint == x.m_smallPoint &&
  915. m_depthPoint == x.m_depthPoint &&
  916. m_hasToXY == x.m_hasToXY &&
  917. m_hasSamplePoints == x.m_hasSamplePoints &&
  918. m_gameOver == x.m_gameOver &&
  919. m_backState == x.m_backState &&
  920. m_sampleState == x.m_sampleState &&
  921. m_belt1State == x.m_belt1State &&
  922. m_belt2State == x.m_belt2State &&
  923. m_crush1State == x.m_crush1State &&
  924. m_crush2State == x.m_crush2State &&
  925. m_dividerState == x.m_dividerState &&
  926. m_bigLimit == x.m_bigLimit &&
  927. m_bigZeroLimit == x.m_bigZeroLimit &&
  928. m_smallLimit == x.m_smallLimit &&
  929. m_smallZeroLimit == x.m_smallZeroLimit &&
  930. m_upLimit == x.m_upLimit &&
  931. m_downLimit == x.m_downLimit &&
  932. m_version == x.m_version);
  933. }
  934. /*!
  935. * @brief Comparison operator.
  936. * @param x SampleMachineInfo object to compare.
  937. */
  938. eProsima_user_DllExport bool operator !=(
  939. const SampleMachineInfo& x) const
  940. {
  941. return !(*this == x);
  942. }
  943. /*!
  944. * @brief This function sets a value in member maskBits
  945. * @param _maskBits New value for member maskBits
  946. */
  947. eProsima_user_DllExport void maskBits(
  948. uint32_t _maskBits)
  949. {
  950. m_maskBits = _maskBits;
  951. }
  952. /*!
  953. * @brief This function returns the value of member maskBits
  954. * @return Value of member maskBits
  955. */
  956. eProsima_user_DllExport uint32_t maskBits() const
  957. {
  958. return m_maskBits;
  959. }
  960. /*!
  961. * @brief This function returns a reference to member maskBits
  962. * @return Reference to member maskBits
  963. */
  964. eProsima_user_DllExport uint32_t& maskBits()
  965. {
  966. return m_maskBits;
  967. }
  968. /*!
  969. * @brief This function sets a value in member bigPoint
  970. * @param _bigPoint New value for member bigPoint
  971. */
  972. eProsima_user_DllExport void bigPoint(
  973. uint16_t _bigPoint)
  974. {
  975. m_bigPoint = _bigPoint;
  976. }
  977. /*!
  978. * @brief This function returns the value of member bigPoint
  979. * @return Value of member bigPoint
  980. */
  981. eProsima_user_DllExport uint16_t bigPoint() const
  982. {
  983. return m_bigPoint;
  984. }
  985. /*!
  986. * @brief This function returns a reference to member bigPoint
  987. * @return Reference to member bigPoint
  988. */
  989. eProsima_user_DllExport uint16_t& bigPoint()
  990. {
  991. return m_bigPoint;
  992. }
  993. /*!
  994. * @brief This function sets a value in member smallPoint
  995. * @param _smallPoint New value for member smallPoint
  996. */
  997. eProsima_user_DllExport void smallPoint(
  998. uint16_t _smallPoint)
  999. {
  1000. m_smallPoint = _smallPoint;
  1001. }
  1002. /*!
  1003. * @brief This function returns the value of member smallPoint
  1004. * @return Value of member smallPoint
  1005. */
  1006. eProsima_user_DllExport uint16_t smallPoint() const
  1007. {
  1008. return m_smallPoint;
  1009. }
  1010. /*!
  1011. * @brief This function returns a reference to member smallPoint
  1012. * @return Reference to member smallPoint
  1013. */
  1014. eProsima_user_DllExport uint16_t& smallPoint()
  1015. {
  1016. return m_smallPoint;
  1017. }
  1018. /*!
  1019. * @brief This function sets a value in member depthPoint
  1020. * @param _depthPoint New value for member depthPoint
  1021. */
  1022. eProsima_user_DllExport void depthPoint(
  1023. uint16_t _depthPoint)
  1024. {
  1025. m_depthPoint = _depthPoint;
  1026. }
  1027. /*!
  1028. * @brief This function returns the value of member depthPoint
  1029. * @return Value of member depthPoint
  1030. */
  1031. eProsima_user_DllExport uint16_t depthPoint() const
  1032. {
  1033. return m_depthPoint;
  1034. }
  1035. /*!
  1036. * @brief This function returns a reference to member depthPoint
  1037. * @return Reference to member depthPoint
  1038. */
  1039. eProsima_user_DllExport uint16_t& depthPoint()
  1040. {
  1041. return m_depthPoint;
  1042. }
  1043. /*!
  1044. * @brief This function sets a value in member hasToXY
  1045. * @param _hasToXY New value for member hasToXY
  1046. */
  1047. eProsima_user_DllExport void hasToXY(
  1048. uint8_t _hasToXY)
  1049. {
  1050. m_hasToXY = _hasToXY;
  1051. }
  1052. /*!
  1053. * @brief This function returns the value of member hasToXY
  1054. * @return Value of member hasToXY
  1055. */
  1056. eProsima_user_DllExport uint8_t hasToXY() const
  1057. {
  1058. return m_hasToXY;
  1059. }
  1060. /*!
  1061. * @brief This function returns a reference to member hasToXY
  1062. * @return Reference to member hasToXY
  1063. */
  1064. eProsima_user_DllExport uint8_t& hasToXY()
  1065. {
  1066. return m_hasToXY;
  1067. }
  1068. /*!
  1069. * @brief This function sets a value in member hasSamplePoints
  1070. * @param _hasSamplePoints New value for member hasSamplePoints
  1071. */
  1072. eProsima_user_DllExport void hasSamplePoints(
  1073. uint8_t _hasSamplePoints)
  1074. {
  1075. m_hasSamplePoints = _hasSamplePoints;
  1076. }
  1077. /*!
  1078. * @brief This function returns the value of member hasSamplePoints
  1079. * @return Value of member hasSamplePoints
  1080. */
  1081. eProsima_user_DllExport uint8_t hasSamplePoints() const
  1082. {
  1083. return m_hasSamplePoints;
  1084. }
  1085. /*!
  1086. * @brief This function returns a reference to member hasSamplePoints
  1087. * @return Reference to member hasSamplePoints
  1088. */
  1089. eProsima_user_DllExport uint8_t& hasSamplePoints()
  1090. {
  1091. return m_hasSamplePoints;
  1092. }
  1093. /*!
  1094. * @brief This function sets a value in member gameOver
  1095. * @param _gameOver New value for member gameOver
  1096. */
  1097. eProsima_user_DllExport void gameOver(
  1098. uint8_t _gameOver)
  1099. {
  1100. m_gameOver = _gameOver;
  1101. }
  1102. /*!
  1103. * @brief This function returns the value of member gameOver
  1104. * @return Value of member gameOver
  1105. */
  1106. eProsima_user_DllExport uint8_t gameOver() const
  1107. {
  1108. return m_gameOver;
  1109. }
  1110. /*!
  1111. * @brief This function returns a reference to member gameOver
  1112. * @return Reference to member gameOver
  1113. */
  1114. eProsima_user_DllExport uint8_t& gameOver()
  1115. {
  1116. return m_gameOver;
  1117. }
  1118. /*!
  1119. * @brief This function sets a value in member backState
  1120. * @param _backState New value for member backState
  1121. */
  1122. eProsima_user_DllExport void backState(
  1123. uint16_t _backState)
  1124. {
  1125. m_backState = _backState;
  1126. }
  1127. /*!
  1128. * @brief This function returns the value of member backState
  1129. * @return Value of member backState
  1130. */
  1131. eProsima_user_DllExport uint16_t backState() const
  1132. {
  1133. return m_backState;
  1134. }
  1135. /*!
  1136. * @brief This function returns a reference to member backState
  1137. * @return Reference to member backState
  1138. */
  1139. eProsima_user_DllExport uint16_t& backState()
  1140. {
  1141. return m_backState;
  1142. }
  1143. /*!
  1144. * @brief This function sets a value in member sampleState
  1145. * @param _sampleState New value for member sampleState
  1146. */
  1147. eProsima_user_DllExport void sampleState(
  1148. DeviceState _sampleState)
  1149. {
  1150. m_sampleState = _sampleState;
  1151. }
  1152. /*!
  1153. * @brief This function returns the value of member sampleState
  1154. * @return Value of member sampleState
  1155. */
  1156. eProsima_user_DllExport DeviceState sampleState() const
  1157. {
  1158. return m_sampleState;
  1159. }
  1160. /*!
  1161. * @brief This function returns a reference to member sampleState
  1162. * @return Reference to member sampleState
  1163. */
  1164. eProsima_user_DllExport DeviceState& sampleState()
  1165. {
  1166. return m_sampleState;
  1167. }
  1168. /*!
  1169. * @brief This function sets a value in member belt1State
  1170. * @param _belt1State New value for member belt1State
  1171. */
  1172. eProsima_user_DllExport void belt1State(
  1173. DeviceState _belt1State)
  1174. {
  1175. m_belt1State = _belt1State;
  1176. }
  1177. /*!
  1178. * @brief This function returns the value of member belt1State
  1179. * @return Value of member belt1State
  1180. */
  1181. eProsima_user_DllExport DeviceState belt1State() const
  1182. {
  1183. return m_belt1State;
  1184. }
  1185. /*!
  1186. * @brief This function returns a reference to member belt1State
  1187. * @return Reference to member belt1State
  1188. */
  1189. eProsima_user_DllExport DeviceState& belt1State()
  1190. {
  1191. return m_belt1State;
  1192. }
  1193. /*!
  1194. * @brief This function sets a value in member belt2State
  1195. * @param _belt2State New value for member belt2State
  1196. */
  1197. eProsima_user_DllExport void belt2State(
  1198. DeviceState _belt2State)
  1199. {
  1200. m_belt2State = _belt2State;
  1201. }
  1202. /*!
  1203. * @brief This function returns the value of member belt2State
  1204. * @return Value of member belt2State
  1205. */
  1206. eProsima_user_DllExport DeviceState belt2State() const
  1207. {
  1208. return m_belt2State;
  1209. }
  1210. /*!
  1211. * @brief This function returns a reference to member belt2State
  1212. * @return Reference to member belt2State
  1213. */
  1214. eProsima_user_DllExport DeviceState& belt2State()
  1215. {
  1216. return m_belt2State;
  1217. }
  1218. /*!
  1219. * @brief This function sets a value in member crush1State
  1220. * @param _crush1State New value for member crush1State
  1221. */
  1222. eProsima_user_DllExport void crush1State(
  1223. DeviceState _crush1State)
  1224. {
  1225. m_crush1State = _crush1State;
  1226. }
  1227. /*!
  1228. * @brief This function returns the value of member crush1State
  1229. * @return Value of member crush1State
  1230. */
  1231. eProsima_user_DllExport DeviceState crush1State() const
  1232. {
  1233. return m_crush1State;
  1234. }
  1235. /*!
  1236. * @brief This function returns a reference to member crush1State
  1237. * @return Reference to member crush1State
  1238. */
  1239. eProsima_user_DllExport DeviceState& crush1State()
  1240. {
  1241. return m_crush1State;
  1242. }
  1243. /*!
  1244. * @brief This function sets a value in member crush2State
  1245. * @param _crush2State New value for member crush2State
  1246. */
  1247. eProsima_user_DllExport void crush2State(
  1248. DeviceState _crush2State)
  1249. {
  1250. m_crush2State = _crush2State;
  1251. }
  1252. /*!
  1253. * @brief This function returns the value of member crush2State
  1254. * @return Value of member crush2State
  1255. */
  1256. eProsima_user_DllExport DeviceState crush2State() const
  1257. {
  1258. return m_crush2State;
  1259. }
  1260. /*!
  1261. * @brief This function returns a reference to member crush2State
  1262. * @return Reference to member crush2State
  1263. */
  1264. eProsima_user_DllExport DeviceState& crush2State()
  1265. {
  1266. return m_crush2State;
  1267. }
  1268. /*!
  1269. * @brief This function sets a value in member dividerState
  1270. * @param _dividerState New value for member dividerState
  1271. */
  1272. eProsima_user_DllExport void dividerState(
  1273. DeviceState _dividerState)
  1274. {
  1275. m_dividerState = _dividerState;
  1276. }
  1277. /*!
  1278. * @brief This function returns the value of member dividerState
  1279. * @return Value of member dividerState
  1280. */
  1281. eProsima_user_DllExport DeviceState dividerState() const
  1282. {
  1283. return m_dividerState;
  1284. }
  1285. /*!
  1286. * @brief This function returns a reference to member dividerState
  1287. * @return Reference to member dividerState
  1288. */
  1289. eProsima_user_DllExport DeviceState& dividerState()
  1290. {
  1291. return m_dividerState;
  1292. }
  1293. /*!
  1294. * @brief This function sets a value in member bigLimit
  1295. * @param _bigLimit New value for member bigLimit
  1296. */
  1297. eProsima_user_DllExport void bigLimit(
  1298. uint8_t _bigLimit)
  1299. {
  1300. m_bigLimit = _bigLimit;
  1301. }
  1302. /*!
  1303. * @brief This function returns the value of member bigLimit
  1304. * @return Value of member bigLimit
  1305. */
  1306. eProsima_user_DllExport uint8_t bigLimit() const
  1307. {
  1308. return m_bigLimit;
  1309. }
  1310. /*!
  1311. * @brief This function returns a reference to member bigLimit
  1312. * @return Reference to member bigLimit
  1313. */
  1314. eProsima_user_DllExport uint8_t& bigLimit()
  1315. {
  1316. return m_bigLimit;
  1317. }
  1318. /*!
  1319. * @brief This function sets a value in member bigZeroLimit
  1320. * @param _bigZeroLimit New value for member bigZeroLimit
  1321. */
  1322. eProsima_user_DllExport void bigZeroLimit(
  1323. uint8_t _bigZeroLimit)
  1324. {
  1325. m_bigZeroLimit = _bigZeroLimit;
  1326. }
  1327. /*!
  1328. * @brief This function returns the value of member bigZeroLimit
  1329. * @return Value of member bigZeroLimit
  1330. */
  1331. eProsima_user_DllExport uint8_t bigZeroLimit() const
  1332. {
  1333. return m_bigZeroLimit;
  1334. }
  1335. /*!
  1336. * @brief This function returns a reference to member bigZeroLimit
  1337. * @return Reference to member bigZeroLimit
  1338. */
  1339. eProsima_user_DllExport uint8_t& bigZeroLimit()
  1340. {
  1341. return m_bigZeroLimit;
  1342. }
  1343. /*!
  1344. * @brief This function sets a value in member smallLimit
  1345. * @param _smallLimit New value for member smallLimit
  1346. */
  1347. eProsima_user_DllExport void smallLimit(
  1348. uint8_t _smallLimit)
  1349. {
  1350. m_smallLimit = _smallLimit;
  1351. }
  1352. /*!
  1353. * @brief This function returns the value of member smallLimit
  1354. * @return Value of member smallLimit
  1355. */
  1356. eProsima_user_DllExport uint8_t smallLimit() const
  1357. {
  1358. return m_smallLimit;
  1359. }
  1360. /*!
  1361. * @brief This function returns a reference to member smallLimit
  1362. * @return Reference to member smallLimit
  1363. */
  1364. eProsima_user_DllExport uint8_t& smallLimit()
  1365. {
  1366. return m_smallLimit;
  1367. }
  1368. /*!
  1369. * @brief This function sets a value in member smallZeroLimit
  1370. * @param _smallZeroLimit New value for member smallZeroLimit
  1371. */
  1372. eProsima_user_DllExport void smallZeroLimit(
  1373. uint8_t _smallZeroLimit)
  1374. {
  1375. m_smallZeroLimit = _smallZeroLimit;
  1376. }
  1377. /*!
  1378. * @brief This function returns the value of member smallZeroLimit
  1379. * @return Value of member smallZeroLimit
  1380. */
  1381. eProsima_user_DllExport uint8_t smallZeroLimit() const
  1382. {
  1383. return m_smallZeroLimit;
  1384. }
  1385. /*!
  1386. * @brief This function returns a reference to member smallZeroLimit
  1387. * @return Reference to member smallZeroLimit
  1388. */
  1389. eProsima_user_DllExport uint8_t& smallZeroLimit()
  1390. {
  1391. return m_smallZeroLimit;
  1392. }
  1393. /*!
  1394. * @brief This function sets a value in member upLimit
  1395. * @param _upLimit New value for member upLimit
  1396. */
  1397. eProsima_user_DllExport void upLimit(
  1398. uint8_t _upLimit)
  1399. {
  1400. m_upLimit = _upLimit;
  1401. }
  1402. /*!
  1403. * @brief This function returns the value of member upLimit
  1404. * @return Value of member upLimit
  1405. */
  1406. eProsima_user_DllExport uint8_t upLimit() const
  1407. {
  1408. return m_upLimit;
  1409. }
  1410. /*!
  1411. * @brief This function returns a reference to member upLimit
  1412. * @return Reference to member upLimit
  1413. */
  1414. eProsima_user_DllExport uint8_t& upLimit()
  1415. {
  1416. return m_upLimit;
  1417. }
  1418. /*!
  1419. * @brief This function sets a value in member downLimit
  1420. * @param _downLimit New value for member downLimit
  1421. */
  1422. eProsima_user_DllExport void downLimit(
  1423. uint8_t _downLimit)
  1424. {
  1425. m_downLimit = _downLimit;
  1426. }
  1427. /*!
  1428. * @brief This function returns the value of member downLimit
  1429. * @return Value of member downLimit
  1430. */
  1431. eProsima_user_DllExport uint8_t downLimit() const
  1432. {
  1433. return m_downLimit;
  1434. }
  1435. /*!
  1436. * @brief This function returns a reference to member downLimit
  1437. * @return Reference to member downLimit
  1438. */
  1439. eProsima_user_DllExport uint8_t& downLimit()
  1440. {
  1441. return m_downLimit;
  1442. }
  1443. /*!
  1444. * @brief This function sets a value in member version
  1445. * @param _version New value for member version
  1446. */
  1447. eProsima_user_DllExport void version(
  1448. uint8_t _version)
  1449. {
  1450. m_version = _version;
  1451. }
  1452. /*!
  1453. * @brief This function returns the value of member version
  1454. * @return Value of member version
  1455. */
  1456. eProsima_user_DllExport uint8_t version() const
  1457. {
  1458. return m_version;
  1459. }
  1460. /*!
  1461. * @brief This function returns a reference to member version
  1462. * @return Reference to member version
  1463. */
  1464. eProsima_user_DllExport uint8_t& version()
  1465. {
  1466. return m_version;
  1467. }
  1468. private:
  1469. uint32_t m_maskBits{0};
  1470. uint16_t m_bigPoint{0};
  1471. uint16_t m_smallPoint{0};
  1472. uint16_t m_depthPoint{0};
  1473. uint8_t m_hasToXY{0};
  1474. uint8_t m_hasSamplePoints{0};
  1475. uint8_t m_gameOver{0};
  1476. uint16_t m_backState{0};
  1477. DeviceState m_sampleState{DeviceState::OFF};
  1478. DeviceState m_belt1State{DeviceState::OFF};
  1479. DeviceState m_belt2State{DeviceState::OFF};
  1480. DeviceState m_crush1State{DeviceState::OFF};
  1481. DeviceState m_crush2State{DeviceState::OFF};
  1482. DeviceState m_dividerState{DeviceState::OFF};
  1483. uint8_t m_bigLimit{0};
  1484. uint8_t m_bigZeroLimit{0};
  1485. uint8_t m_smallLimit{0};
  1486. uint8_t m_smallZeroLimit{0};
  1487. uint8_t m_upLimit{0};
  1488. uint8_t m_downLimit{0};
  1489. uint8_t m_version{0};
  1490. };
  1491. /*!
  1492. * @brief This class represents the enumeration DropChoice defined by the user in the IDL file.
  1493. * @ingroup DDSSampleMachine
  1494. */
  1495. enum class DropChoice : int32_t
  1496. {
  1497. BYPASS,
  1498. CRUSHER
  1499. };
  1500. /*!
  1501. * @brief This class represents the structure SamplePoints defined by the user in the IDL file.
  1502. * @ingroup DDSSampleMachine
  1503. */
  1504. class SamplePoints
  1505. {
  1506. public:
  1507. /*!
  1508. * @brief Default constructor.
  1509. */
  1510. eProsima_user_DllExport SamplePoints()
  1511. {
  1512. }
  1513. /*!
  1514. * @brief Default destructor.
  1515. */
  1516. eProsima_user_DllExport ~SamplePoints()
  1517. {
  1518. }
  1519. /*!
  1520. * @brief Copy constructor.
  1521. * @param x Reference to the object SamplePoints that will be copied.
  1522. */
  1523. eProsima_user_DllExport SamplePoints(
  1524. const SamplePoints& x)
  1525. {
  1526. m_totalPoints = x.m_totalPoints;
  1527. m_x1 = x.m_x1;
  1528. m_y1 = x.m_y1;
  1529. m_z1 = x.m_z1;
  1530. m_o1 = x.m_o1;
  1531. m_x2 = x.m_x2;
  1532. m_y2 = x.m_y2;
  1533. m_z2 = x.m_z2;
  1534. m_o2 = x.m_o2;
  1535. m_x3 = x.m_x3;
  1536. m_y3 = x.m_y3;
  1537. m_z3 = x.m_z3;
  1538. m_o3 = x.m_o3;
  1539. m_x4 = x.m_x4;
  1540. m_y4 = x.m_y4;
  1541. m_z4 = x.m_z4;
  1542. m_o4 = x.m_o4;
  1543. m_x5 = x.m_x5;
  1544. m_y5 = x.m_y5;
  1545. m_z5 = x.m_z5;
  1546. m_o5 = x.m_o5;
  1547. m_x6 = x.m_x6;
  1548. m_y6 = x.m_y6;
  1549. m_z6 = x.m_z6;
  1550. m_o6 = x.m_o6;
  1551. }
  1552. /*!
  1553. * @brief Move constructor.
  1554. * @param x Reference to the object SamplePoints that will be copied.
  1555. */
  1556. eProsima_user_DllExport SamplePoints(
  1557. SamplePoints&& x) noexcept
  1558. {
  1559. m_totalPoints = x.m_totalPoints;
  1560. m_x1 = x.m_x1;
  1561. m_y1 = x.m_y1;
  1562. m_z1 = x.m_z1;
  1563. m_o1 = x.m_o1;
  1564. m_x2 = x.m_x2;
  1565. m_y2 = x.m_y2;
  1566. m_z2 = x.m_z2;
  1567. m_o2 = x.m_o2;
  1568. m_x3 = x.m_x3;
  1569. m_y3 = x.m_y3;
  1570. m_z3 = x.m_z3;
  1571. m_o3 = x.m_o3;
  1572. m_x4 = x.m_x4;
  1573. m_y4 = x.m_y4;
  1574. m_z4 = x.m_z4;
  1575. m_o4 = x.m_o4;
  1576. m_x5 = x.m_x5;
  1577. m_y5 = x.m_y5;
  1578. m_z5 = x.m_z5;
  1579. m_o5 = x.m_o5;
  1580. m_x6 = x.m_x6;
  1581. m_y6 = x.m_y6;
  1582. m_z6 = x.m_z6;
  1583. m_o6 = x.m_o6;
  1584. }
  1585. /*!
  1586. * @brief Copy assignment.
  1587. * @param x Reference to the object SamplePoints that will be copied.
  1588. */
  1589. eProsima_user_DllExport SamplePoints& operator =(
  1590. const SamplePoints& x)
  1591. {
  1592. m_totalPoints = x.m_totalPoints;
  1593. m_x1 = x.m_x1;
  1594. m_y1 = x.m_y1;
  1595. m_z1 = x.m_z1;
  1596. m_o1 = x.m_o1;
  1597. m_x2 = x.m_x2;
  1598. m_y2 = x.m_y2;
  1599. m_z2 = x.m_z2;
  1600. m_o2 = x.m_o2;
  1601. m_x3 = x.m_x3;
  1602. m_y3 = x.m_y3;
  1603. m_z3 = x.m_z3;
  1604. m_o3 = x.m_o3;
  1605. m_x4 = x.m_x4;
  1606. m_y4 = x.m_y4;
  1607. m_z4 = x.m_z4;
  1608. m_o4 = x.m_o4;
  1609. m_x5 = x.m_x5;
  1610. m_y5 = x.m_y5;
  1611. m_z5 = x.m_z5;
  1612. m_o5 = x.m_o5;
  1613. m_x6 = x.m_x6;
  1614. m_y6 = x.m_y6;
  1615. m_z6 = x.m_z6;
  1616. m_o6 = x.m_o6;
  1617. return *this;
  1618. }
  1619. /*!
  1620. * @brief Move assignment.
  1621. * @param x Reference to the object SamplePoints that will be copied.
  1622. */
  1623. eProsima_user_DllExport SamplePoints& operator =(
  1624. SamplePoints&& x) noexcept
  1625. {
  1626. m_totalPoints = x.m_totalPoints;
  1627. m_x1 = x.m_x1;
  1628. m_y1 = x.m_y1;
  1629. m_z1 = x.m_z1;
  1630. m_o1 = x.m_o1;
  1631. m_x2 = x.m_x2;
  1632. m_y2 = x.m_y2;
  1633. m_z2 = x.m_z2;
  1634. m_o2 = x.m_o2;
  1635. m_x3 = x.m_x3;
  1636. m_y3 = x.m_y3;
  1637. m_z3 = x.m_z3;
  1638. m_o3 = x.m_o3;
  1639. m_x4 = x.m_x4;
  1640. m_y4 = x.m_y4;
  1641. m_z4 = x.m_z4;
  1642. m_o4 = x.m_o4;
  1643. m_x5 = x.m_x5;
  1644. m_y5 = x.m_y5;
  1645. m_z5 = x.m_z5;
  1646. m_o5 = x.m_o5;
  1647. m_x6 = x.m_x6;
  1648. m_y6 = x.m_y6;
  1649. m_z6 = x.m_z6;
  1650. m_o6 = x.m_o6;
  1651. return *this;
  1652. }
  1653. /*!
  1654. * @brief Comparison operator.
  1655. * @param x SamplePoints object to compare.
  1656. */
  1657. eProsima_user_DllExport bool operator ==(
  1658. const SamplePoints& x) const
  1659. {
  1660. return (m_totalPoints == x.m_totalPoints &&
  1661. m_x1 == x.m_x1 &&
  1662. m_y1 == x.m_y1 &&
  1663. m_z1 == x.m_z1 &&
  1664. m_o1 == x.m_o1 &&
  1665. m_x2 == x.m_x2 &&
  1666. m_y2 == x.m_y2 &&
  1667. m_z2 == x.m_z2 &&
  1668. m_o2 == x.m_o2 &&
  1669. m_x3 == x.m_x3 &&
  1670. m_y3 == x.m_y3 &&
  1671. m_z3 == x.m_z3 &&
  1672. m_o3 == x.m_o3 &&
  1673. m_x4 == x.m_x4 &&
  1674. m_y4 == x.m_y4 &&
  1675. m_z4 == x.m_z4 &&
  1676. m_o4 == x.m_o4 &&
  1677. m_x5 == x.m_x5 &&
  1678. m_y5 == x.m_y5 &&
  1679. m_z5 == x.m_z5 &&
  1680. m_o5 == x.m_o5 &&
  1681. m_x6 == x.m_x6 &&
  1682. m_y6 == x.m_y6 &&
  1683. m_z6 == x.m_z6 &&
  1684. m_o6 == x.m_o6);
  1685. }
  1686. /*!
  1687. * @brief Comparison operator.
  1688. * @param x SamplePoints object to compare.
  1689. */
  1690. eProsima_user_DllExport bool operator !=(
  1691. const SamplePoints& x) const
  1692. {
  1693. return !(*this == x);
  1694. }
  1695. /*!
  1696. * @brief This function sets a value in member totalPoints
  1697. * @param _totalPoints New value for member totalPoints
  1698. */
  1699. eProsima_user_DllExport void totalPoints(
  1700. uint8_t _totalPoints)
  1701. {
  1702. m_totalPoints = _totalPoints;
  1703. }
  1704. /*!
  1705. * @brief This function returns the value of member totalPoints
  1706. * @return Value of member totalPoints
  1707. */
  1708. eProsima_user_DllExport uint8_t totalPoints() const
  1709. {
  1710. return m_totalPoints;
  1711. }
  1712. /*!
  1713. * @brief This function returns a reference to member totalPoints
  1714. * @return Reference to member totalPoints
  1715. */
  1716. eProsima_user_DllExport uint8_t& totalPoints()
  1717. {
  1718. return m_totalPoints;
  1719. }
  1720. /*!
  1721. * @brief This function sets a value in member x1
  1722. * @param _x1 New value for member x1
  1723. */
  1724. eProsima_user_DllExport void x1(
  1725. uint16_t _x1)
  1726. {
  1727. m_x1 = _x1;
  1728. }
  1729. /*!
  1730. * @brief This function returns the value of member x1
  1731. * @return Value of member x1
  1732. */
  1733. eProsima_user_DllExport uint16_t x1() const
  1734. {
  1735. return m_x1;
  1736. }
  1737. /*!
  1738. * @brief This function returns a reference to member x1
  1739. * @return Reference to member x1
  1740. */
  1741. eProsima_user_DllExport uint16_t& x1()
  1742. {
  1743. return m_x1;
  1744. }
  1745. /*!
  1746. * @brief This function sets a value in member y1
  1747. * @param _y1 New value for member y1
  1748. */
  1749. eProsima_user_DllExport void y1(
  1750. uint16_t _y1)
  1751. {
  1752. m_y1 = _y1;
  1753. }
  1754. /*!
  1755. * @brief This function returns the value of member y1
  1756. * @return Value of member y1
  1757. */
  1758. eProsima_user_DllExport uint16_t y1() const
  1759. {
  1760. return m_y1;
  1761. }
  1762. /*!
  1763. * @brief This function returns a reference to member y1
  1764. * @return Reference to member y1
  1765. */
  1766. eProsima_user_DllExport uint16_t& y1()
  1767. {
  1768. return m_y1;
  1769. }
  1770. /*!
  1771. * @brief This function sets a value in member z1
  1772. * @param _z1 New value for member z1
  1773. */
  1774. eProsima_user_DllExport void z1(
  1775. uint16_t _z1)
  1776. {
  1777. m_z1 = _z1;
  1778. }
  1779. /*!
  1780. * @brief This function returns the value of member z1
  1781. * @return Value of member z1
  1782. */
  1783. eProsima_user_DllExport uint16_t z1() const
  1784. {
  1785. return m_z1;
  1786. }
  1787. /*!
  1788. * @brief This function returns a reference to member z1
  1789. * @return Reference to member z1
  1790. */
  1791. eProsima_user_DllExport uint16_t& z1()
  1792. {
  1793. return m_z1;
  1794. }
  1795. /*!
  1796. * @brief This function sets a value in member o1
  1797. * @param _o1 New value for member o1
  1798. */
  1799. eProsima_user_DllExport void o1(
  1800. DropChoice _o1)
  1801. {
  1802. m_o1 = _o1;
  1803. }
  1804. /*!
  1805. * @brief This function returns the value of member o1
  1806. * @return Value of member o1
  1807. */
  1808. eProsima_user_DllExport DropChoice o1() const
  1809. {
  1810. return m_o1;
  1811. }
  1812. /*!
  1813. * @brief This function returns a reference to member o1
  1814. * @return Reference to member o1
  1815. */
  1816. eProsima_user_DllExport DropChoice& o1()
  1817. {
  1818. return m_o1;
  1819. }
  1820. /*!
  1821. * @brief This function sets a value in member x2
  1822. * @param _x2 New value for member x2
  1823. */
  1824. eProsima_user_DllExport void x2(
  1825. uint16_t _x2)
  1826. {
  1827. m_x2 = _x2;
  1828. }
  1829. /*!
  1830. * @brief This function returns the value of member x2
  1831. * @return Value of member x2
  1832. */
  1833. eProsima_user_DllExport uint16_t x2() const
  1834. {
  1835. return m_x2;
  1836. }
  1837. /*!
  1838. * @brief This function returns a reference to member x2
  1839. * @return Reference to member x2
  1840. */
  1841. eProsima_user_DllExport uint16_t& x2()
  1842. {
  1843. return m_x2;
  1844. }
  1845. /*!
  1846. * @brief This function sets a value in member y2
  1847. * @param _y2 New value for member y2
  1848. */
  1849. eProsima_user_DllExport void y2(
  1850. uint16_t _y2)
  1851. {
  1852. m_y2 = _y2;
  1853. }
  1854. /*!
  1855. * @brief This function returns the value of member y2
  1856. * @return Value of member y2
  1857. */
  1858. eProsima_user_DllExport uint16_t y2() const
  1859. {
  1860. return m_y2;
  1861. }
  1862. /*!
  1863. * @brief This function returns a reference to member y2
  1864. * @return Reference to member y2
  1865. */
  1866. eProsima_user_DllExport uint16_t& y2()
  1867. {
  1868. return m_y2;
  1869. }
  1870. /*!
  1871. * @brief This function sets a value in member z2
  1872. * @param _z2 New value for member z2
  1873. */
  1874. eProsima_user_DllExport void z2(
  1875. uint16_t _z2)
  1876. {
  1877. m_z2 = _z2;
  1878. }
  1879. /*!
  1880. * @brief This function returns the value of member z2
  1881. * @return Value of member z2
  1882. */
  1883. eProsima_user_DllExport uint16_t z2() const
  1884. {
  1885. return m_z2;
  1886. }
  1887. /*!
  1888. * @brief This function returns a reference to member z2
  1889. * @return Reference to member z2
  1890. */
  1891. eProsima_user_DllExport uint16_t& z2()
  1892. {
  1893. return m_z2;
  1894. }
  1895. /*!
  1896. * @brief This function sets a value in member o2
  1897. * @param _o2 New value for member o2
  1898. */
  1899. eProsima_user_DllExport void o2(
  1900. DropChoice _o2)
  1901. {
  1902. m_o2 = _o2;
  1903. }
  1904. /*!
  1905. * @brief This function returns the value of member o2
  1906. * @return Value of member o2
  1907. */
  1908. eProsima_user_DllExport DropChoice o2() const
  1909. {
  1910. return m_o2;
  1911. }
  1912. /*!
  1913. * @brief This function returns a reference to member o2
  1914. * @return Reference to member o2
  1915. */
  1916. eProsima_user_DllExport DropChoice& o2()
  1917. {
  1918. return m_o2;
  1919. }
  1920. /*!
  1921. * @brief This function sets a value in member x3
  1922. * @param _x3 New value for member x3
  1923. */
  1924. eProsima_user_DllExport void x3(
  1925. uint16_t _x3)
  1926. {
  1927. m_x3 = _x3;
  1928. }
  1929. /*!
  1930. * @brief This function returns the value of member x3
  1931. * @return Value of member x3
  1932. */
  1933. eProsima_user_DllExport uint16_t x3() const
  1934. {
  1935. return m_x3;
  1936. }
  1937. /*!
  1938. * @brief This function returns a reference to member x3
  1939. * @return Reference to member x3
  1940. */
  1941. eProsima_user_DllExport uint16_t& x3()
  1942. {
  1943. return m_x3;
  1944. }
  1945. /*!
  1946. * @brief This function sets a value in member y3
  1947. * @param _y3 New value for member y3
  1948. */
  1949. eProsima_user_DllExport void y3(
  1950. uint16_t _y3)
  1951. {
  1952. m_y3 = _y3;
  1953. }
  1954. /*!
  1955. * @brief This function returns the value of member y3
  1956. * @return Value of member y3
  1957. */
  1958. eProsima_user_DllExport uint16_t y3() const
  1959. {
  1960. return m_y3;
  1961. }
  1962. /*!
  1963. * @brief This function returns a reference to member y3
  1964. * @return Reference to member y3
  1965. */
  1966. eProsima_user_DllExport uint16_t& y3()
  1967. {
  1968. return m_y3;
  1969. }
  1970. /*!
  1971. * @brief This function sets a value in member z3
  1972. * @param _z3 New value for member z3
  1973. */
  1974. eProsima_user_DllExport void z3(
  1975. uint16_t _z3)
  1976. {
  1977. m_z3 = _z3;
  1978. }
  1979. /*!
  1980. * @brief This function returns the value of member z3
  1981. * @return Value of member z3
  1982. */
  1983. eProsima_user_DllExport uint16_t z3() const
  1984. {
  1985. return m_z3;
  1986. }
  1987. /*!
  1988. * @brief This function returns a reference to member z3
  1989. * @return Reference to member z3
  1990. */
  1991. eProsima_user_DllExport uint16_t& z3()
  1992. {
  1993. return m_z3;
  1994. }
  1995. /*!
  1996. * @brief This function sets a value in member o3
  1997. * @param _o3 New value for member o3
  1998. */
  1999. eProsima_user_DllExport void o3(
  2000. DropChoice _o3)
  2001. {
  2002. m_o3 = _o3;
  2003. }
  2004. /*!
  2005. * @brief This function returns the value of member o3
  2006. * @return Value of member o3
  2007. */
  2008. eProsima_user_DllExport DropChoice o3() const
  2009. {
  2010. return m_o3;
  2011. }
  2012. /*!
  2013. * @brief This function returns a reference to member o3
  2014. * @return Reference to member o3
  2015. */
  2016. eProsima_user_DllExport DropChoice& o3()
  2017. {
  2018. return m_o3;
  2019. }
  2020. /*!
  2021. * @brief This function sets a value in member x4
  2022. * @param _x4 New value for member x4
  2023. */
  2024. eProsima_user_DllExport void x4(
  2025. uint16_t _x4)
  2026. {
  2027. m_x4 = _x4;
  2028. }
  2029. /*!
  2030. * @brief This function returns the value of member x4
  2031. * @return Value of member x4
  2032. */
  2033. eProsima_user_DllExport uint16_t x4() const
  2034. {
  2035. return m_x4;
  2036. }
  2037. /*!
  2038. * @brief This function returns a reference to member x4
  2039. * @return Reference to member x4
  2040. */
  2041. eProsima_user_DllExport uint16_t& x4()
  2042. {
  2043. return m_x4;
  2044. }
  2045. /*!
  2046. * @brief This function sets a value in member y4
  2047. * @param _y4 New value for member y4
  2048. */
  2049. eProsima_user_DllExport void y4(
  2050. uint16_t _y4)
  2051. {
  2052. m_y4 = _y4;
  2053. }
  2054. /*!
  2055. * @brief This function returns the value of member y4
  2056. * @return Value of member y4
  2057. */
  2058. eProsima_user_DllExport uint16_t y4() const
  2059. {
  2060. return m_y4;
  2061. }
  2062. /*!
  2063. * @brief This function returns a reference to member y4
  2064. * @return Reference to member y4
  2065. */
  2066. eProsima_user_DllExport uint16_t& y4()
  2067. {
  2068. return m_y4;
  2069. }
  2070. /*!
  2071. * @brief This function sets a value in member z4
  2072. * @param _z4 New value for member z4
  2073. */
  2074. eProsima_user_DllExport void z4(
  2075. uint16_t _z4)
  2076. {
  2077. m_z4 = _z4;
  2078. }
  2079. /*!
  2080. * @brief This function returns the value of member z4
  2081. * @return Value of member z4
  2082. */
  2083. eProsima_user_DllExport uint16_t z4() const
  2084. {
  2085. return m_z4;
  2086. }
  2087. /*!
  2088. * @brief This function returns a reference to member z4
  2089. * @return Reference to member z4
  2090. */
  2091. eProsima_user_DllExport uint16_t& z4()
  2092. {
  2093. return m_z4;
  2094. }
  2095. /*!
  2096. * @brief This function sets a value in member o4
  2097. * @param _o4 New value for member o4
  2098. */
  2099. eProsima_user_DllExport void o4(
  2100. DropChoice _o4)
  2101. {
  2102. m_o4 = _o4;
  2103. }
  2104. /*!
  2105. * @brief This function returns the value of member o4
  2106. * @return Value of member o4
  2107. */
  2108. eProsima_user_DllExport DropChoice o4() const
  2109. {
  2110. return m_o4;
  2111. }
  2112. /*!
  2113. * @brief This function returns a reference to member o4
  2114. * @return Reference to member o4
  2115. */
  2116. eProsima_user_DllExport DropChoice& o4()
  2117. {
  2118. return m_o4;
  2119. }
  2120. /*!
  2121. * @brief This function sets a value in member x5
  2122. * @param _x5 New value for member x5
  2123. */
  2124. eProsima_user_DllExport void x5(
  2125. uint16_t _x5)
  2126. {
  2127. m_x5 = _x5;
  2128. }
  2129. /*!
  2130. * @brief This function returns the value of member x5
  2131. * @return Value of member x5
  2132. */
  2133. eProsima_user_DllExport uint16_t x5() const
  2134. {
  2135. return m_x5;
  2136. }
  2137. /*!
  2138. * @brief This function returns a reference to member x5
  2139. * @return Reference to member x5
  2140. */
  2141. eProsima_user_DllExport uint16_t& x5()
  2142. {
  2143. return m_x5;
  2144. }
  2145. /*!
  2146. * @brief This function sets a value in member y5
  2147. * @param _y5 New value for member y5
  2148. */
  2149. eProsima_user_DllExport void y5(
  2150. uint16_t _y5)
  2151. {
  2152. m_y5 = _y5;
  2153. }
  2154. /*!
  2155. * @brief This function returns the value of member y5
  2156. * @return Value of member y5
  2157. */
  2158. eProsima_user_DllExport uint16_t y5() const
  2159. {
  2160. return m_y5;
  2161. }
  2162. /*!
  2163. * @brief This function returns a reference to member y5
  2164. * @return Reference to member y5
  2165. */
  2166. eProsima_user_DllExport uint16_t& y5()
  2167. {
  2168. return m_y5;
  2169. }
  2170. /*!
  2171. * @brief This function sets a value in member z5
  2172. * @param _z5 New value for member z5
  2173. */
  2174. eProsima_user_DllExport void z5(
  2175. uint16_t _z5)
  2176. {
  2177. m_z5 = _z5;
  2178. }
  2179. /*!
  2180. * @brief This function returns the value of member z5
  2181. * @return Value of member z5
  2182. */
  2183. eProsima_user_DllExport uint16_t z5() const
  2184. {
  2185. return m_z5;
  2186. }
  2187. /*!
  2188. * @brief This function returns a reference to member z5
  2189. * @return Reference to member z5
  2190. */
  2191. eProsima_user_DllExport uint16_t& z5()
  2192. {
  2193. return m_z5;
  2194. }
  2195. /*!
  2196. * @brief This function sets a value in member o5
  2197. * @param _o5 New value for member o5
  2198. */
  2199. eProsima_user_DllExport void o5(
  2200. DropChoice _o5)
  2201. {
  2202. m_o5 = _o5;
  2203. }
  2204. /*!
  2205. * @brief This function returns the value of member o5
  2206. * @return Value of member o5
  2207. */
  2208. eProsima_user_DllExport DropChoice o5() const
  2209. {
  2210. return m_o5;
  2211. }
  2212. /*!
  2213. * @brief This function returns a reference to member o5
  2214. * @return Reference to member o5
  2215. */
  2216. eProsima_user_DllExport DropChoice& o5()
  2217. {
  2218. return m_o5;
  2219. }
  2220. /*!
  2221. * @brief This function sets a value in member x6
  2222. * @param _x6 New value for member x6
  2223. */
  2224. eProsima_user_DllExport void x6(
  2225. uint16_t _x6)
  2226. {
  2227. m_x6 = _x6;
  2228. }
  2229. /*!
  2230. * @brief This function returns the value of member x6
  2231. * @return Value of member x6
  2232. */
  2233. eProsima_user_DllExport uint16_t x6() const
  2234. {
  2235. return m_x6;
  2236. }
  2237. /*!
  2238. * @brief This function returns a reference to member x6
  2239. * @return Reference to member x6
  2240. */
  2241. eProsima_user_DllExport uint16_t& x6()
  2242. {
  2243. return m_x6;
  2244. }
  2245. /*!
  2246. * @brief This function sets a value in member y6
  2247. * @param _y6 New value for member y6
  2248. */
  2249. eProsima_user_DllExport void y6(
  2250. uint16_t _y6)
  2251. {
  2252. m_y6 = _y6;
  2253. }
  2254. /*!
  2255. * @brief This function returns the value of member y6
  2256. * @return Value of member y6
  2257. */
  2258. eProsima_user_DllExport uint16_t y6() const
  2259. {
  2260. return m_y6;
  2261. }
  2262. /*!
  2263. * @brief This function returns a reference to member y6
  2264. * @return Reference to member y6
  2265. */
  2266. eProsima_user_DllExport uint16_t& y6()
  2267. {
  2268. return m_y6;
  2269. }
  2270. /*!
  2271. * @brief This function sets a value in member z6
  2272. * @param _z6 New value for member z6
  2273. */
  2274. eProsima_user_DllExport void z6(
  2275. uint16_t _z6)
  2276. {
  2277. m_z6 = _z6;
  2278. }
  2279. /*!
  2280. * @brief This function returns the value of member z6
  2281. * @return Value of member z6
  2282. */
  2283. eProsima_user_DllExport uint16_t z6() const
  2284. {
  2285. return m_z6;
  2286. }
  2287. /*!
  2288. * @brief This function returns a reference to member z6
  2289. * @return Reference to member z6
  2290. */
  2291. eProsima_user_DllExport uint16_t& z6()
  2292. {
  2293. return m_z6;
  2294. }
  2295. /*!
  2296. * @brief This function sets a value in member o6
  2297. * @param _o6 New value for member o6
  2298. */
  2299. eProsima_user_DllExport void o6(
  2300. DropChoice _o6)
  2301. {
  2302. m_o6 = _o6;
  2303. }
  2304. /*!
  2305. * @brief This function returns the value of member o6
  2306. * @return Value of member o6
  2307. */
  2308. eProsima_user_DllExport DropChoice o6() const
  2309. {
  2310. return m_o6;
  2311. }
  2312. /*!
  2313. * @brief This function returns a reference to member o6
  2314. * @return Reference to member o6
  2315. */
  2316. eProsima_user_DllExport DropChoice& o6()
  2317. {
  2318. return m_o6;
  2319. }
  2320. private:
  2321. uint8_t m_totalPoints{0};
  2322. uint16_t m_x1{0};
  2323. uint16_t m_y1{0};
  2324. uint16_t m_z1{0};
  2325. DropChoice m_o1{DropChoice::BYPASS};
  2326. uint16_t m_x2{0};
  2327. uint16_t m_y2{0};
  2328. uint16_t m_z2{0};
  2329. DropChoice m_o2{DropChoice::BYPASS};
  2330. uint16_t m_x3{0};
  2331. uint16_t m_y3{0};
  2332. uint16_t m_z3{0};
  2333. DropChoice m_o3{DropChoice::BYPASS};
  2334. uint16_t m_x4{0};
  2335. uint16_t m_y4{0};
  2336. uint16_t m_z4{0};
  2337. DropChoice m_o4{DropChoice::BYPASS};
  2338. uint16_t m_x5{0};
  2339. uint16_t m_y5{0};
  2340. uint16_t m_z5{0};
  2341. DropChoice m_o5{DropChoice::BYPASS};
  2342. uint16_t m_x6{0};
  2343. uint16_t m_y6{0};
  2344. uint16_t m_z6{0};
  2345. DropChoice m_o6{DropChoice::BYPASS};
  2346. };
  2347. } // namespace SampleModule
  2348. #endif // _FAST_DDS_GENERATED_SAMPLEMODULE_DDSSAMPLEMACHINE_HPP_