K
Krivenok Dmitry
I have class:
.....
class Config
{
....
private:
int max_users;
int max_proc;
std::string cfg_file_name;
....
};
.....
For each private member of class I should write pair (selector and
modificator):
int GetMaxUsers() const;
void SetMaxUsers(int value);
It's not very good for me (10 private members)!!!
What method exists for solving this problem?
.....
class Config
{
....
private:
int max_users;
int max_proc;
std::string cfg_file_name;
....
};
.....
For each private member of class I should write pair (selector and
modificator):
int GetMaxUsers() const;
void SetMaxUsers(int value);
It's not very good for me (10 private members)!!!
What method exists for solving this problem?