1
General Board / Are namespaces reverse engineered in EA?
« on: March 11, 2026, 07:37:58 pm »
For a C++ project, it does not seem that namespaces are reverse engineered into packages in EA. Does anyone know how to get this kind of behavior to work? The following for example should reverse engineer into a nested package structure in the Project view of EA:
Code: [Select]
///////////////////////////////////////////////////////////
// TClass.hpp
// Implementation of the Class ATemplateClass
// Created on: 11-Mar-2026 09:33:56
// Original author:
///////////////////////////////////////////////////////////
#if !defined(EA_E0A10386_AEB5_43dc_AEB9_7ECCE5611AE5__INCLUDED_)
#define EA_E0A10386_AEB5_43dc_AEB9_7ECCE5611AE5__INCLUDED_
namespace Package1
{
namespace Package1
{
class Class1
{
public:
Class1();
virtual ~Class1();
};
}
template<int T = 3>
class ATemplateClass
{
public:
ATemplateClass(){
}
virtual ~ATemplateClass(){
}
};
}
namespace Package2
{
class cAB
{
public:
cAB();
virtual ~cAB();
void foo();
private:
int x;
};
}
#endif // !defined(EA_E0A10386_AEB5_43dc_AEB9_7ECCE5611AE5__INCLUDED_)
