Skip to content

InscoperAPI/API/Base/Recipe/ValueCondition.h

Namespaces

Name
Inscoper
Inscoper namespace.

Classes

Name
class Inscoper::ValueCondition
ValueCondition class defines a condition based on a sub-device value.

Source code

#ifndef VALUECONDITION_H
#define VALUECONDITION_H

#include <Base/Device/SubDeviceId.h>
#include <Global.h>

#include <memory>
#include <string>

namespace Inscoper {
class INSCOPER_EXPORT ValueCondition {
public:
  ValueCondition(const Inscoper::SubDeviceId &subDeviceId, const std::string &condition, bool negated = false);

  ValueCondition();

  ~ValueCondition();

  const Inscoper::SubDeviceId getSubDeviceId() const;

  void setSubDeviceId(const Inscoper::SubDeviceId &subDeviceId);

  const std::string &getCondition() const;

  void setCondition(const std::string &condition);

  bool isNegated() const;

  void setNegated(bool negated);

private:
  Inscoper::SubDeviceId _subDeviceId;
  std::string _condition;
  bool _negated = false;
};

typedef std::shared_ptr<ValueCondition> ValueConditionPtr;

} // namespace Inscoper

#endif // VALUECONDITION_H

Updated on 2026-09-03 at 12:14:17 +0200