// Xxx.h
namespace Xxx {
class Xxx
{
public:
...
static const std::string XXX;
protected:
private:
};
}
// Xxx.cpp
const std::string Xxx::XXX = "xxx";