Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
[style] changes to the generated raw data idl for making CI linters h…
Browse files Browse the repository at this point in the history
…appy

[style] changes to generated code again
  • Loading branch information
Karsten1987 committed Mar 6, 2018
1 parent 1a871db commit c260f85
Show file tree
Hide file tree
Showing 7 changed files with 1,576 additions and 1,569 deletions.
22 changes: 20 additions & 2 deletions rmw_connext_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,26 @@ if(WIN32)
endif()

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
ament_lint_auto_find_test_dependencies()
find_package(ament_cmake_cppcheck REQUIRED)
find_package(ament_cmake_cpplint REQUIRED)
find_package(ament_cmake_lint_cmake REQUIRED)
find_package(ament_cmake_uncrustify REQUIRED)
find_package(ament_cmake_copyright REQUIRED)
ament_cppcheck()
ament_cpplint("FILTERS" "-legal/copyright")
ament_lint_cmake()
ament_uncrustify()
ament_copyright(
"--exclude"
"connext_static_raw_data.hpp"
"connext_static_raw_data_plugin.hpp"
"connext_static_raw_data_support.hpp"
"connext_static_raw_data.cpp"
"connext_static_raw_data_plugin.cpp"
"connext_static_raw_data_support.cpp"
)

# ament_lint_auto_find_test_dependencies()
endif()

ament_package(CONFIG_EXTRAS "${PROJECT_NAME}-extras.cmake")
Expand Down
66 changes: 29 additions & 37 deletions rmw_connext_cpp/include/rmw_connext_cpp/connext_static_raw_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,15 @@ For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Connext manual.
*/

#ifndef ConnextStaticRawData_1689213465_h
#define ConnextStaticRawData_1689213465_h
#ifndef RMW_CONNEXT_CPP__CONNEXT_STATIC_RAW_DATA_HPP_
#define RMW_CONNEXT_CPP__CONNEXT_STATIC_RAW_DATA_HPP_

#ifndef NDDS_STANDALONE_TYPE
#ifndef ndds_cpp_h
#include "rmw_connext_shared_cpp/ndds_include.hpp"
#endif
#else
#include "ndds_standalone_type.h"
#endif

static const DDS_Long KEY_HASH_LENGTH_16= 16;
extern "C" {

extern const char *ConnextStaticRawDataTYPENAME;
static const DDS_Long KEY_HASH_LENGTH_16 = 16;

extern "C" {
extern const char * ConnextStaticRawDataTYPENAME;
}

struct ConnextStaticRawDataSeq;
Expand All @@ -34,18 +27,17 @@ class ConnextStaticRawDataDataReader;

class ConnextStaticRawData
{
public:
typedef struct ConnextStaticRawDataSeq Seq;
#ifndef NDDS_STANDALONE_TYPE
typedef ConnextStaticRawDataTypeSupport TypeSupport;
typedef ConnextStaticRawDataDataWriter DataWriter;
typedef ConnextStaticRawDataDataReader DataReader;
#endif

DDS_Octet key_hash [(KEY_HASH_LENGTH_16)];
DDS_OctetSeq serialized_key ;
DDS_OctetSeq serialized_data ;

public:
typedef struct ConnextStaticRawDataSeq Seq;
#ifndef NDDS_STANDALONE_TYPE
typedef ConnextStaticRawDataTypeSupport TypeSupport;
typedef ConnextStaticRawDataDataWriter DataWriter;
typedef ConnextStaticRawDataDataReader DataReader;
#endif

DDS_Octet key_hash[(KEY_HASH_LENGTH_16)];
DDS_OctetSeq serialized_key;
DDS_OctetSeq serialized_data;
};
#if (defined(RTI_WIN32) || defined (RTI_WINCE)) && defined(NDDS_USER_DLL_EXPORT)
/* If the code is building on Windows, start exporting symbols.
Expand All @@ -54,44 +46,44 @@ class ConnextStaticRawData
#define NDDSUSERDllExport __declspec(dllexport)
#endif

NDDSUSERDllExport DDS_TypeCode* ConnextStaticRawData_get_typecode(void); /* Type code */
NDDSUSERDllExport DDS_TypeCode * ConnextStaticRawData_get_typecode(void);

DDS_SEQUENCE(ConnextStaticRawDataSeq, ConnextStaticRawData);

NDDSUSERDllExport
RTIBool ConnextStaticRawData_initialize(
ConnextStaticRawData* self);
ConnextStaticRawData * self);

NDDSUSERDllExport
RTIBool ConnextStaticRawData_initialize_ex(
ConnextStaticRawData* self,RTIBool allocatePointers,RTIBool allocateMemory);
ConnextStaticRawData * self, RTIBool allocatePointers, RTIBool allocateMemory);

NDDSUSERDllExport
RTIBool ConnextStaticRawData_initialize_w_params(
ConnextStaticRawData* self,
const struct DDS_TypeAllocationParams_t * allocParams);
ConnextStaticRawData * self,
const struct DDS_TypeAllocationParams_t * allocParams);

NDDSUSERDllExport
void ConnextStaticRawData_finalize(
ConnextStaticRawData* self);
ConnextStaticRawData * self);

NDDSUSERDllExport
void ConnextStaticRawData_finalize_ex(
ConnextStaticRawData* self,RTIBool deletePointers);
ConnextStaticRawData * self, RTIBool deletePointers);

NDDSUSERDllExport
void ConnextStaticRawData_finalize_w_params(
ConnextStaticRawData* self,
const struct DDS_TypeDeallocationParams_t * deallocParams);
ConnextStaticRawData * self,
const struct DDS_TypeDeallocationParams_t * deallocParams);

NDDSUSERDllExport
void ConnextStaticRawData_finalize_optional_members(
ConnextStaticRawData* self, RTIBool deletePointers);
ConnextStaticRawData * self, RTIBool deletePointers);

NDDSUSERDllExport
RTIBool ConnextStaticRawData_copy(
ConnextStaticRawData* dst,
const ConnextStaticRawData* src);
ConnextStaticRawData * dst,
const ConnextStaticRawData * src);

#if (defined(RTI_WIN32) || defined (RTI_WINCE)) && defined(NDDS_USER_DLL_EXPORT)
/* If the code is building on Windows, stop exporting symbols.
Expand All @@ -100,4 +92,4 @@ RTIBool ConnextStaticRawData_copy(
#define NDDSUSERDllExport
#endif

#endif /* ConnextStaticRawData */
#endif // RMW_CONNEXT_CPP__CONNEXT_STATIC_RAW_DATA_HPP_
Loading

0 comments on commit c260f85

Please sign in to comment.