| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- /*
- * Util.cpp
- *
- * Created on: 2020年9月11日
- * Author: vsbes
- */
-
- #include "Util.h"
- #include "../services/impl/EmsAppImpl.h"
-
- Util::Util()
- {
- // TODO Auto-generated constructor stub
-
- }
-
- Util::~Util()
- {
- // TODO Auto-generated destructor stub
- }
-
- HRESULT Util::setItemStrValue(std::string id, std::string value, int priority)
- {
- if (EmsAppImpl::pCore)
- {
- return EmsAppImpl::pCore->setItemStrValue(id, value, EmsAppImpl::run_priority + priority);
- }
-
- return S_FALSE;
- }
-
- HRESULT Util::setItemIntValue(std::string id, int value, int priority)
- {
- if (EmsAppImpl::pCore)
- {
- return EmsAppImpl::pCore->setItemIntValue(id, value, EmsAppImpl::run_priority + priority);
- }
- return S_FALSE;
- }
-
- HRESULT Util::setItemFloatValue(std::string id, float value, int priority)
- {
- if (EmsAppImpl::pCore)
- {
- return EmsAppImpl::pCore->setItemFloatValue(id, value, EmsAppImpl::run_priority + priority);
- }
- return S_FALSE;
- }
|