Skip to content

InscoperAPI/API/Base/Config/ParamConfig.h

Namespaces

Name
Inscoper
Inscoper namespace.

Classes

Name
class Inscoper::ParamConfig
ParamConfig class provides required information for parameter configuration.

Source code

#ifndef PARAMCONFIG_H
#define PARAMCONFIG_H

#include <Shared/XML/XMLNode.h>

#include <memory>
#include <string>

namespace Inscoper {

class INSCOPER_EXPORT ParamConfig {
public:
  ParamConfig();

  void fromXML(Inscoper::XMLNode &paramNode) INSCOPER_EXCEPTION;

  void toXML(Inscoper::XMLNode &xmlParent) INSCOPER_EXCEPTION;

  unsigned short getTag() const;

  void setTag(unsigned short tag);

  bool isFixed() const;

  void setFixed(bool fixed);

  const std::string &getDefaultValue() const;

  void setDefaultValue(const std::string &defaultValue);

  const std::string &getMin() const;

  void setMin(const std::string &min);

  const std::string &getMax() const;

  void setMax(const std::string &max);

  const std::string &getStep() const;

  void setStep(const std::string &step);

private:
  unsigned short _tag;
  bool _fixed;
  std::string _defaultValue;
  std::string _min;
  std::string _max;
  std::string _step;
};

typedef std::shared_ptr<ParamConfig> ParamConfigPtr;

} // namespace Inscoper

#endif // PARAMCONFIG_H

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