Skip to content

Commit fc70646

Browse files
committed
resolve conflicts
2 parents 81ab4c5 + fd17a7f commit fc70646

37 files changed

+1382
-296
lines changed

src/Core/Application/Application.cc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,23 @@ std::string Application::moduleList()
297297
return ostr.str();
298298
}
299299

300+
bool Application::moduleNameExists(const std::string& name)
301+
{
302+
auto map = controller()->getAllAvailableModuleDescriptions();
303+
for (const auto& p1 : map)
304+
{
305+
for (const auto& p2 : p1.second)
306+
{
307+
for (const auto& p3 : p2.second)
308+
{
309+
if (boost::iequals(name, p3.first))
310+
return true;
311+
}
312+
}
313+
}
314+
return false;
315+
}
316+
300317
boost::filesystem::path Application::configDirectory() const
301318
{
302319
return applicationHelper.configDirectory();

src/Core/Application/Application.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class SCISHARE Application : boost::noncopyable //: public EventHandler, public
8383
std::string applicationName() const;
8484
std::string version() const;
8585
std::string moduleList();
86+
bool moduleNameExists(const std::string& name);
8687

8788
void shutdown();
8889

0 commit comments

Comments
 (0)