Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated IDL to match the file used in the dds-rtps repository #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions srcCxx/ShapeType.idl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const long COLOR_MAX_LENGTH=64;

@appendable
struct ShapeType {
string<COLOR_MAX_LENGTH> color; //@key
long x;
long y;
long shapesize;
@key
string<128> color;
int32 x;
int32 y;
int32 shapesize;
};
3 changes: 1 addition & 2 deletions srcCxx/ShapeType_main.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ Topic *create_topic(DomainParticipant *participant, const char *topic_name)
const char *type_name = typeSupport->get_type_name();
ReturnCode_t retcode = typeSupport->register_type(participant, type_name);
#elif defined OPENDDS
org::omg::dds::demo::ShapeTypeTypeSupport_var ts =
new org::omg::dds::demo::ShapeTypeTypeSupportImpl;
ShapeTypeTypeSupport_var ts = new ShapeTypeTypeSupportImpl;
const char type_name[] = "ShapeType";
const ReturnCode_t retcode = ts->register_type(participant, type_name);
#else
Expand Down
19 changes: 1 addition & 18 deletions srcCxx/opendds/.gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1 @@
/.depend.dds_security
/.depend.dds_security_Idl1
/.depend.dds_security_Idl2
/GNUmakefile
/GNUmakefile.dds_security
/opendds_shape_main
/ShapeTypeC.cpp
/ShapeTypeC.h
/ShapeTypeC.inl
/ShapeTypeS.h
/ShapeTypeTypeSupport.idl
/ShapeTypeTypeSupportC.cpp
/ShapeTypeTypeSupportC.h
/ShapeTypeTypeSupportC.inl
/ShapeTypeTypeSupportImpl.cpp
/ShapeTypeTypeSupportImpl.h
/ShapeTypeTypeSupportS.h
/.obj
/build
19 changes: 19 additions & 0 deletions srcCxx/opendds/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.12)
project(opendds_security_interop CXX)

find_package(OpenDDS REQUIRED)

add_executable(opendds_security_interop
../ShapeType_main.cxx
)

target_compile_definitions(opendds_security_interop
PRIVATE OPENDDS
)

opendds_target_sources(opendds_security_interop
../ShapeType.idl
OPENDDS_IDL_OPTIONS --no-default-nested
)

target_link_libraries(opendds_security_interop OpenDDS::Security OpenDDS::Rtps_Udp)
18 changes: 7 additions & 11 deletions srcCxx/opendds/ShapeType_configurator_opendds.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,8 @@
#define BOOLEAN_TRUE true
#define STATUS_MASK_NONE OpenDDS::DCPS::NO_STATUS_MASK

using org::omg::dds::demo::ShapeType;
using org::omg::dds::demo::ShapeTypeSeq;
using org::omg::dds::demo::ShapeTypeDataReader;
using org::omg::dds::demo::ShapeTypeDataWriter;
using org::omg::dds::demo::ShapeTypeTypeSupport;
#define STRING_IN .in()
#define STRING_INOUT .inout()

using OpenDDS::DCPS::operator>=; // for Time_t

Expand Down Expand Up @@ -87,12 +84,11 @@ std::string use_env(const char* key, const char* default_val)
return env ? env : default_val;
}

DDS::DomainParticipant* create_participant(
int domain, bool use_security,
const char* governance,
const char* permissions,
const char *key_establishment_algorithm,
bool /*enable_logging*/)
DDS::DomainParticipant* create_participant(int domain, bool use_security,
const char* governance,
const char* permissions,
const char* /*key_establishment_algorithm*/,
bool /*enable_logging*/)
{
using namespace OpenDDS::DCPS;
using namespace OpenDDS::RTPS;
Expand Down
33 changes: 0 additions & 33 deletions srcCxx/opendds/dds-security.mpc

This file was deleted.