Book a Demo

Author Topic: Importing map types from C++ source result in wrong or missing associations  (Read 3161 times)

SANS Ltd.

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Hello,

we try to import code with std::maps from C++. We added std::map<#TYPE#,#TYPE#> in the C++ project settings as addtional collection class.

We tried to import the following test code:
Code: [Select]
class KeyType
{
public:
int m_x;
};

class ValueType
{
public:
void f();
};

class MyClass
{
public:
std::map<KeyType, ValueType> m_mapKeyValueType;
std::map<int, ValueType> m_mapIntValueType;
};

In the model we get one association MyClass ---> KeyType for m_mapKeyValueType (should be to ValueType) and no association m_mapIntValueType.
Setting all kinds of std::map<KeyType, #TYPE#> or std::map<int, #TYPE#> is not an option since there are a lot of possible key types in the project.

How sould we configure the additional collection classes for importing maps correctly?

Regards
Florian Mayer
« Last Edit: December 20, 2016, 12:36:51 am by SANS Ltd. »