I have class Config:
class Config
{
public:
Config();
~Config();
void Read();
CData var; //CData - some config structure
};
What's the right way to access the values from other classes? There are a few options:
- make it global
- transfer reference to other classes
- your variant
In my system, config.var.some
is needed in 90% of classes.