Skip to content

Commit

Permalink
[config][README] add note for MemberInfo.connpolicy_section
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Jun 13, 2024
1 parent 103c245 commit cbc4af7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions projects/redemption_configs/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
1. [Add/Modify variable](#addmodify-variable)
1. [MemberInfo.value](#memberinfovalue)
1. [MemberInfo.connpolicy_section](#memberinfoconnpolicy_section)
2. [MemberInfo.value](#memberinfovalue)
1. [Special values](#special-values)
2. [Special types](#special-types)
3. [Connection Policy Value](#connection-policy-value)
2. [MemberInfo.spec](#memberinfospec)
3. [MemberInfo.spec](#memberinfospec)
1. [SesmanInfo](#sesmaninfo)
1. [ResetBackToSelector](#resetbacktoselector)
2. [Loggable](#loggable)
Expand All @@ -12,6 +13,7 @@
1. [Attributes](#attributes)
4. [Connection Policy](#connection-policy)
1. [Attributes](#attributes-1)
4. [MemberInfo.desc](#memberinfodesc)
2. [Add/Modify enumeration type](#addmodify-enumeration-type)
3. [Build](#build)

Expand All @@ -23,6 +25,12 @@ Edit `configs_specs/configs/specs/config_spec.hpp`
Edit `configs_specs/configs/specs/config_type.hpp` to add a new enumeration type.


## MemberInfo.connpolicy_section

When specified, use another section for connection policy.



## MemberInfo.value

- `enum_as_string(value, conn_policy_value...)`: Initialize with an enum and use string parser for `.spec`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ struct Description : std::string
struct MemberInfo
{
MemberNames name;
// when specified, use another section for connection policy
std::string_view connpolicy_section {};
ValueAsStrings value;
SpecInfo spec;
Expand Down

0 comments on commit cbc4af7

Please sign in to comment.