Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: AndyDent on July 26, 2010, 04:19:59 pm

Title: Importing C++ with typedefs and standard libraries
Post by: AndyDent on July 26, 2010, 04:19:59 pm
I just tried importing a moderately complex codebase and was very disappointed with the experience.

Firstly, simple standard types like std::string are not recognised and I can't find a way to add those headers.

Secondly, it doesn't seem to understand typedefs. We follow the common idiom of using typedefs to simplify complex templated types, eg:

typedef Cfs::Internal::CfsIOHandleBase<Cfs::Internal::CfsRawStorage>    CfsStorageHandleBase; 
class CfsStorageHandle : public CfsStorageHandleBase


It fails to recognise CfsStorageHandleBase in the last line, with an "unexpected symbol" error
Title: Re: Importing C++ with typedefs and standard libra
Post by: Eve on July 27, 2010, 08:14:07 am
I just pasted the text you gave into a C++ file and it imported fine.  Two classes, one stereotyped as typedef.