LibrarySettingsAttributes.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Copyright 2019 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 LibrarySettingsAttributes.h
  16. *
  17. */
  18. #ifndef LIBRARYSETTINGS_ATTRIBUTES_H_
  19. #define LIBRARYSETTINGS_ATTRIBUTES_H_
  20. namespace eprosima {
  21. namespace fastrtps {
  22. enum IntraprocessDeliveryType
  23. {
  24. INTRAPROCESS_OFF,
  25. INTRAPROCESS_USER_DATA_ONLY,
  26. INTRAPROCESS_FULL
  27. };
  28. /**
  29. * Class LibraySettingsAttributes, used by the user to define the FastRTPS library behaviour
  30. * @ingroup FASTRTPS_ATTRIBUTES_MODULE
  31. */
  32. class LibrarySettingsAttributes
  33. {
  34. public:
  35. LibrarySettingsAttributes() {
  36. }
  37. virtual ~LibrarySettingsAttributes() {
  38. }
  39. bool operator==(
  40. const LibrarySettingsAttributes& b) const
  41. {
  42. return (intraprocess_delivery == b.intraprocess_delivery);
  43. }
  44. IntraprocessDeliveryType intraprocess_delivery = INTRAPROCESS_FULL;
  45. };
  46. } // namespace fastrtps
  47. } // namespace eprosima
  48. #endif /* LIBRARYSETTINGS_ATTRIBUTES_H_ */