Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate poll commands in classes with static functions #68

Open
spaulaus opened this issue Sep 30, 2018 · 1 comment
Open

Separate poll commands in classes with static functions #68

spaulaus opened this issue Sep 30, 2018 · 1 comment

Comments

@spaulaus
Copy link
Owner

On 2015-10-02 16:00:22 @ksmith0 created this issue by saying:
Instead of maintaining an ever increasingly complicated list of commands it may be easier to create a class which is a friend of Poll so that access to private and protected members is allowed. Each class then inherits from an abstract class with a static functions of the type static bool PollCommand::ExecuteCommand(Poll *) = 0.

The tab complete list could then be made upon the registration of each command.

The PollCommand class could also have signatures for abstract help routines.
static bool PollComand::Help(bool shortHelp) = 0.

@spaulaus
Copy link
Owner Author

On 2015-10-02 20:44:54 @ksmith0 said:
Friendship is not inherited so this will not work as nicely as I thought.

@spaulaus spaulaus transferred this issue from spaulaus/paass-lc Nov 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant