mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
AppFwk : Add support for output of object and field keywords
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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 ... */ }
|
||||
|
||||
Reference in New Issue
Block a user