Itβs good to keep the namespace in separate folders. Nest namespaces are the same as they are nested in your project. For example, if you have:
namespace Foo{ namespace Bar{ } }
then you want any objects in the Bar namespace to be in
{Foo parent folder}\Foo\Bar\{how you're organizing code at this level}
We use the include folder for headers, the source for .cpp, the test folder for unit tests, and the object folder for compiled code bits. The reason we separate them is to simplify the batch code in our scripts. You will always go around the headlines; you will not go around the source. ( Here is another SO thread discussing the separation of header / source files. This is the preferred thing.)
Below is a link to google style guides if that helps.
source share