Technically, the RsmState class contains from 3 entities:
- simple state of Rsm
- state with error recovery information
- state with string view of path in Rsm
Some things are unnecessary and can be omitted under the right conditions (e.g. adding recovery information if recovery mode if OF).
Therefore, it is worth dividing them into different entities (classes, interfaces) and calling the appropriate instance in each case.
Technically, the RsmState class contains from 3 entities:
Some things are unnecessary and can be omitted under the right conditions (e.g. adding recovery information if recovery mode if OF).
Therefore, it is worth dividing them into different entities (classes, interfaces) and calling the appropriate instance in each case.