Header.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 Header.h
  16. * This header file contains the declaration of the described types in the IDL file.
  17. *
  18. * This file was generated by the tool gen.
  19. */
  20. #ifndef _Header_H_
  21. #define _Header_H_
  22. #ifdef __cplusplus
  23. extern "C"
  24. {
  25. #endif
  26. #include <stdint.h>
  27. #include <stdbool.h>
  28. #include "Time.h"
  29. /*!
  30. * @brief This struct represents the structure Header defined by the user in the IDL file.
  31. * @ingroup HEADER
  32. */
  33. typedef struct Header
  34. {
  35. Time stamp;
  36. char frame_id[255];
  37. } Header;
  38. struct ucdrBuffer;
  39. bool Header_serialize_topic(struct ucdrBuffer* writer, const Header* topic);
  40. bool Header_deserialize_topic(struct ucdrBuffer* reader, Header* topic);
  41. uint32_t Header_size_of_topic(const Header* topic, uint32_t size);
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif // _Header_H_