Пример #1
0
   virtual DeviceProperty GetDeviceProperty(unsigned int uiPropertyId) const override
   {
      DevicePropertyAccess access(GetSource());
      Variant value = access.Get(uiPropertyId);

      bool bReadWrite =
         uiPropertyId == cdDEVICE_PROP_TIME ||
         uiPropertyId == cdDEVICE_PROP_OWNER_NAME;

      return DeviceProperty(variantCdsdk, uiPropertyId, value, !bReadWrite);
   }
Пример #2
0
 /// constructs a new device property based on this property, with another value
 DeviceProperty PropertyFromVariantValue(const Variant& value)
 {
    return DeviceProperty(m_enSDKVariant, m_uiPropertyId, value, m_bReadOnly, m_spImpl);
 }