Skip to content

Created score::mw::com tutorial#644

Open
crimson11 wants to merge 1 commit into
mainfrom
tutorial
Open

Created score::mw::com tutorial#644
crimson11 wants to merge 1 commit into
mainfrom
tutorial

Conversation

@crimson11

Copy link
Copy Markdown
Contributor

Created a tutorial containing working
code for currently supported score::mw::com
feature set of the C++ binding.

@crimson11 crimson11 force-pushed the tutorial branch 5 times, most recently from c057b8e to a18e3c2 Compare July 9, 2026 20:17
@crimson11 crimson11 marked this pull request as ready for review July 9, 2026 20:22
@@ -0,0 +1,91 @@
/********************************************************************************
* Copyright (c) 2025 Contributors to the Eclipse Foundation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* Copyright (c) 2026 Contributors to the Eclipse Foundation

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed all Copyright dates.

g_running.store(false, std::memory_order_relaxed);
}

using HelloWorldProxy = score::mw::com::AsProxy<score::mw::com::tutorial::HelloWorldInterface>;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about keeping this into score/mw/com/doc/tutorial/chapter_1/hello_world_service.h

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me merge this 1st - later we can change this. Right now I need this urgently merged as some people are already providing PRs with examples, where I feel this can be potentially redundant! This has to be avoided at all costs!

> This you could find out by looking into the implementation of the `AsSkeleton` template in
> [traits.h](../../../impl/traits.h) and following the inheritance chain of the generated skeleton class.

Then in line 40 we create an instance of the skeleton class with the `Create` (named constructor) method:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think adding line number will add additional maintenance effort.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Maybe. But the tutorial should bestable soonish. And then having exact line numbers is very helpful.

}
}

auto proxy_result = HelloWorldProxy::Create(service_handle.value());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
auto proxy_result = HelloWorldProxy::Create(service_handle.value());
// create proxy .....
auto proxy_result = HelloWorldProxy::Create(service_handle.value());

I appreciate the detailed README you created. However, adding comments within the code would make it much easier for new users to understand the logic and flow of the implementation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above. CAn be done later if needed.

@@ -0,0 +1,18 @@
/********************************************************************************
* Copyright (c) 2025 Contributors to the Eclipse Foundation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* Copyright (c) 2026 Contributors to the Eclipse Foundation

@@ -0,0 +1,13 @@
/********************************************************************************
* Copyright (c) 2025 Contributors to the Eclipse Foundation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* Copyright (c) 2026 Contributors to the Eclipse Foundation

@@ -0,0 +1,31 @@
/********************************************************************************
* Copyright (c) 2025 Contributors to the Eclipse Foundation

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* Copyright (c) 2026 Contributors to the Eclipse Foundation

@crimson11 crimson11 force-pushed the tutorial branch 6 times, most recently from 5f6381d to 160cddd Compare July 13, 2026 17:37
Created a tutorial containing working
code for currently supported score::mw::com
feature set of the C++ binding.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants