E1.20 RDM (Remote Device Management) Protocol Forums  

Go Back   E1.20 RDM (Remote Device Management) Protocol Forums > RDM Developer Forums > RDM General Implementation Discussion

RDM General Implementation Discussion General Discussion and questions relating to implementing RDM in a product.

Reply
 
Thread Tools Search this Thread Display Modes
Old July 20th, 2019   #1
shawn
Junior Member
 
Join Date: Nov 2018
Location: Oakland, CA, USA
Posts: 19
Default New C++-oriented `rdmconst.h` header

I recreated the intent of `rdm.h` into a new, more C++-oriented, `rdmconst.h` file. Notes about the file:
  1. Uses `constexpr` instead of `#define`s.
  2. Fixes some spelling mistakes from the standard by introducing new constants, but keeping the old constants and tagging them with `[[deprecated("spelling")]]`.
  3. Puts everything into an `rdm` namespace.

Feel free to make comments and suggestions. Consider this a beta version.

The file is attached.
Attached Files
File Type: h rdmconst-beta.h (46.4 KB, 9322 views)
shawn is offline   Reply With Quote
Old July 20th, 2019   #2
shawn
Junior Member
 
Join Date: Nov 2018
Location: Oakland, CA, USA
Posts: 19
Default

I've updated to a new version with more constants from E1.37-7. This one is `rdmconst-beta2.h`.
Attached Files
File Type: h rdmconst-beta2.h (52.1 KB, 9473 views)
shawn is offline   Reply With Quote
Old January 16th, 2020   #3
bootress
Task Group Member
 
Join Date: Jul 2018
Location: Chicago, IL
Posts: 6
Default

I'm replying to this way late since Scott reminded me about the forums last night, but I love this!!

One thing to note - using the [[deprecated]] attribute makes this usable in a minimum C++14 environment. We do encounter older toolchains than that, especially in the RDM world, so it might be worth adding that fact as a comment.
__________________
Sam Kearney
Software Engineer
TAIT
bootress is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RDM Appendix A #define header file attached sblair RDM General Implementation Discussion 12 August 1st, 2012 04:38 AM


All times are GMT -6. The time now is 09:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.