#include "SoftSensorBundleActivator.h"
#include "DiscomfortIndexSensorResource.h"
+#include <algorithm>
SoftSensorBundleActivator *bundle;
extern "C" void externalDestroyResource(BundleResource *pBundleResource)
{
bundle->destroyResource(pBundleResource);
-}
\ No newline at end of file
+}
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#include "SoftSensorResource.h"
+#include <algorithm>
using namespace OIC::Service;
namespace OIC
void SoftSensorResource::setAttribute(std::string key, RCSResourceAttributes::Value &&value)
{
- std::list<std::string>::iterator itor = std::find(m_inputList.begin(), m_inputList.end(), key);
-
BundleResource::setAttribute(key, value.toString());
- if (itor != m_inputList.end())
+ if (std::find(m_inputList.begin(), m_inputList.end(), key) != m_inputList.end())
executeLogic();
}