Accessing a general use class from all over project
<p>In our application there is general used classes( e.g a class which holds project configuration parameters ) like below .</p>

<pre><code>class DB{   
public:
int projectVersion
int somethingSoMuchImportantAllOverTheProject
};
extern DB* pDB;
</code></pre>

<p>Because all other classes will use this class, all of them needs to access it somehow . Our solution is putting "extern DB* pDB;" under its header file so whoever needs it, will be able to access it after including the header . I am thinking maybe there is a better solution and want to get your ideas for this general case.  </p>
