 |
LicenseSpring C++ SDK
Easily add Software Licensing to your application
|
Go to the documentation of this file. 1 #ifndef LS_CUSTOM_FIELD_H
2 #define LS_CUSTOM_FIELD_H
7 #pragma warning(disable : 4251)
26 CustomField(
const std::string &name,
const std::string &value) : m_name(name), m_value(value) {}
30 const std::string &
fieldName()
const {
return m_name; };
38 const std::string &
fieldValue()
const {
return m_value; };
49 return m_name == other.m_name && m_value == other.m_value;
62 #endif // LS_CUSTOM_FIELD_H
CustomField(const std::string &name, const std::string &value)
Constructs data field with given name (key) and value.
void setFieldName(const std::string &name)
Setter method for data field name.
const std::string & fieldName() const
Getter method for data field name.
const std::string & fieldValue() const
Getter method for data field value.
void setFieldValue(const std::string &value)
Setter method for data field value.
Class for storing key-value data field.
bool operator==(const CustomField &other) const
Equality operator to compare two CustomField objects.