AppFwk : Add support for output of object and field keywords

This commit is contained in:
Magne Sjaastad
2017-12-15 17:00:36 +01:00
parent d5b12a8b23
commit d15808efe6
4 changed files with 94 additions and 0 deletions

View File

@@ -24,6 +24,21 @@ PdmObjectHandle * PdmDefaultObjectFactory::create(const QString& classNameKeywor
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<QString> PdmDefaultObjectFactory::classKeywords() const
{
std::vector<QString> names;
for (const auto& entry : m_factoryMap)
{
names.push_back(entry.first);
}
return names;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -44,6 +44,7 @@
#include <QString>
#include <map>
#include <vector>
namespace caf
{
@@ -84,6 +85,8 @@ public:
}
}
std::vector<QString> classKeywords() const;
private:
PdmDefaultObjectFactory() {}
~PdmDefaultObjectFactory() { /* Could clean up, but ... */ }