diff --git a/articles/112_generated_interfaces_cpp.md b/articles/112_generated_interfaces_cpp.md index fd6c779ca..94858b4b0 100644 --- a/articles/112_generated_interfaces_cpp.md +++ b/articles/112_generated_interfaces_cpp.md @@ -52,7 +52,7 @@ For ease of use there is a `typedef` with the same name as the message which use #### Members -The struct has same-named member variables for every field of the message. +The struct has same-named public member variables for every field of the message. For each field a `typedef` is created which is named after the member with a leading underscore and a trailing `_type`. @@ -65,21 +65,16 @@ All other constants are declared as `static const` members in the struct and the #### Getters -
- TODO: const and non-const getters -
+For each field two *getter* methods are generated: a const version and a non-const version. +They are named after the fields with a leading `get__`. #### Setters -Beside the direct access to the member variables for each member a *setter* method is generated. -They are named after the members with a leading `set_`. +For each field a *setter* method is generated. +They are named after the fields with a leading `set__`. The setter methods have a single argument to pass the value for the member variable. -Each setter methods returns the struct itself to enable (method chaining)[https://isocpp.org/wiki/faq/ctors#named-parameter-idiom}. - -
- TODO: Need non-colliding naming -
+Each setter method returns the struct itself to enable (method chaining)[https://isocpp.org/wiki/faq/ctors#named-parameter-idiom]. #### Constructors